info.magnolia.cms.security
Class MgnlRole

java.lang.Object
  extended by info.magnolia.cms.security.MgnlRole
All Implemented Interfaces:
Role, Serializable

public class MgnlRole
extends Object
implements Role

Wraps a role jcr-node.

Version:
$Revision$ ($Author$)
See Also:
Serialized Form

Field Summary
static long PERMISSION_ANY
           
 
Constructor Summary
protected MgnlRole(String name, String roleId, Collection<ACL> acls)
           
 
Method Summary
 void addPermission(String repository, String path, long permission)
           
 String getId()
          Gets identifier of the role.
 String getName()
           
 void removePermission(String repository, String path)
           
 void removePermission(String repository, String path, long permission)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_ANY

public static long PERMISSION_ANY
Constructor Detail

MgnlRole

protected MgnlRole(String name,
                   String roleId,
                   Collection<ACL> acls)
Method Detail

getName

public String getName()
Specified by:
getName in interface Role

addPermission

public void addPermission(String repository,
                          String path,
                          long permission)
Specified by:
addPermission in interface Role

removePermission

public void removePermission(String repository,
                             String path)
Specified by:
removePermission in interface Role

removePermission

public void removePermission(String repository,
                             String path,
                             long permission)
Specified by:
removePermission in interface Role

getId

public String getId()
Description copied from interface: Role
Gets identifier of the role.

Specified by:
getId in interface Role
Returns:


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.