info.magnolia.cms.security.auth
Interface ACL

All Superinterfaces:
Principal, Serializable
All Known Implementing Classes:
ACLImpl

public interface ACL
extends Principal, Serializable

A concrete ACL (workspace, path and permissions). Also implements the JAAS Principal.

Author:
Sameer Charles $Id: ACL.java 41137 2011-01-06 18:19:25Z gjoseph $

Method Summary
 void addPermission(Object permission)
          Add permission in to an existing list.
 List<Permission> getList()
          Returns list of permissions for this principal.
 String getName()
           
 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<Permission> list)
          Initialize access control list with provided permissions it will overwrite any existing permissions set before.
 void setName(String 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.
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Method Detail

getName

String getName()
Specified by:
getName in interface Principal

setName

void setName(String name)

getRepository

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


setRepository

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


getWorkspace

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


setWorkspace

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


addPermission

void addPermission(Object permission)
Add permission in to an existing list.


setList

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


getList

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



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