Package com.appiancorp.suiteapi.process
Class ProcessApplicationRoleMap
java.lang.Object
com.appiancorp.suiteapi.common.RoleMap
com.appiancorp.suiteapi.process.ProcessApplicationRoleMap
- All Implemented Interfaces:
XMLable,Serializable,Map
Defines the roles of users and groups for a process object. The prossible
roles are Editor, Viewer.
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class com.appiancorp.suiteapi.common.RoleMap
AGGREGATE_SECURITY_KEY, SECURITY_KEY, TYPE_AGGREGATE_GROUP, TYPE_AGGREGATE_USER, TYPE_GROUP, TYPE_GROUP_UUIDS, TYPE_USER, TYPE_USER_UUIDSFields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEditorGroups(Long[] grids_) Appends to the groups who have editor permissionsvoidaddEditors(String[] unames_) Appends to the users who have editor permissionsvoidaddViewerGroups(Long[] grids_) Appends to the groups who have viewer permissionsvoidaddViewers(String[] unames_) Appends to the users who have viewer permissionsLong[]Retrieves the groups who have editor permissionsString[]Retrieves the users who have editor permissionsLong[]Retrieves the groups who have viewer permissionsString[]Retrieves the users who have viewer permissionsvoidremoveEditorGroups(Long[] grids_) Deletes from the groups who have editor permissionsvoidremoveEditors(String[] unames_) Deletes from the users who have editor permissionsvoidremoveViewerGroups(Long[] grids_) Deletes from the groups who have viewer permissionsvoidremoveViewers(String[] unames_) Deletes from the users who have viewer permissionsvoidsetEditorGroups(Long[] grids_) Sets the groups who have editor permissionsvoidsetEditors(String[] unames_) Sets the users who have editor permissionsvoidsetViewerGroups(Long[] grids_) Sets the groups who have viewer permissionsvoidsetViewers(String[] unames_) Sets the users who have viewer permissionsMethods inherited from class com.appiancorp.suiteapi.common.RoleMap
addActorsToRole, addActorsToRole, clear, containsActors, containsKey, containsValue, entrySet, equals, get, getActorsInRole, getAggregateSecurity, getAllGroupIds, getAllUsernames, getRole, getRoleNames, getRoles, getSecurity, hashCode, init, isEmpty, keySet, mergeWith, put, putAll, remove, removeActorsFromRole, removeActorsFromRole, removeAllRoles, setActorsInRole, setActorsInRole, setAggregateSecurity, setRole, setRoles, setRoles, setSecurity, size, toString, toXML, toXML, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
EDITOR
- See Also:
-
VIEWER
- See Also:
-
-
Constructor Details
-
ProcessApplicationRoleMap
public ProcessApplicationRoleMap()
-
-
Method Details
-
getEditors
Retrieves the users who have editor permissions- Returns:
- an
Arraycontaining the unique IDs (usernames) of the users
-
getEditorGroups
Retrieves the groups who have editor permissions- Returns:
Arraycontaining the unique IDs of the groups
-
setEditors
Sets the users who have editor permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users
-
setEditorGroups
Sets the groups who have editor permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups
-
addEditors
Appends to the users who have editor permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users to be added
-
addEditorGroups
Appends to the groups who have editor permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups to be added
-
removeEditors
Deletes from the users who have editor permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users to be deleted
-
removeEditorGroups
Deletes from the groups who have editor permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups to be deleted
-
getViewers
Retrieves the users who have viewer permissions- Returns:
Arraycontaining the unique IDs (usernames) of the users
-
getViewerGroups
Retrieves the groups who have viewer permissions- Returns:
Arraycontaining the unique IDs of the groups
-
setViewers
Sets the users who have viewer permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users
-
setViewerGroups
Sets the groups who have viewer permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups
-
addViewers
Appends to the users who have viewer permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users to be added
-
addViewerGroups
Appends to the groups who have viewer permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups to be added
-
removeViewers
Deletes from the users who have viewer permissions- Parameters:
unames_-Arraycontaining the unique IDs (usernames) of the users to be deleted
-
removeViewerGroups
Deletes from the groups who have viewer permissions- Parameters:
grids_-Arraycontaining the unique IDs of the groups to be deleted
-