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

AuthorizationRealm - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.security
Interface AuthorizationRealm

All Known Implementing Classes:
AccessControllerAuthorizationRealm, ModelAuthorizationRealm, NullAuthorizationRealm

public interface AuthorizationRealm

The interface a component deals with. It allows a component to perform authorization queries on it.


Field Summary
static java.lang.String ANONYMOUS_ROLE
          Anonymous ( "" ) role value.
static java.util.Set ANONYMOUS_ROLE_SET
          Anonymous role.
 
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.
 

Field Detail

ANONYMOUS_ROLE

public static final java.lang.String ANONYMOUS_ROLE
Anonymous ( "" ) role value.


ANONYMOUS_ROLE_SET

public static final java.util.Set ANONYMOUS_ROLE_SET
Anonymous role.

Method Detail

hasPermission

public boolean hasPermission(java.lang.String domain,
                             java.lang.String role,
                             java.lang.String permission)
Return true if the given role has the global permission.


hasPermission

public 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.


hasPermission

public 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.


hasPermission

public 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.


hasPermission

public boolean hasPermission(java.lang.String role,
                             java.lang.String permission)
Return true if the given role has the global permission.


hasPermission

public boolean hasPermission(java.util.Set roles,
                             java.lang.String permission)
Return true if one of the given roles has the global permission.


hasPermission

public boolean hasPermission(java.lang.String role,
                             java.lang.String[] path,
                             java.lang.String permission)
Return true if the given role has the local permission.


hasPermission

public 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.