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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if you have theContentRoleMap.ADMINISTRATORrole.booleanReturns true if you have theContentRoleMap.AUTHORrole.booleanReturns true if you have theContentRoleMap.ADMINISTRATORrole.booleanReturns true if you have theContentRoleMap.AUTHORorContentRoleMap.ADMINISTRATORrole.booleanReturns true if you have theContentRoleMap.READER,ContentRoleMap.AUTHOR, orContentRoleMap.ADMINISTRATORroles.booleanReturns true if you have no roles.booleanReturns true if you have theContentRoleMap.READERrole.
-
Constructor Details
-
ContentRoleSet
public ContentRoleSet()
-
-
Method Details
-
getAuthor
public boolean getAuthor()Returns true if you have theContentRoleMap.AUTHORrole.- Returns:
- true if you have the
ContentRoleMap.AUTHORrole.
-
getAdministrator
public boolean getAdministrator()Returns true if you have theContentRoleMap.ADMINISTRATORrole.- Returns:
- true if you have the
ContentRoleMap.ADMINISTRATORrole.
-
getReader
public boolean getReader()Returns true if you have theContentRoleMap.READERrole.- Returns:
- true if you have the
ContentRoleMap.READERrole.
-
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.AUTHORorContentRoleMap.ADMINISTRATORrole.- Returns:
- true if you have the
ContentRoleMap.AUTHORorContentRoleMap.ADMINISTRATORrole.
-
getCanAdministrate
public boolean getCanAdministrate()Returns true if you have theContentRoleMap.ADMINISTRATORrole.- Returns:
- true if you have the
ContentRoleMap.ADMINISTRATORrole.
-
getCanView
public boolean getCanView()Returns true if you have theContentRoleMap.READER,ContentRoleMap.AUTHOR, orContentRoleMap.ADMINISTRATORroles.- Returns:
- true if you have the
ContentRoleMap.READER,ContentRoleMap.AUTHOR, orContentRoleMap.ADMINISTRATORroles.
-