Package com.appiancorp.suiteapi.common
Class AEVRoleMap
java.lang.Object
com.appiancorp.suiteapi.common.RoleMap
com.appiancorp.suiteapi.common.PublicRoleMap
com.appiancorp.suiteapi.common.AEVRoleMap
- All Implemented Interfaces:
XMLable,Serializable,Map
- Direct Known Subclasses:
PortalRoleMap
This class can be used as base class for any object acting as RoleMap where
User and Group can be added to view or edit a
particular object.- See Also:
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class com.appiancorp.suiteapi.common.PublicRoleMap
ADMINISTRATOR, TYPE_GROUP, TYPE_USERFields inherited from class com.appiancorp.suiteapi.common.RoleMap
AGGREGATE_SECURITY_KEY, SECURITY_KEY, TYPE_AGGREGATE_GROUP, TYPE_AGGREGATE_USER, TYPE_GROUP_UUIDS, TYPE_USER_UUIDSFields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEditorGroups(Long[] id_) Adds theGroups identified by given ID's as editors to existing array of Group Editors.voidaddEditors(String[] id_) Adds theUsers identified by given usernames as editors to existing array of Editors.voidaddViewerGroups(Long[] id_) Adds theGroups identified by given ID's as viewers to existing array of Group Viewers.voidaddViewers(String[] id_) Adds theUsers identified by given usernames as viewers to existing array of Viewers.Long[]Returns the ID's ofGroups whose role is Editor of object.String[]Returns the usernames ofUsers whose role is Editor of object.Long[]Returns the ID's ofGroups whose role is Viewer of object.String[]Returns the usernames ofUsers whose role is Viewer of object.voidremoveEditorGroups(Long[] id_) Removes theGroups identified by given ID's as editors.voidremoveEditors(String[] id_) Removes theUsers identified by given usernames as editors.voidremoveViewerGroups(Long[] id_) Removes theGroups identified by given ID's as viewers.voidremoveViewers(String[] id_) Removes theUsers identified by given usernames as viewers.voidsetEditorGroups(Long[] id_) Sets theGroups identified by given ID's as editors.voidsetEditors(String[] id_) Sets theUsers identified by given usernames as editors.voidsetViewerGroups(Long[] id_) Sets theGroups identified by given ID's as viewers.voidsetViewers(String[] id_) Sets theUsers identified by given usernames as viewers.Methods inherited from class com.appiancorp.suiteapi.common.PublicRoleMap
addAdministratorGroups, addAdministrators, getAdministratorGroups, getAdministrators, removeAdministratorGroups, removeAdministrators, setAdministratorGroups, setAdministratorsMethods 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
-
AEVRoleMap
public AEVRoleMap()
-
-
Method Details
-
getEditors
Returns the usernames ofUsers whose role is Editor of object.- Returns:
- string array of usernames
- See Also:
-
getEditorGroups
Returns the ID's ofGroups whose role is Editor of object.- Returns:
- Long array of group ID's
- See Also:
-
getViewers
Returns the usernames ofUsers whose role is Viewer of object.- Returns:
- string array of usernames
- See Also:
-
getViewerGroups
Returns the ID's ofGroups whose role is Viewer of object.- Returns:
- Long array of group ID's
- See Also:
-
setEditors
Sets theUsers identified by given usernames as editors.- Parameters:
id_- array of usernames to set as editors- See Also:
-
setEditorGroups
Sets theGroups identified by given ID's as editors.- Parameters:
id_- array ofGroupID's to set as editors- See Also:
-
setViewers
Sets theUsers identified by given usernames as viewers.- Parameters:
id_- array of usernames to set as viewers- See Also:
-
setViewerGroups
Sets theGroups identified by given ID's as viewers.- Parameters:
id_- array ofGroupID's to set as viewers- See Also:
-
addEditors
Adds theUsers identified by given usernames as editors to existing array of Editors.- Parameters:
id_- array of usernames to add as editors
-
addEditorGroups
Adds theGroups identified by given ID's as editors to existing array of Group Editors.- Parameters:
id_- array of ID's to add as editors
-
addViewers
Adds theUsers identified by given usernames as viewers to existing array of Viewers.- Parameters:
id_- array of usernames to add as viewers
-
addViewerGroups
Adds theGroups identified by given ID's as viewers to existing array of Group Viewers.- Parameters:
id_- array of ID's to add as viewers
-
removeEditors
Removes theUsers identified by given usernames as editors.- Parameters:
id_- array of usernames to remove as editors
-
removeEditorGroups
Removes theGroups identified by given ID's as editors.- Parameters:
id_- array of ID's to remove as editors
-
removeViewers
Removes theUsers identified by given usernames as viewers.- Parameters:
id_- array of usernames to remove as viewers
-
removeViewerGroups
Removes theGroups identified by given ID's as viewers.- Parameters:
id_- array of ID's to remove as viewers
-