public enum KeepConfigHolder extends java.lang.Enum<KeepConfigHolder> implements KeepConfig
| Enum Constant and Description |
|---|
INSTANCE
Singleton
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActiveAppId(java.lang.String appId) |
KeepConfig |
addKeepApiInfo(java.lang.String version,
KeepApiInfo apiInfo) |
KeepConfig |
addKeepApiInfoFromOpenApiJson(java.lang.String version,
io.vertx.core.json.JsonObject source)
Loads all API info objects from an openAPI 3.0 specification file in JSON format
|
KeepConfig |
addKeepDbInfo(java.lang.String apiName,
KeepDbInfo dbInfo)
Adds a database info to the list of permitted databases
|
KeepConfig |
addOpenApiRoute(java.lang.String version,
java.lang.String route)
Stores the HTTP route from the config for the relevant API version
|
java.util.Collection<java.lang.String> |
getAllActiveAppIds() |
java.util.Collection<KeepApiInfo> |
getAllKeepApiInfo(java.lang.String version) |
java.util.Collection<KeepDbInfo> |
getAllKeepDBInfo() |
io.vertx.core.json.JsonArray |
getApiNamesFromFilepath(java.lang.String filePath)
Returns a list of API Names a database is known with
|
KeepApiInfo |
getKeepApiInfo(java.lang.String operationName)
Retrieve an KeepApiInfo based on its eventBusId EventbusId is created from Tag and OperationId
|
KeepApiInfo |
getKeepApiInfo(java.lang.String version,
java.lang.String operationName)
Retrieve an KeepApiInfo based on its operationName
|
io.vertx.core.json.JsonObject |
getKeepApiSchema(java.lang.String schemaName)
Returns the JSON Schema part of the OpenAPI specification with the given name.
|
java.util.Collection<java.lang.String> |
getKeepApiVersions() |
KeepDbInfo |
getKeepDbInfo(java.lang.String apiName)
Retrieves the database information for a given API Name
|
KeepDbInfo |
getKeepMailInfo(java.lang.String mailFileName)
Placeholder for MAIL files
|
io.vertx.core.json.JsonObject |
getOpenApiJson(java.lang.String version) |
java.lang.String |
getOpenApiRoute(java.lang.String version) |
io.vertx.core.json.JsonObject |
getPIMConfig() |
java.lang.String |
getSystemUserName() |
boolean |
isAllowDominoLogin()
Checks if login with username/password stored in Domino is permitted or only external IdP are accepted
|
boolean |
isAllowLocalUsers(boolean isServer)
are users defined in KeepConfig allowed?
|
boolean |
isValidAppId(java.lang.String appId) |
void |
removeActiveAppId(java.lang.String appId) |
KeepConfig |
setPimConfig(io.vertx.core.json.JsonObject pimConfig) |
KeepConfig |
setSystemUserName(java.lang.String userName) |
static KeepConfigHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepConfigHolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfaddConfigFromArray, addDbInfoFromJsonpublic static final KeepConfigHolder INSTANCE
public static KeepConfigHolder[] values()
for (KeepConfigHolder c : KeepConfigHolder.values()) System.out.println(c);
public static KeepConfigHolder valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void addActiveAppId(java.lang.String appId)
addActiveAppId in interface KeepConfigappId - adds the appId to the config cachepublic KeepConfig addKeepApiInfo(java.lang.String version, KeepApiInfo apiInfo)
addKeepApiInfo in interface KeepConfigversion - API VersionapiInfo - the apiInfoObject to addpublic KeepConfig addKeepApiInfoFromOpenApiJson(java.lang.String version, io.vertx.core.json.JsonObject source)
KeepConfigLoads all API info objects from an openAPI 3.0 specification file in JSON format
addKeepApiInfoFromOpenApiJson in interface KeepConfigversion - API Version v1,v2 etcsource - the JsonObject conforming to OpenAPIpublic KeepConfig addKeepDbInfo(java.lang.String apiName, KeepDbInfo dbInfo)
KeepConfigAdds a database info to the list of permitted databases
addKeepDbInfo in interface KeepConfigapiName - dbInfo - public KeepConfig addOpenApiRoute(java.lang.String version, java.lang.String route)
KeepConfigStores the HTTP route from the config for the relevant API version
addOpenApiRoute in interface KeepConfigversion - route - public java.util.Collection<java.lang.String> getAllActiveAppIds()
getAllActiveAppIds in interface KeepConfigpublic java.util.Collection<KeepApiInfo> getAllKeepApiInfo(java.lang.String version)
getAllKeepApiInfo in interface KeepConfigversion - v1, v2 etc. to determine what api we loadpublic java.util.Collection<KeepDbInfo> getAllKeepDBInfo()
getAllKeepDBInfo in interface KeepConfigpublic io.vertx.core.json.JsonArray getApiNamesFromFilepath(java.lang.String filePath)
KeepConfigReturns a list of API Names a database is known with
getApiNamesFromFilepath in interface KeepConfigfilePath - public KeepApiInfo getKeepApiInfo(java.lang.String operationName)
KeepConfigRetrieve an KeepApiInfo based on its eventBusId EventbusId is created from Tag and OperationId
getKeepApiInfo in interface KeepConfigpublic KeepApiInfo getKeepApiInfo(java.lang.String version, java.lang.String operationName)
KeepConfigRetrieve an KeepApiInfo based on its operationName
getKeepApiInfo in interface KeepConfigversion - API Version v1 v2public io.vertx.core.json.JsonObject getKeepApiSchema(java.lang.String schemaName)
KeepConfigReturns the JSON Schema part of the OpenAPI specification with the given name. Last loaded wins
getKeepApiSchema in interface KeepConfigschemaName - public java.util.Collection<java.lang.String> getKeepApiVersions()
getKeepApiVersions in interface KeepConfigpublic KeepDbInfo getKeepDbInfo(java.lang.String apiName)
KeepConfigRetrieves the database information for a given API Name
getKeepDbInfo in interface KeepConfigapiName - public KeepDbInfo getKeepMailInfo(java.lang.String mailFileName)
Placeholder for MAIL files
getKeepMailInfo in interface KeepConfigmailFileName - The filePath to the actual mailpublic io.vertx.core.json.JsonObject getOpenApiJson(java.lang.String version)
getOpenApiJson in interface KeepConfigversion - v1, v2public java.lang.String getOpenApiRoute(java.lang.String version)
getOpenApiRoute in interface KeepConfigversion - API versionpublic io.vertx.core.json.JsonObject getPIMConfig()
getPIMConfig in interface KeepConfigpublic java.lang.String getSystemUserName()
getSystemUserName in interface KeepConfigpublic boolean isAllowDominoLogin()
KeepConfigChecks if login with username/password stored in Domino is permitted or only external IdP are accepted
isAllowDominoLogin in interface KeepConfigpublic boolean isAllowLocalUsers(boolean isServer)
KeepConfigare users defined in KeepConfig allowed?
isAllowLocalUsers in interface KeepConfigisServer - is Keep running on a serverpublic boolean isValidAppId(java.lang.String appId)
isValidAppId in interface KeepConfigappId - external application ID to checkpublic void removeActiveAppId(java.lang.String appId)
removeActiveAppId in interface KeepConfigappId - removes the appId to the config cachepublic KeepConfig setPimConfig(@Nonnull io.vertx.core.json.JsonObject pimConfig)
setPimConfig in interface KeepConfigpimConfig - public KeepConfig setSystemUserName(java.lang.String userName)
setSystemUserName in interface KeepConfig