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
Fields 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_UUIDS
Fields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEditorGroups
(Long[] grids_) Appends to the groups who have editor permissionsvoid
addEditors
(String[] unames_) Appends to the users who have editor permissionsvoid
addViewerGroups
(Long[] grids_) Appends to the groups who have viewer permissionsvoid
addViewers
(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 permissionsvoid
removeEditorGroups
(Long[] grids_) Deletes from the groups who have editor permissionsvoid
removeEditors
(String[] unames_) Deletes from the users who have editor permissionsvoid
removeViewerGroups
(Long[] grids_) Deletes from the groups who have viewer permissionsvoid
removeViewers
(String[] unames_) Deletes from the users who have viewer permissionsvoid
setEditorGroups
(Long[] grids_) Sets the groups who have editor permissionsvoid
setEditors
(String[] unames_) Sets the users who have editor permissionsvoid
setViewerGroups
(Long[] grids_) Sets the groups who have viewer permissionsvoid
setViewers
(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, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
Array
containing the unique IDs (usernames) of the users
-
getEditorGroups
Retrieves the groups who have editor permissions- Returns:
Array
containing the unique IDs of the groups
-
setEditors
Sets the users who have editor permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users
-
setEditorGroups
Sets the groups who have editor permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups
-
addEditors
Appends to the users who have editor permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users to be added
-
addEditorGroups
Appends to the groups who have editor permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups to be added
-
removeEditors
Deletes from the users who have editor permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users to be deleted
-
removeEditorGroups
Deletes from the groups who have editor permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups to be deleted
-
getViewers
Retrieves the users who have viewer permissions- Returns:
Array
containing the unique IDs (usernames) of the users
-
getViewerGroups
Retrieves the groups who have viewer permissions- Returns:
Array
containing the unique IDs of the groups
-
setViewers
Sets the users who have viewer permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users
-
setViewerGroups
Sets the groups who have viewer permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups
-
addViewers
Appends to the users who have viewer permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users to be added
-
addViewerGroups
Appends to the groups who have viewer permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups to be added
-
removeViewers
Deletes from the users who have viewer permissions- Parameters:
unames_
-Array
containing the unique IDs (usernames) of the users to be deleted
-
removeViewerGroups
Deletes from the groups who have viewer permissions- Parameters:
grids_
-Array
containing the unique IDs of the groups to be deleted
-