public class LabelHelper
extends java.lang.Object
Utility class to translate ACL Entries to delegation status back and forth
Modifier and Type | Class and Description |
---|---|
static class |
LabelHelper.LabelInclusion
flag to get all or mail labels
|
Constructor and Description |
---|
LabelHelper()
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildLabelList(DbRequestParameters<io.vertx.core.json.JsonObject> request,
KeepFactory keepFactory,
KeepDbInfo keepDbInfo)
Collect label details
|
protected java.lang.String |
filterDesignType(java.lang.String type)
Get the folder design base on type of documents that will be stored
|
protected java.lang.String |
filterFolderName(com.hcl.domino.data.Database db,
java.lang.String designType,
java.lang.String parentName,
java.lang.String folderName)
Filter the name of the folder/label that will be created
|
io.vertx.core.json.JsonObject |
getAllCollections() |
protected long |
getChildFolderCount(io.vertx.core.json.JsonObject folderCollectionResult,
java.lang.String unid) |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getChildIDs(java.lang.String incomingunid,
boolean includeParentInResults) |
java.util.function.Predicate<com.hcl.domino.data.DominoCollectionInfo> |
getCollectionFilter(java.util.Map<java.lang.String,java.lang.String> systemFolderNames,
java.util.Map<java.lang.String,java.lang.String> systemLabels,
boolean includeSystemLabels) |
LabelHelper.LabelInclusion |
getLabelInclusion() |
protected static java.lang.String |
getParentFolderName(java.lang.String currentFolderName)
Filter current folder to get the parent folder
|
boolean |
includeInOutput(java.util.Map<java.lang.String,java.lang.String> systemLabels,
com.hcl.domino.data.DominoCollectionInfo ncs,
boolean includeSystemLabels)
filter if system labels should be included in the result
|
java.util.Map<java.lang.String,java.lang.String> |
populateSystemFolders(io.vertx.core.json.JsonObject pimConfig) |
java.util.Map<java.lang.String,java.lang.String> |
populateSystemLabels()
populate system labels
|
void |
setCollectionFilter(java.util.function.Predicate<com.hcl.domino.data.DominoCollectionInfo> collectionFilter) |
void |
setLabelInclusion(LabelHelper.LabelInclusion labelInclusion)
Set the flag for inclusion
|
protected static java.lang.String getParentFolderName(java.lang.String currentFolderName)
Filter current folder to get the parent folder
currentFolderName
- public io.vertx.core.json.JsonObject getAllCollections()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getChildIDs(java.lang.String incomingunid, boolean includeParentInResults)
incomingunid
- includeParentInResults
- public java.util.function.Predicate<com.hcl.domino.data.DominoCollectionInfo> getCollectionFilter(java.util.Map<java.lang.String,java.lang.String> systemFolderNames, java.util.Map<java.lang.String,java.lang.String> systemLabels, boolean includeSystemLabels)
systemFolderNames
- systemLabels
- public LabelHelper.LabelInclusion getLabelInclusion()
public boolean includeInOutput(java.util.Map<java.lang.String,java.lang.String> systemLabels, com.hcl.domino.data.DominoCollectionInfo ncs, boolean includeSystemLabels)
filter if system labels should be included in the result
systemLabels
- ncs
- includeSystemLabels
- public java.util.Map<java.lang.String,java.lang.String> populateSystemFolders(io.vertx.core.json.JsonObject pimConfig)
pimConfig
- public java.util.Map<java.lang.String,java.lang.String> populateSystemLabels()
populate system labels
public void setCollectionFilter(java.util.function.Predicate<com.hcl.domino.data.DominoCollectionInfo> collectionFilter)
collectionFilter
- public void setLabelInclusion(LabelHelper.LabelInclusion labelInclusion)
Set the flag for inclusion
labelInclusion
- protected void buildLabelList(DbRequestParameters<io.vertx.core.json.JsonObject> request, KeepFactory keepFactory, KeepDbInfo keepDbInfo)
Collect label details
request
- keepFactory
- keepDbInfo
- protected java.lang.String filterDesignType(java.lang.String type)
Get the folder design base on type of documents that will be stored
type
- protected java.lang.String filterFolderName(com.hcl.domino.data.Database db, java.lang.String designType, java.lang.String parentName, java.lang.String folderName)
Filter the name of the folder/label that will be created
db
- designType
- parentName
- folderName
- protected long getChildFolderCount(io.vertx.core.json.JsonObject folderCollectionResult, java.lang.String unid)
folderCollectionResult
- unid
-