info.magnolia.jaas.principal
Class ACLImpl

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

public class ACLImpl
extends java.lang.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(java.lang.Object permission)
          Adds permission in to the list of permissions for this principal.
 java.util.List getList()
          Returns list of permissions for this principal.
 java.lang.String getName()
          Get name given to this principal.
 java.lang.String getRepository()
          Get repository ID for which this ACL has been constructed.
 java.lang.String getWorkspace()
          Get workspace ID for which this ACL has been constructed.
 void setList(java.util.List list)
          Initialize access control list with provided permissions it will overwrite any existing permissions set before.
 void setName(java.lang.String name)
          Set this principal name.
 void setRepository(java.lang.String repository)
          Set repository ID for which this ACL will be constructed.
 void setWorkspace(java.lang.String workspace)
          Set workspace ID for which this ACL will be constructed.
 java.lang.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 java.lang.String getName()
Get name given to this principal.

Specified by:
getName in interface ACL
Specified by:
getName in interface java.security.Principal
Returns:
name

setName

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

Specified by:
setName in interface ACL

getRepository

public java.lang.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(java.lang.String repository)
Set repository ID for which this ACL will be constructed.

Specified by:
setRepository in interface ACL
Parameters:
repository -

getWorkspace

public java.lang.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(java.lang.String workspace)
Set workspace ID for which this ACL will be constructed.

Specified by:
setWorkspace in interface ACL
Parameters:
workspace -

addPermission

public void addPermission(java.lang.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(java.util.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 java.util.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 java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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