info.magnolia.jaas.principal
Class ACLImpl

java.lang.Object
  extended by info.magnolia.jaas.principal.ACLImpl
All Implemented Interfaces:
ACL, Serializable, Principal

public class ACLImpl
extends Object
implements ACL

This class represents access control list as a principal.

Author:
Sameer Charles $Id: ACLImpl.java 41137 2011-01-06 18:19:25Z gjoseph $
See Also:
Serialized Form

Constructor Summary
ACLImpl()
           
 
Method Summary
 void addPermission(Object permission)
          Adds permission in to the list of permissions for this principal.
 List getList()
          Returns list of permissions for this principal.
 String getName()
          Get name given to this principal.
 String getRepository()
          Get repository ID for which this ACL has been constructed.
 String getWorkspace()
          Get workspace ID for which this ACL has been constructed.
 void setList(List list)
          Initialize access control list with provided permissions it will overwrite any existing permissions set before.
 void setName(String name)
          Set this principal name.
 void setRepository(String repository)
          Set repository ID for which this ACL will be constructed.
 void setWorkspace(String workspace)
          Set workspace ID for which this ACL will be constructed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Constructor Detail

ACLImpl

public ACLImpl()
Method Detail

getName

public String getName()
Get name given to this principal.

Specified by:
getName in interface ACL
Specified by:
getName in interface Principal
Returns:
name

setName

public void setName(String name)
Set this principal name.

Specified by:
setName in interface ACL

getRepository

public String getRepository()
Get repository ID for which this ACL has been constructed.

Specified by:
getRepository in interface ACL
Returns:
repository ID

setRepository

public void setRepository(String repository)
Set repository ID for which this ACL will be constructed.

Specified by:
setRepository in interface ACL
Parameters:
repository -

getWorkspace

public String getWorkspace()
Get workspace ID for which this ACL has been constructed.

Specified by:
getWorkspace in interface ACL
Returns:
workspace ID

setWorkspace

public void setWorkspace(String workspace)
Set workspace ID for which this ACL will be constructed.

Specified by:
setWorkspace in interface ACL
Parameters:
workspace -

addPermission

public void addPermission(Object permission)
Adds permission in to the list of permissions for this principal.

Specified by:
addPermission in interface ACL
Parameters:
permission -

setList

public void setList(List list)
Initialize access control list with provided permissions it will overwrite any existing permissions set before.

Specified by:
setList in interface ACL
Parameters:
list -

getList

public List getList()
Returns list of permissions for this principal. Returned list is not a copy and should be treated as read only!

Specified by:
getList in interface ACL

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object
See Also:
Object.toString()


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