站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

DomainImplyFailsPermission - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.security
Class DomainImplyFailsPermission

java.lang.Object
  extended byjava.security.Permission
      extended byorg.jboss.portal.security.PortalPermission
          extended byorg.jboss.portal.test.security.FlatPermission
              extended byorg.jboss.portal.test.security.DomainImplyFailsPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public class DomainImplyFailsPermission
extends FlatPermission

A permission that always fail to its domain implication method by throwing exception.

Version:
$Revision: 5448 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          The serialVersionUID
private  java.lang.Throwable throwable
          What we throw.
 
Fields inherited from class org.jboss.portal.test.security.FlatPermission
PERMISSION_TYPE
 
Fields inherited from class org.jboss.portal.security.PortalPermission
collection, uri
 
Fields inherited from class java.security.Permission
 
Constructor Summary
DomainImplyFailsPermission(PortalPermissionCollection collection, java.lang.Throwable throwable)
           
DomainImplyFailsPermission(java.lang.String uri)
           
 
Method Summary
 java.lang.String getType()
          Return the portal permission type.
 boolean implies(AuthorizationDomain repository, java.lang.String roleName, PortalPermission permission)
           
 
Methods inherited from class org.jboss.portal.test.security.FlatPermission
equals, getActions, hashCode, implies, implies
 
Methods inherited from class org.jboss.portal.security.PortalPermission
getURI, isContainer, newPermissionCollection
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

throwable

private java.lang.Throwable throwable
What we throw.

Constructor Detail

DomainImplyFailsPermission

public DomainImplyFailsPermission(PortalPermissionCollection collection,
                                  java.lang.Throwable throwable)

DomainImplyFailsPermission

public DomainImplyFailsPermission(java.lang.String uri)
Method Detail

implies

public boolean implies(AuthorizationDomain repository,
                       java.lang.String roleName,
                       PortalPermission permission)
                throws PortalSecurityException
Throws:
PortalSecurityException

getType

public java.lang.String getType()
Description copied from class: PortalPermission
Return the portal permission type.

Overrides:
getType in class FlatPermission