Package com.appiancorp.suiteapi.content
Class ContentRoleSet
java.lang.Object
com.appiancorp.suiteapi.common.Identity
com.appiancorp.suiteapi.common.RoleSet
com.appiancorp.suiteapi.content.ContentRoleSet
- All Implemented Interfaces:
LocalId
,Serializable
This class represents the access permissions for a Content item.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if you have theContentRoleMap.ADMINISTRATOR
role.boolean
Returns true if you have theContentRoleMap.AUTHOR
role.boolean
Returns true if you have theContentRoleMap.ADMINISTRATOR
role.boolean
Returns true if you have theContentRoleMap.AUTHOR
orContentRoleMap.ADMINISTRATOR
role.boolean
Returns true if you have theContentRoleMap.READER
,ContentRoleMap.AUTHOR
, orContentRoleMap.ADMINISTRATOR
roles.boolean
Returns true if you have no roles.boolean
Returns true if you have theContentRoleMap.READER
role.
-
Constructor Details
-
ContentRoleSet
public ContentRoleSet()
-
-
Method Details
-
getAuthor
public boolean getAuthor()Returns true if you have theContentRoleMap.AUTHOR
role.- Returns:
- true if you have the
ContentRoleMap.AUTHOR
role.
-
getAdministrator
public boolean getAdministrator()Returns true if you have theContentRoleMap.ADMINISTRATOR
role.- Returns:
- true if you have the
ContentRoleMap.ADMINISTRATOR
role.
-
getReader
public boolean getReader()Returns true if you have theContentRoleMap.READER
role.- Returns:
- true if you have the
ContentRoleMap.READER
role.
-
getNoAccess
public boolean getNoAccess()Returns true if you have no roles.- Returns:
- true if you have no roles.
-
getCanEdit
public boolean getCanEdit()Returns true if you have theContentRoleMap.AUTHOR
orContentRoleMap.ADMINISTRATOR
role.- Returns:
- true if you have the
ContentRoleMap.AUTHOR
orContentRoleMap.ADMINISTRATOR
role.
-
getCanAdministrate
public boolean getCanAdministrate()Returns true if you have theContentRoleMap.ADMINISTRATOR
role.- Returns:
- true if you have the
ContentRoleMap.ADMINISTRATOR
role.
-
getCanView
public boolean getCanView()Returns true if you have theContentRoleMap.READER
,ContentRoleMap.AUTHOR
, orContentRoleMap.ADMINISTRATOR
roles.- Returns:
- true if you have the
ContentRoleMap.READER
,ContentRoleMap.AUTHOR
, orContentRoleMap.ADMINISTRATOR
roles.
-