当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
HierarchyPermission - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.test.security
Class HierarchyPermission
java.lang.Object
java.security.Permission
org.jboss.portal.security.PortalPermission
org.jboss.portal.test.security.HierarchyPermission
- All Implemented Interfaces:
- java.security.Guard, java.io.Serializable
- public class HierarchyPermission
- extends PortalPermission
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
- See Also:
- Serialized Form
Fields inherited from class java.security.Permission |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActions()
|
java.lang.String |
getType()
Return the portal permission type. |
int |
hashCode()
|
boolean |
implies(java.security.Permission permission)
|
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. |
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- The serialVersionUID
- See Also:
- Constant Field Values
VIEW_ACTION
public static final java.lang.String VIEW_ACTION
- .
- See Also:
- Constant Field Values
VIEW_RECCURSIVE_ACTION
public static final java.lang.String VIEW_RECCURSIVE_ACTION
- .
- See Also:
- Constant Field Values
action
private final java.lang.String action
- .
HierarchyPermission
public HierarchyPermission(PortalPermissionCollection collection)
HierarchyPermission
public HierarchyPermission(java.lang.String uri,
java.lang.String action)
implies
public boolean implies(PermissionRepository repository,
javax.security.auth.Subject caller,
java.lang.String roleName,
PortalPermission permission)
throws PortalSecurityException
- Description copied from class:
PortalPermission
- Implement the imply logic when we check the permission against a domain.
- Specified by:
implies
in class PortalPermission
- Parameters:
repository
- caller
- permission
-
- Returns:
- true if the permission is implied
- Throws:
PortalSecurityException
implies
public boolean implies(java.security.Permission permission)
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()
getActions
public java.lang.String getActions()
getType
public java.lang.String getType()
- Description copied from class:
PortalPermission
- Return the portal permission type.
- Specified by:
getType
in class PortalPermission
- Returns:
- the portal permission type