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, valueOf
addConfigFromArray, addDbInfoFromJson
public 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 KeepConfig
appId
- adds the appId to the config cachepublic KeepConfig addKeepApiInfo(java.lang.String version, KeepApiInfo apiInfo)
addKeepApiInfo
in interface KeepConfig
version
- API VersionapiInfo
- the apiInfoObject to addpublic KeepConfig addKeepApiInfoFromOpenApiJson(java.lang.String version, io.vertx.core.json.JsonObject source)
KeepConfig
Loads all API info objects from an openAPI 3.0 specification file in JSON format
addKeepApiInfoFromOpenApiJson
in interface KeepConfig
version
- API Version v1,v2 etcsource
- the JsonObject conforming to OpenAPIpublic KeepConfig addKeepDbInfo(java.lang.String apiName, KeepDbInfo dbInfo)
KeepConfig
Adds a database info to the list of permitted databases
addKeepDbInfo
in interface KeepConfig
apiName
- dbInfo
- public KeepConfig addOpenApiRoute(java.lang.String version, java.lang.String route)
KeepConfig
Stores the HTTP route from the config for the relevant API version
addOpenApiRoute
in interface KeepConfig
version
- route
- public java.util.Collection<java.lang.String> getAllActiveAppIds()
getAllActiveAppIds
in interface KeepConfig
public java.util.Collection<KeepApiInfo> getAllKeepApiInfo(java.lang.String version)
getAllKeepApiInfo
in interface KeepConfig
version
- v1, v2 etc. to determine what api we loadpublic java.util.Collection<KeepDbInfo> getAllKeepDBInfo()
getAllKeepDBInfo
in interface KeepConfig
public io.vertx.core.json.JsonArray getApiNamesFromFilepath(java.lang.String filePath)
KeepConfig
Returns a list of API Names a database is known with
getApiNamesFromFilepath
in interface KeepConfig
filePath
- public KeepApiInfo getKeepApiInfo(java.lang.String operationName)
KeepConfig
Retrieve an KeepApiInfo based on its eventBusId EventbusId is created from Tag and OperationId
getKeepApiInfo
in interface KeepConfig
public KeepApiInfo getKeepApiInfo(java.lang.String version, java.lang.String operationName)
KeepConfig
Retrieve an KeepApiInfo based on its operationName
getKeepApiInfo
in interface KeepConfig
version
- API Version v1 v2public io.vertx.core.json.JsonObject getKeepApiSchema(java.lang.String schemaName)
KeepConfig
Returns the JSON Schema part of the OpenAPI specification with the given name. Last loaded wins
getKeepApiSchema
in interface KeepConfig
schemaName
- public java.util.Collection<java.lang.String> getKeepApiVersions()
getKeepApiVersions
in interface KeepConfig
public KeepDbInfo getKeepDbInfo(java.lang.String apiName)
KeepConfig
Retrieves the database information for a given API Name
getKeepDbInfo
in interface KeepConfig
apiName
- public KeepDbInfo getKeepMailInfo(java.lang.String mailFileName)
Placeholder for MAIL files
getKeepMailInfo
in interface KeepConfig
mailFileName
- The filePath to the actual mailpublic io.vertx.core.json.JsonObject getOpenApiJson(java.lang.String version)
getOpenApiJson
in interface KeepConfig
version
- v1, v2public java.lang.String getOpenApiRoute(java.lang.String version)
getOpenApiRoute
in interface KeepConfig
version
- API versionpublic io.vertx.core.json.JsonObject getPIMConfig()
getPIMConfig
in interface KeepConfig
public java.lang.String getSystemUserName()
getSystemUserName
in interface KeepConfig
public boolean isAllowDominoLogin()
KeepConfig
Checks if login with username/password stored in Domino is permitted or only external IdP are accepted
isAllowDominoLogin
in interface KeepConfig
public boolean isAllowLocalUsers(boolean isServer)
KeepConfig
are users defined in KeepConfig allowed?
isAllowLocalUsers
in interface KeepConfig
isServer
- is Keep running on a serverpublic boolean isValidAppId(java.lang.String appId)
isValidAppId
in interface KeepConfig
appId
- external application ID to checkpublic void removeActiveAppId(java.lang.String appId)
removeActiveAppId
in interface KeepConfig
appId
- removes the appId to the config cachepublic KeepConfig setPimConfig(@Nonnull io.vertx.core.json.JsonObject pimConfig)
setPimConfig
in interface KeepConfig
pimConfig
- public KeepConfig setSystemUserName(java.lang.String userName)
setSystemUserName
in interface KeepConfig