org.apache.jetspeed.services.security
Class JetspeedSecurityCache

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

public abstract class JetspeedSecurityCache
extends java.lang.Object

The Security Cache Service caches roles and permissions (ACLs)

Version:
$Id: JetspeedSecurityCache.java,v 1.8 2004/02/23 03:58:11 jford Exp $
Author:
David Sean Taylor

Field Summary
 java.lang.String SERVICE_NAME
          The name of this service
 
Constructor Summary
JetspeedSecurityCache()
           
 
Method Summary
static void addPermission(java.lang.String roleName, Permission permission)
           
static void addRole(Role role)
           
static void addRole(java.lang.String username, Role role)
           
static void addRole(java.lang.String username, Role role, Group group)
           
static CachedAcl getAcl(java.lang.String username)
           
static Permission getPermission(java.lang.String roleName, java.lang.String permissionName)
           
static java.util.Iterator getPermissions(java.lang.String roleName)
           
static Role getRole(java.lang.String username, java.lang.String roleName)
           
static Role getRole(java.lang.String username, java.lang.String roleName, java.lang.String groupName)
           
static java.util.Iterator getRoles(java.lang.String username)
           
protected static SecurityCacheService getService()
           
static boolean hasPermission(java.lang.String roleName, java.lang.String permissionName)
           
static boolean hasRole(java.lang.String username, java.lang.String roleName)
           
static boolean hasRole(java.lang.String username, java.lang.String roleName, java.lang.String groupName)
           
static void load(java.lang.String username)
           
static void loadRolePermissions()
           
static void removeAllPermissions(java.lang.String permissionName)
           
static void removeAllRoles(java.lang.String rolename)
           
static void removePermission(java.lang.String roleName, java.lang.String permissionName)
           
static void removeRole(java.lang.String username, java.lang.String roleName)
           
static void removeRole(java.lang.String username, java.lang.String roleName, java.lang.String groupName)
           
static void unload(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public java.lang.String SERVICE_NAME
The name of this service

Constructor Detail

JetspeedSecurityCache

public JetspeedSecurityCache()
Method Detail

getService

protected static SecurityCacheService getService()

load

public static void load(java.lang.String username)
                 throws JetspeedSecurityException
Throws:
JetspeedSecurityException

unload

public static void unload(java.lang.String username)

loadRolePermissions

public static void loadRolePermissions()

getRole

public static Role getRole(java.lang.String username,
                           java.lang.String roleName)

getRole

public static Role getRole(java.lang.String username,
                           java.lang.String roleName,
                           java.lang.String groupName)

addRole

public static void addRole(Role role)

addRole

public static void addRole(java.lang.String username,
                           Role role)

addRole

public static void addRole(java.lang.String username,
                           Role role,
                           Group group)

hasRole

public static boolean hasRole(java.lang.String username,
                              java.lang.String roleName)

hasRole

public static boolean hasRole(java.lang.String username,
                              java.lang.String roleName,
                              java.lang.String groupName)

removeRole

public static void removeRole(java.lang.String username,
                              java.lang.String roleName)

removeRole

public static void removeRole(java.lang.String username,
                              java.lang.String roleName,
                              java.lang.String groupName)

getRoles

public static java.util.Iterator getRoles(java.lang.String username)

getAcl

public static CachedAcl getAcl(java.lang.String username)

removeAllRoles

public static void removeAllRoles(java.lang.String rolename)

removeAllPermissions

public static void removeAllPermissions(java.lang.String permissionName)

getPermission

public static Permission getPermission(java.lang.String roleName,
                                       java.lang.String permissionName)

addPermission

public static void addPermission(java.lang.String roleName,
                                 Permission permission)

hasPermission

public static boolean hasPermission(java.lang.String roleName,
                                    java.lang.String permissionName)

removePermission

public static void removePermission(java.lang.String roleName,
                                    java.lang.String permissionName)

getPermissions

public static java.util.Iterator getPermissions(java.lang.String roleName)


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