org.apache.jetspeed.services.security
Class CachedAcl

java.lang.Object
  extended byorg.apache.jetspeed.services.security.CachedAcl

public class CachedAcl
extends java.lang.Object

Cached ACL - default implementation cached ACL containing role/permission.

Version:
$Id: CachedAcl.java,v 1.5 2004/02/23 03:58:11 jford Exp $
Author:
David Sean Taylor, Mark Orciuch

Field Summary
protected  java.util.HashMap groupRoles
           
protected  java.lang.String userName
           
 
Constructor Summary
CachedAcl(java.lang.String userName)
           
 
Method Summary
 void addRole(Role role)
           
 void addRole(Role role, Group group)
           
 Role getRole(java.lang.String roleName)
           
 Role getRole(java.lang.String roleName, java.lang.String groupName)
           
 java.util.Iterator getRoles()
           
 java.lang.String getUserName()
           
 boolean hasRole(java.lang.String roleName)
           
 boolean hasRole(java.lang.String roleName, java.lang.String groupName)
           
 void removeRole(java.lang.String roleName)
           
 void removeRole(java.lang.String roleName, java.lang.String groupName)
           
 void setRoles(java.util.Iterator grouproles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupRoles

protected java.util.HashMap groupRoles

userName

protected java.lang.String userName
Constructor Detail

CachedAcl

public CachedAcl(java.lang.String userName)
Parameters:
userName -
Method Detail

addRole

public void addRole(Role role)
Parameters:
role -

addRole

public void addRole(Role role,
                    Group group)
Parameters:
role -
group -

getRole

public Role getRole(java.lang.String roleName)
Parameters:
roleName -
Returns:

getRole

public Role getRole(java.lang.String roleName,
                    java.lang.String groupName)
Parameters:
roleName -
groupName -
Returns:

getRoles

public java.util.Iterator getRoles()
Returns:

getUserName

public java.lang.String getUserName()
Returns:

hasRole

public boolean hasRole(java.lang.String roleName)
Parameters:
roleName -
Returns:

hasRole

public boolean hasRole(java.lang.String roleName,
                       java.lang.String groupName)
Parameters:
roleName -
groupName -
Returns:

removeRole

public void removeRole(java.lang.String roleName)
Parameters:
roleName -

removeRole

public void removeRole(java.lang.String roleName,
                       java.lang.String groupName)
Parameters:
roleName -
groupName -

setRoles

public void setRoles(java.util.Iterator grouproles)
Parameters:
grouproles -


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.