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

NullAuthorizationRealm - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.security
Class NullAuthorizationRealm

java.lang.Object
  extended byorg.jboss.portal.core.security.NullAuthorizationRealm
All Implemented Interfaces:
AuthorizationRealm

public class NullAuthorizationRealm
extends java.lang.Object
implements AuthorizationRealm


Field Summary
static NullAuthorizationRealm instance
           
 
Fields inherited from interface org.jboss.portal.core.security.AuthorizationRealm
ANONYMOUS_ROLE, ANONYMOUS_ROLE_SET
 
Constructor Summary
NullAuthorizationRealm()
           
 
Method Summary
 boolean hasPermission(java.util.Set roles, java.lang.String permission)
          Return true if one of the given roles has the global permission.
 boolean hasPermission(java.util.Set roles, java.lang.String[] path, java.lang.String permission)
          Return true if one of the given roles has the local permission.
 boolean hasPermission(java.lang.String domain, java.util.Set roles, java.lang.String permission)
          Return true if one of the given roles has the global permission.
 boolean hasPermission(java.lang.String domain, java.util.Set roles, java.lang.String[] path, java.lang.String permission)
          Return true if one of the given roles has the local permission.
 boolean hasPermission(java.lang.String role, java.lang.String permission)
          Return true if the given role has the global permission.
 boolean hasPermission(java.lang.String role, java.lang.String[] path, java.lang.String permission)
          Return true if the given role has the local permission.
 boolean hasPermission(java.lang.String domain, java.lang.String role, java.lang.String permission)
          Return true if the given role has the global permission.
 boolean hasPermission(java.lang.String domain, java.lang.String role, java.lang.String[] path, java.lang.String permission)
          Return true if the given role has the local permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final NullAuthorizationRealm instance
Constructor Detail

NullAuthorizationRealm

public NullAuthorizationRealm()
Method Detail

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.lang.String role,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if the given role has the global permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.util.Set roles,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if one of the given roles has the global permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.lang.String role,
                             java.lang.String[] path,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if the given role has the local permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.util.Set roles,
                             java.lang.String[] path,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if one of the given roles has the local permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.lang.String role,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if the given role has the global permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.util.Set roles,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if one of the given roles has the global permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.lang.String role,
                             java.lang.String[] path,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if the given role has the local permission.

Specified by:
hasPermission in interface AuthorizationRealm

hasPermission

public boolean hasPermission(java.util.Set roles,
                             java.lang.String[] path,
                             java.lang.String permission)
Description copied from interface: AuthorizationRealm
Return true if one of the given roles has the local permission.

Specified by:
hasPermission in interface AuthorizationRealm