Package com.appiancorp.suiteapi.process
Class ProcessRoleMap
java.lang.Object
com.appiancorp.suiteapi.common.RoleMap
com.appiancorp.suiteapi.process.ProcessRoleMap
- All Implemented Interfaces:
XMLable,Serializable,Map
Defines the roles of users and groups for a process object. The possible
roles are Administrator, Editor, Viewer, Manager, Initiator, Non Member.
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionvoidaddAdminOwnerGroups(Long[] grids_) Adds administrative permission for the groupsvoidaddAdminOwners(String[] unames_) Adds administrative permission for the usersvoidaddAnalystGroups(Long[] grids_) Deprecated.voidaddAnalysts(String[] unames_) Deprecated.voidaddEditorGroups(Long[] grids_) Adds editor permission to the groupsvoidaddEditors(String[] unames_) Adds editor permission to the usersvoidaddExplicitNonViewerGroups(Long[] grids_) Adds explicitly denied permission to the groupsvoidaddExplicitNonViewers(String[] unames_) Adds explicitly denied permission to the usersvoidaddInitiatorGroups(Long[] grids_) Adds analyst permission to the groupsvoidaddInitiators(String[] unames_) Adds analyst permission to the usersvoidaddManagerGroups(Long[] grids_) Adds power user permissions to the groupsvoidaddManagers(String[] unames_) Adds power user permissions to the usersvoidaddPowerUserGroups(Long[] grids_) Deprecated.voidaddPowerUsers(String[] unames_) Deprecated.voidaddViewerGroups(Long[] grids_) Adds viewer permission to the groupsvoidaddViewers(String[] unames_) Adds viewer permission to the usersLong[]Retrieves the groups who have administrative permissionsString[]Retrieves the users who have administrative permissionsLong[]Deprecated.String[]Deprecated.Long[]Retrieves the groups who have editor permissionsString[]Retrieves the users who have editor permissionsLong[]Retrieves the groups who have been explicitly denied permissionsString[]Retrieves the users who have been explicitly denied permissionsLong[]Retrieves the groups who have analyst permissionsString[]Retrieves the users who have analyst permissionsLong[]Retrieves the groups who have power user permissionsString[]Retrieves the users who have power user permissionsLong[]Deprecated.String[]Deprecated.static StringgetRoleForColumn(int n) Returns the role type (string) for a role integer idLong[]Retrieves the groups who have viewer permissionsString[]Retrieves the users who have viewer permissionsvoidremoveAdminOwnerGroups(Long[] grids_) Removes the administrative permission of the groupsvoidremoveAdminOwners(String[] unames_) Removes the administrative permission of the usersvoidremoveAnalystGroups(Long[] grids_) Deprecated.voidremoveAnalysts(String[] unames_) Deprecated.voidremoveEditorGroups(Long[] grids_) Removes editor permission of the groupsvoidremoveEditors(String[] unames_) Removes editor permission of the usersvoidremoveExplicitNonViewerGroups(Long[] grids_) Deletes explicitly denied permissions from the groupsvoidremoveExplicitNonViewers(String[] unames_) Deletes explicitly denied permissions from the usersvoidremoveInitiatorGroups(Long[] grids_) Deletes analyst permissions from the groupsvoidremoveInitiators(String[] unames_) Deletes analyst permissions from the usersvoidremoveManagerGroups(Long[] grids_) Deletes power user permissions from the groupsvoidremoveManagers(String[] unames_) Deletes power user permissions from the usersvoidremovePowerUserGroups(Long[] grids_) Deprecated.voidremovePowerUsers(String[] unames_) Deprecated.voidremoveViewerGroups(Long[] grids_) Deletes the viewer permission of the groupsvoidremoveViewers(String[] unames_) Deletes the viewer permission of the usersvoidsetAdminOwnerGroups(Long[] grids_) Sets the groups who have administrative permissionsvoidsetAdminOwners(String[] unames_) Sets the users who have administrative permissionsvoidsetAnalystGroups(Long[] grids_) Deprecated.voidsetAnalysts(String[] unames_) Deprecated.voidsetEditorGroups(Long[] grids_) Sets the groups who have editor permissionsvoidsetEditors(String[] unames_) Sets the users who have editor permissionsvoidsetExplicitNonViewerGroups(Long[] grids_) Sets the groups who have been explicitly denied permissionsvoidsetExplicitNonViewers(String[] unames_) Sets the users who have been explicitly denied permissionsvoidsetInitiatorGroups(Long[] grids_) Sets the groups who have analyst permissionsvoidsetInitiators(String[] unames_) Sets the users who have analyst permissionsvoidsetManagerGroups(Long[] grids_) Sets the groups who have power user permissionsvoidsetManagers(String[] unames_) Sets the users who have power user permissionsvoidsetPowerUserGroups(Long[] grids_) Deprecated.voidsetPowerUsers(String[] unames_) Deprecated.voidsetViewerGroups(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
-
ADMIN_OWNER
- See Also:
-
EDITOR
- See Also:
-
VIEWER
- See Also:
-
INITIATOR
- See Also:
-
MANAGER
- See Also:
-
EXPLICIT_NONMEMBER
- See Also:
-
ALL_ROLES
-
COLUMN_ADMIN_OWNER
public static final int COLUMN_ADMIN_OWNER- See Also:
-
COLUMN_EDITOR
public static final int COLUMN_EDITOR- See Also:
-
COLUMN_MANAGER
public static final int COLUMN_MANAGER- See Also:
-
COLUMN_VIEWER
public static final int COLUMN_VIEWER- See Also:
-
COLUMN_INITIATOR
public static final int COLUMN_INITIATOR- See Also:
-
COLUMN_EXPLICIT_NONMEMBER
public static final int COLUMN_EXPLICIT_NONMEMBER- See Also:
-
-
Constructor Details
-
ProcessRoleMap
public ProcessRoleMap() -
ProcessRoleMap
-
-
Method Details
-
getRoleForColumn
Returns the role type (string) for a role integer id- Parameters:
n- integer id of the role- Returns:
- role type
-
getAdminOwners
Retrieves the users who have administrative permissions- Returns:
- a list containing the unique IDs of the users
-
getAdminOwnerGroups
Retrieves the groups who have administrative permissions- Returns:
- a list containing the unique IDs of the groups
-
setAdminOwners
Sets the users who have administrative permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setAdminOwnerGroups
Sets the groups who have administrative permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addAdminOwners
Adds administrative permission for the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addAdminOwnerGroups
Adds administrative permission for the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removeAdminOwners
Removes the administrative permission of the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removeAdminOwnerGroups
Removes the administrative permission of the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-
getEditors
Retrieves the users who have editor permissions- Returns:
- a list containing the unique IDs of the users
-
getEditorGroups
Retrieves the groups who have editor permissions- Returns:
- a list containing the unique IDs of the groups
-
setEditors
Sets the users who have editor permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setEditorGroups
Sets the groups who have editor permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addEditors
Adds editor permission to the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addEditorGroups
Adds editor permission to the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removeEditors
Removes editor permission of the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removeEditorGroups
Removes editor permission of the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-
getViewers
Retrieves the users who have viewer permissions- Returns:
- a list containing the unique IDs of the users
-
getViewerGroups
Retrieves the groups who have viewer permissions- Returns:
- a list containing the unique IDs of the groups
-
setViewers
Sets the users who have viewer permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setViewerGroups
Sets the groups who have viewer permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addViewers
Adds viewer permission to the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addViewerGroups
Adds viewer permission to the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removeViewers
Deletes the viewer permission of the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removeViewerGroups
Deletes the viewer permission of the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-
getAnalysts
Deprecated. -
getInitiators
Retrieves the users who have analyst permissions- Returns:
- a list containing the unique IDs of the users
-
getAnalystGroups
Deprecated. -
getInitiatorGroups
Retrieves the groups who have analyst permissions- Returns:
- a list containing the unique IDs of the groups
-
setAnalysts
Deprecated. -
setInitiators
Sets the users who have analyst permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setAnalystGroups
Deprecated. -
setInitiatorGroups
Sets the groups who have analyst permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addAnalysts
Deprecated. -
addInitiators
Adds analyst permission to the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addAnalystGroups
Deprecated. -
addInitiatorGroups
Adds analyst permission to the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removeAnalysts
Deprecated. -
removeInitiators
Deletes analyst permissions from the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removeAnalystGroups
Deprecated. -
removeInitiatorGroups
Deletes analyst permissions from the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-
getPowerUsers
Deprecated. -
getManagers
Retrieves the users who have power user permissions- Returns:
- a list containing the unique IDs of the users
-
getPowerUserGroups
Deprecated. -
getManagerGroups
Retrieves the groups who have power user permissions- Returns:
- a list containing the unique IDs of the groups
-
setPowerUsers
Deprecated. -
setManagers
Sets the users who have power user permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setPowerUserGroups
Deprecated. -
setManagerGroups
Sets the groups who have power user permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addPowerUsers
Deprecated. -
addManagers
Adds power user permissions to the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addPowerUserGroups
Deprecated. -
addManagerGroups
Adds power user permissions to the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removePowerUsers
Deprecated. -
removeManagers
Deletes power user permissions from the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removePowerUserGroups
Deprecated. -
removeManagerGroups
Deletes power user permissions from the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-
getExplicitNonViewers
Retrieves the users who have been explicitly denied permissions- Returns:
- a list containing the unique IDs of the users
-
getExplicitNonViewerGroups
Retrieves the groups who have been explicitly denied permissions- Returns:
- a list containing the unique IDs of the groups
-
setExplicitNonViewers
Sets the users who have been explicitly denied permissions- Parameters:
unames_- a list containing the unique IDs of the users
-
setExplicitNonViewerGroups
Sets the groups who have been explicitly denied permissions- Parameters:
grids_- a list containing the unique IDs of the groups
-
addExplicitNonViewers
Adds explicitly denied permission to the users- Parameters:
unames_- a list containing the unique IDs of the users to be added
-
addExplicitNonViewerGroups
Adds explicitly denied permission to the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be added
-
removeExplicitNonViewers
Deletes explicitly denied permissions from the users- Parameters:
unames_- a list containing the unique IDs of the users to be deleted
-
removeExplicitNonViewerGroups
Deletes explicitly denied permissions from the groups- Parameters:
grids_- a list containing the unique IDs of the groups to be deleted
-