org.jasig.portal.security.provider
Class PermissionSetImpl

java.lang.Object
  extended by org.jasig.portal.security.provider.PermissionSetImpl
All Implemented Interfaces:
IBasicEntity, IPermissionSet

public class PermissionSetImpl
extends Object
implements IPermissionSet

Version:
$Revision: 19776 $ 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

Constructor Summary
PermissionSetImpl(IPermission[] perms, IAuthorizationPrincipal principal)
           
PermissionSetImpl(IPermission[] perms, String key, Class type)
           
 
Method Summary
 EntityIdentifier getEntityIdentifier()
           
 IPermission[] getPermissions()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionSetImpl

public PermissionSetImpl(IPermission[] perms,
                         IAuthorizationPrincipal principal)

PermissionSetImpl

public PermissionSetImpl(IPermission[] perms,
                         String key,
                         Class type)
Method Detail

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[]

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Jasig. All Rights Reserved.