|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
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()
Deprecated. |
SQLQuery.Transformer |
getQueryTransformer(String repositoryName)
Get the transformer to use to apply this policy to a query. |
boolean |
isExpressibleInQuery()
Deprecated. |
boolean |
isExpressibleInQuery(String repositoryName)
Checks if this policy can be expressed in a query for given repository. |
boolean |
isRestrictingPermission(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(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 SQLQuery.Transformer getQueryTransformer(String repositoryName)
SecurityPolicy
Called only when #isExpressibleInQuery()
returned true
getQueryTransformer
in interface SecurityPolicy
repositoryName
- the target repository name.
@Deprecated public SQLQuery.Transformer getQueryTransformer()
getQueryTransformer(String)
instead
public boolean isExpressibleInQuery(String repositoryName)
SecurityPolicy
If not, then any query made will have to be post-filtered.
isExpressibleInQuery
in interface SecurityPolicy
repositoryName
- the target repository name.
true
if the policy can be expressed in a query@Deprecated public boolean isExpressibleInQuery()
isExpressibleInQuery(String)
instead
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |