|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission org.jboss.portal.security.PortalPermission
Base permission that can act either as a container or as a permission that has an URI.
Field Summary | |
protected PortalPermissionCollection |
collection
. |
protected java.lang.String |
uri
. |
Fields inherited from class java.security.Permission |
|
Constructor Summary | |
PortalPermission(java.lang.String name,
PortalPermissionCollection collection)
|
|
PortalPermission(java.lang.String name,
java.lang.String uri)
|
Method Summary | |
abstract java.lang.String |
getType()
Return the portal permission type. |
java.lang.String |
getURI()
Return the uri for the permission or null if the permission acts as a container. |
abstract boolean |
implies(PermissionRepository repository,
javax.security.auth.Subject caller,
java.lang.String roleName,
PortalPermission permission)
Implement the imply logic when we check the permission against a domain. |
boolean |
isContainer()
Return true if the permission is a container. |
java.security.PermissionCollection |
newPermissionCollection()
Return an instance of PortalPermissionCollection or null if the permission does not act as a container. |
Methods inherited from class java.security.Permission |
checkGuard, equals, getActions, getName, hashCode, implies, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final java.lang.String uri
protected final PortalPermissionCollection collection
Constructor Detail |
public PortalPermission(java.lang.String name, PortalPermissionCollection collection)
public PortalPermission(java.lang.String name, java.lang.String uri)
Method Detail |
public java.lang.String getURI()
public java.security.PermissionCollection newPermissionCollection()
public boolean isContainer()
public abstract java.lang.String getType()
public abstract boolean implies(PermissionRepository repository, javax.security.auth.Subject caller, java.lang.String roleName, PortalPermission permission) throws PortalSecurityException
repository
- caller
- permission
-
PortalSecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |