|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.security.AbstractSecurityPolicy
public abstract class AbstractSecurityPolicy
Abstract security policy
Constructor Summary | |
---|---|
AbstractSecurityPolicy()
|
Method Summary | |
---|---|
SQLQuery.Transformer |
getQueryTransformer()
Get the transformer to use to apply this policy to a query. |
boolean |
isExpressibleInQuery()
Checks if this policy can be expressed in a query. |
boolean |
isRestrictingPermission(java.lang.String permission)
Checks if this policy is restricting the given permission. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.core.security.SecurityPolicy |
---|
checkPermission |
Constructor Detail |
---|
public AbstractSecurityPolicy()
Method Detail |
---|
public boolean isRestrictingPermission(java.lang.String permission)
SecurityPolicy
Queries check the BROWSE permission.
isRestrictingPermission
in interface SecurityPolicy
permission
- the permission to check for
true
if the policy restricts the permissionpublic boolean isExpressibleInQuery()
SecurityPolicy
If not, then any query made will have to be post-filtered.
isExpressibleInQuery
in interface SecurityPolicy
true
if the policy can be expressed in a querypublic SQLQuery.Transformer getQueryTransformer()
SecurityPolicy
Called only when SecurityPolicy.isExpressibleInQuery()
returned true
getQueryTransformer
in interface SecurityPolicy
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |