com.liferay.portal.model
Class ResourceBlockPermissionsContainer
java.lang.Object
com.liferay.portal.model.ResourceBlockPermissionsContainer
public class ResourceBlockPermissionsContainer
- extends Object
Manages a list of the roles with permission to access a resource block and
the actions they can perform.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBlockPermissionsContainer
public ResourceBlockPermissionsContainer()
addPermission
public void addPermission(long roleId,
long actionIdsLong)
getActionIds
public long getActionIds(long roleId)
getPermissions
public SortedMap<Long,Long> getPermissions()
getPermissionsHash
public String getPermissionsHash()
- Returns the permissions hash of the resource permissions. The permissions
hash is a representation of all the roles with access to the resource
along with the actions they can perform.
- Returns:
- the permissions hash of the resource permissions
removePermission
public void removePermission(long roleId,
long actionIdsLong)
setPermissions
public void setPermissions(long roleId,
long actionIdsLong)