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

ModelAuthorizationRealm - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.security
Class ModelAuthorizationRealm

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

public class ModelAuthorizationRealm
extends java.lang.Object
implements AuthorizationRealm

A realm implementation on top of a scheme and a model.


Field Summary
 
Fields inherited from interface org.jboss.portal.core.security.AuthorizationRealm
ANONYMOUS_ROLE, ANONYMOUS_ROLE_SET
 
Constructor Summary
ModelAuthorizationRealm(Model model, SchemeStore store)
           
 
Method Summary
 Model getModel()
           
 Scheme getScheme(java.lang.String domain)
           
 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
 

Constructor Detail

ModelAuthorizationRealm

public ModelAuthorizationRealm(Model model,
                               SchemeStore store)
Method Detail

getScheme

public Scheme getScheme(java.lang.String domain)

getModel

public Model getModel()

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