public class KeepApplicationConfigInfo
extends java.lang.Object
Class to hold config info about an external application using Keep. This holds the app’sa name, salted hashed secret, Keep databases accessible, status and application approvers (for future functionality)
Modifier and Type | Class and Description |
---|---|
static class |
KeepApplicationConfigInfo.ApplicationStatus
Enum for Application Status, corresponding to enum in the OpenAPI spec
|
Constructor and Description |
---|
KeepApplicationConfigInfo()
Default constructor
|
KeepApplicationConfigInfo(java.lang.String appName,
java.util.List<java.lang.String> databasesRequested,
java.lang.String author) |
Modifier and Type | Method and Description |
---|---|
static KeepApplicationConfigInfo |
fromDocument(com.hcl.domino.data.Document doc) |
static KeepApplicationConfigInfo |
fromJson(io.vertx.core.json.JsonObject payload)
Creates a ApplicationConfig from JSON, both from bakup or newly created
|
java.lang.String |
getAppDescription()
Gets the application’s description
|
java.lang.String |
getAppIcon()
Base64 encoded image to be used for the database icon.
|
java.lang.String |
getAppId()
Gets the application ID generated by Keep for the external application
|
java.util.List<java.lang.String> |
getApplicationApprovers()
Gets the list of external approvers who need to / have approved access to the Keep databases requested
|
java.lang.String |
getAppName()
Gets the name the user has chosen for the external application.
|
java.lang.String |
getAppSecret()
Gets the application secret generated by Keep for the external application
|
KeepApplicationConfigInfo.ApplicationStatus |
getAppStatus()
Gets external application status as an enum
|
java.lang.String |
getAuthor()
Gets the person who created the external application
|
java.util.List<java.lang.String> |
getDatabasesRequested()
Gets the list of Keep databases this external application has or would like access to
|
java.lang.String |
getUnid()
Gets universalID of the document for this keep database config
|
KeepApplicationConfigInfo |
save(KeepJnxSession s,
com.hcl.domino.data.Database db,
KeepFactory factory) |
void |
setAppDescription(java.lang.String appDescription)
Sets the application description
|
void |
setAppId(java.lang.String appId)
Sets the application ID for the external application.
|
void |
setApplicationApprovers(java.util.List<java.lang.String> list)
Sets the list of external approvers who need to / have approved access to the Keep databases requested
|
void |
setAppName(java.lang.String appName)
Sets the name the user has chosen for the external application.
|
void |
setAppSecret(java.lang.String appSecret)
Sets the application secret generated by Keep for the external application
|
void |
setAppStatus(KeepApplicationConfigInfo.ApplicationStatus appStatus)
Gets external application status as an enum
|
void |
setAppStatus(java.lang.String appStatus)
Using a string value, sets the application status
|
void |
setAuthor(java.lang.String author)
Sets the person who created the external application
|
void |
setDatabasesRequested(java.util.ArrayList<java.lang.String> databasesRequested)
Sets the list of Keep databases this external application has or would like access to
|
void |
setIcon(java.lang.String appIcon)
Sets the image icon to be used for the database in Keep.
|
void |
setUnid(java.lang.String unid)
Sets universalID of the document for this keep database config
|
io.vertx.core.json.JsonObject |
toJson() |
public KeepApplicationConfigInfo()
Default constructor
public KeepApplicationConfigInfo(java.lang.String appName, java.util.List<java.lang.String> databasesRequested, java.lang.String author)
appName
- databasesRequested
- author
- public static KeepApplicationConfigInfo fromDocument(com.hcl.domino.data.Document doc)
doc
- public static KeepApplicationConfigInfo fromJson(io.vertx.core.json.JsonObject payload)
Creates a ApplicationConfig from JSON, both from bakup or newly created
payload
- public java.lang.String getAppDescription()
Gets the application’s description
public java.lang.String getAppIcon()
Base64 encoded image to be used for the database icon. Preferably svg for better resizing.
public java.lang.String getAppId()
Gets the application ID generated by Keep for the external application
public java.util.List<java.lang.String> getApplicationApprovers()
Gets the list of external approvers who need to / have approved access to the Keep databases requested
public java.lang.String getAppName()
Gets the name the user has chosen for the external application. Not necessarily unique
public java.lang.String getAppSecret()
Gets the application secret generated by Keep for the external application
public KeepApplicationConfigInfo.ApplicationStatus getAppStatus()
Gets external application status as an enum
public java.lang.String getAuthor()
Gets the person who created the external application
public java.util.List<java.lang.String> getDatabasesRequested()
Gets the list of Keep databases this external application has or would like access to
public java.lang.String getUnid()
Gets universalID of the document for this keep database config
public KeepApplicationConfigInfo save(KeepJnxSession s, com.hcl.domino.data.Database db, KeepFactory factory)
s
- db
- factory
- public void setAppDescription(java.lang.String appDescription)
Sets the application description
appDescription
- external application descriptionpublic void setAppId(java.lang.String appId)
Sets the application ID for the external application. Done for loading from a database
appId
- public void setApplicationApprovers(java.util.List<java.lang.String> list)
Sets the list of external approvers who need to / have approved access to the Keep databases requested
list
- public void setAppName(java.lang.String appName)
Sets the name the user has chosen for the external application. Not necessarily unique param name of the application
appName
- public void setAppSecret(java.lang.String appSecret)
Sets the application secret generated by Keep for the external application
appSecret
- application’s unique secret, saltedpublic void setAppStatus(KeepApplicationConfigInfo.ApplicationStatus appStatus)
Gets external application status as an enum
appStatus
- application status enumpublic void setAppStatus(java.lang.String appStatus)
Using a string value, sets the application status
appStatus
- as stringpublic void setAuthor(java.lang.String author)
Sets the person who created the external application
author
- Keep usernamepublic void setDatabasesRequested(java.util.ArrayList<java.lang.String> databasesRequested)
Sets the list of Keep databases this external application has or would like access to
databasesRequested
- public void setIcon(java.lang.String appIcon)
Sets the image icon to be used for the database in Keep.
appIcon
- Base64 encoded string image, preferably svg for better resizing.public void setUnid(java.lang.String unid)
Sets universalID of the document for this keep database config
unid
- public io.vertx.core.json.JsonObject toJson()