| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.PermissionCollection
org.jboss.portal.security.PortalPermissionCollection
This class is a litteral reference to a portal permission repository. Subclasses should implement the implies logic and leverage the repository to get the role.
| Field Summary | |
| private  AuthorizationDomain | domainThe repository to load the permission. | 
| private static org.apache.log4j.Logger | log. | 
| (package private)  PortalPermission | ownerThe owner of this collection. | 
| Fields inherited from class java.security.PermissionCollection | 
|  | 
| Constructor Summary | |
| PortalPermissionCollection(AuthorizationDomain repository)Create a new portal permission collection. | |
| Method Summary | |
|  void | add(java.security.Permission permission)The only time this method is called is when JACC creates an instance of this object in order to add the owner permission to the collection. | 
| abstract  java.util.Enumeration | elements() | 
| abstract  javax.security.auth.Subject | getCaller()Return the subject being used or null. | 
| abstract  java.lang.String | getRoleName()Return the role name attached to the collection. | 
|  boolean | implies(java.security.Permission permission)This implementation delegates to the container permission associated with this collection the logic of the check against the repository using the method PortalPermission#implies(AuthorizationDomain,String,PortalPermission). | 
| Methods inherited from class java.security.PermissionCollection | 
| isReadOnly, setReadOnly, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
private static final org.apache.log4j.Logger log
private AuthorizationDomain domain
PortalPermission owner
| Constructor Detail | 
public PortalPermissionCollection(AuthorizationDomain repository) throws java.lang.IllegalArgumentException
repository - the repository to load the permissions from
java.lang.IllegalArgumentException - if any argument is null| Method Detail | 
public final void add(java.security.Permission permission)
               throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the added permission is not the owner of this collectionpublic boolean implies(java.security.Permission permission)
public abstract java.util.Enumeration elements()
public abstract java.lang.String getRoleName()
public abstract javax.security.auth.Subject getCaller()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||