org.jasig.portal.security.provider
Class PermissionSetImpl
java.lang.Object
org.jasig.portal.security.provider.PermissionSetImpl
- All Implemented Interfaces:
- IBasicEntity, IPermissionSet
- public class PermissionSetImpl
- extends java.lang.Object
- implements IPermissionSet
- Version:
- $Revision: 1.1 $
Aggregates
IPermissions
for a single
IAuthorizationPrincipal
so that the permissions can be
cached as a unit by the EntityCachingService
.
Separating caching of principals and permissions lets a client keep
a reference to a principal over time while being guaranteed the
latest version of its permissions.
- Author:
- Dan Ellentuck, de3@columbia.edu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionSetImpl
public PermissionSetImpl(IPermission[] perms,
IAuthorizationPrincipal principal)
PermissionSetImpl
public PermissionSetImpl(IPermission[] perms,
java.lang.String key,
java.lang.Class type)
getPermissions
public IPermission[] getPermissions()
- Specified by:
getPermissions
in interface IPermissionSet
- Returns:
- IPermission[]
getEntityIdentifier
public EntityIdentifier getEntityIdentifier()
- Specified by:
getEntityIdentifier
in interface IBasicEntity
- Returns:
- EntityIdentifier IPermission[]