org.apache.jetspeed.services.security
Class CachedAcl
java.lang.Object
org.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
Constructor Summary |
CachedAcl(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupRoles
protected java.util.HashMap groupRoles
userName
protected java.lang.String userName
CachedAcl
public CachedAcl(java.lang.String userName)
- Parameters:
userName
-
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.