info.magnolia.cms.security.auth
Interface ACL

All Superinterfaces:
java.security.Principal, java.io.Serializable

public interface ACL
extends java.security.Principal, java.io.Serializable

Author:
Sameer Charles $Id: ACL.java 32667 2010-03-13 00:37:06Z gjoseph $

Method Summary
 void addPermission(java.lang.Object permission)
          add permission in to an existing list
 java.util.List<Permission> 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 contructed
 void setList(java.util.List<Permission> 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
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getName

java.lang.String getName()
Get name given to this principal

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

setName

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


getRepository

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

Returns:
repository ID

setRepository

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

Parameters:
repository -

getWorkspace

java.lang.String getWorkspace()
Get workspace ID for which this ACL has been contructed

Returns:
workspace ID

setWorkspace

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

Parameters:
workspace -

addPermission

void addPermission(java.lang.Object permission)
add permission in to an existing list

Parameters:
permission -

setList

void setList(java.util.List<Permission> list)
Initialize access control list with provided permissions it will overwrite any existing permissions set before.

Parameters:
list -

getList

java.util.List<Permission> getList()
Returns list of permissions for this principal



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