public class AclFunctions
extends java.lang.Object
Helper functions to deal with ACL needs
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addRoleToACL(com.hcl.domino.security.Acl acl,
java.lang.String roleToAdd)
Add a role to the ACL
|
static void |
checkRoleNotExists(java.util.List<java.lang.String> existingRoles,
java.lang.String roleToCheck)
Validate that a role doesn’t already exist in the ACL
|
static io.vertx.core.json.JsonObject |
convertAclEntry(com.hcl.domino.security.AclEntry aclEntry)
Converts an ACL Entry into the relevant JSON object
|
static java.lang.String |
getBracketRoleName(java.lang.String raw)
Role name with brackets
|
static java.lang.String |
getCleanRoleName(java.lang.String raw)
Returns a proper role name, with no square brackets inside but around and limited to Maximum Role lenght
|
static java.lang.String |
renameRoleInACL(com.hcl.domino.security.Acl acl,
java.lang.String oldName,
java.lang.String newName)
Rename a role in the ACL
|
public static java.lang.String addRoleToACL(com.hcl.domino.security.Acl acl,
java.lang.String roleToAdd)
Add a role to the ACL
acl - to updateroleToAdd - to ACLpublic static void checkRoleNotExists(java.util.List<java.lang.String> existingRoles,
java.lang.String roleToCheck)
throws KeepException
Validate that a role doesn’t already exist in the ACL
existingRoles - roles in the ACLroleToCheck - role name without “[“ and ”]”, e.g. “Admin”KeepException - error if it already existspublic static io.vertx.core.json.JsonObject convertAclEntry(com.hcl.domino.security.AclEntry aclEntry)
Converts an ACL Entry into the relevant JSON object
aclEntry - ACL Entry to convertpublic static java.lang.String getBracketRoleName(java.lang.String raw)
Role name with brackets
raw - Role name with or without bracketspublic static java.lang.String getCleanRoleName(java.lang.String raw)
Returns a proper role name, with no square brackets inside but around and limited to Maximum Role lenght
raw - public static java.lang.String renameRoleInACL(com.hcl.domino.security.Acl acl,
java.lang.String oldName,
java.lang.String newName)
throws KeepExceptionMissingParameters
Rename a role in the ACL
acl - to updateoldName - to renamenewName - to rename toKeepExceptionMissingParameters