|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.core.security.ModelAuthorizationRealm
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 |
public ModelAuthorizationRealm(Model model, SchemeStore store)
Method Detail |
public Scheme getScheme(java.lang.String domain)
public Model getModel()
public boolean hasPermission(java.lang.String domain, java.lang.String role, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.lang.String domain, java.util.Set roles, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.lang.String domain, java.lang.String role, java.lang.String[] path, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.lang.String domain, java.util.Set roles, java.lang.String[] path, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.lang.String role, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.util.Set roles, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.lang.String role, java.lang.String[] path, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
public boolean hasPermission(java.util.Set roles, java.lang.String[] path, java.lang.String permission)
AuthorizationRealm
hasPermission
in interface AuthorizationRealm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |