public interface KeepConfig
Modifier and Type | Method and Description |
---|---|
void |
addActiveAppId(java.lang.String appId) |
default KeepConfig |
addConfigFromArray(io.vertx.core.json.JsonArray source,
boolean supressEmptyFieldWarning)
Convenience method to load multiple configurations from
|
default KeepConfig |
addDbInfoFromJson(io.vertx.core.json.JsonObject source,
boolean supressEmptyFieldWarning)
Convenience method to add a KeepConfig from a JSON file
|
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 eventBusId)
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) |
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) |
void addActiveAppId(java.lang.String appId)
appId
- adds the appId to the config cachedefault KeepConfig addConfigFromArray(io.vertx.core.json.JsonArray source, boolean supressEmptyFieldWarning)
Convenience method to load multiple configurations from
source
- supressEmptyFieldWarning
- default KeepConfig addDbInfoFromJson(io.vertx.core.json.JsonObject source, boolean supressEmptyFieldWarning)
Convenience method to add a KeepConfig from a JSON file
source
- JsonObject with configuration infosupressEmptyFieldWarning
- KeepConfig addKeepApiInfo(java.lang.String version, KeepApiInfo apiInfo)
version
- API VersionapiInfo
- the apiInfoObject to addKeepConfig 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
version
- API Version v1,v2 etcsource
- the JsonObject conforming to OpenAPIKeepConfig addKeepDbInfo(java.lang.String apiName, KeepDbInfo dbInfo)
Adds a database info to the list of permitted databases
apiName
- dbInfo
- KeepConfig addOpenApiRoute(java.lang.String version, java.lang.String route)
Stores the HTTP route from the config for the relevant API version
version
- route
- java.util.Collection<java.lang.String> getAllActiveAppIds()
java.util.Collection<KeepApiInfo> getAllKeepApiInfo(java.lang.String version)
version
- v1, v2 etc. to determine what api we loadjava.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
filePath
- KeepApiInfo getKeepApiInfo(java.lang.String eventBusId)
Retrieve an KeepApiInfo based on its eventBusId EventbusId is created from Tag and OperationId
eventBusId
- KeepApiInfo getKeepApiInfo(java.lang.String version, java.lang.String operationName)
Retrieve an KeepApiInfo based on its operationName
version
- API Version v1 v2operationName
- io.vertx.core.json.JsonObject getKeepApiSchema(java.lang.String schemaName)
Returns the JSON Schema part of the OpenAPI specification with the given name. Last loaded wins
schemaName
- java.util.Collection<java.lang.String> getKeepApiVersions()
KeepDbInfo getKeepDbInfo(java.lang.String apiName)
Retrieves the database information for a given API Name
apiName
- KeepDbInfo getKeepMailInfo(java.lang.String mailFileName)
mailFileName
- The filePath to the actual mailio.vertx.core.json.JsonObject getOpenApiJson(java.lang.String version)
version
- v1, v2java.lang.String getOpenApiRoute(java.lang.String version)
version
- API versionio.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?
isServer
- is Keep running on a serverboolean isValidAppId(java.lang.String appId)
appId
- external application ID to checkvoid removeActiveAppId(java.lang.String appId)
appId
- removes the appId to the config cacheKeepConfig setPimConfig(io.vertx.core.json.JsonObject pimConfig)
pimConfig
- KeepConfig setSystemUserName(java.lang.String userName)
userName
-