Liferay 6.2-ce-ga5

com.liferay.portal.model
Class ResourceBlockPermissionsContainer

java.lang.Object
  extended by 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.


Constructor Summary
ResourceBlockPermissionsContainer()
           
 
Method Summary
 void addPermission(long roleId, long actionIdsLong)
           
 long getActionIds(long roleId)
           
 SortedMap<Long,Long> getPermissions()
           
 String getPermissionsHash()
          Returns the permissions hash of the resource permissions.
 void removePermission(long roleId, long actionIdsLong)
           
 void setPermissions(long roleId, long actionIdsLong)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBlockPermissionsContainer

public ResourceBlockPermissionsContainer()
Method Detail

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)

Liferay 6.2-ce-ga5