Package com.appiancorp.suiteapi.content
Class ContentRole
java.lang.Object
com.appiancorp.suiteapi.common.Role
com.appiancorp.suiteapi.content.ContentRole
- All Implemented Interfaces:
Comparable<Role>
Holds the data for an individual role within a Content object's role map.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.appiancorp.suiteapi.common.Role
Role.PermissionMergeStrategy
-
Field Summary
Fields inherited from class com.appiancorp.suiteapi.common.Role
ADDING_STRATEGY, asRoleName, REMOVING_STRATEGY, REPLACING_STRATEGY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether all users have this role automatically.boolean
Returns whether the users/groups that have this role are inherited from the parent object.void
setAllowForAll
(boolean allowForAll) void
setInherit
(boolean inherit) toString()
Methods inherited from class com.appiancorp.suiteapi.common.Role
addPermissions, applyRole, applyRoleMap, compareTo, equals, getGroupIds, getGroupUuids, getName, getUsernames, getUserUuids, hashCode, removePermissions, setGroupIds, setGroupUuids, setName, setUsernames, setUserUuids
-
Constructor Details
-
ContentRole
public ContentRole() -
ContentRole
-
ContentRole
-
-
Method Details
-
isInherit
public boolean isInherit()Returns whether the users/groups that have this role are inherited from the parent object. -
setInherit
public void setInherit(boolean inherit) -
isAllowForAll
public boolean isAllowForAll()Returns whether all users have this role automatically. -
setAllowForAll
public void setAllowForAll(boolean allowForAll) -
toString
-