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: 41137 $ ($Author: gjoseph $)
See Also:
Serialized Form

Field Summary
static long PERMISSION_ANY
           
 
Constructor Summary
protected MgnlRole(Content roleNode)
           
 
Method Summary
 void addPermission(String repository, String path, long permission)
           
 String getName()
           
 Content getRoleNode()
           
 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(Content roleNode)
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

getRoleNode

public Content getRoleNode()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.