public class NoFile2SecurityPolicy extends NoFileSecurityPolicy
Modifier and Type | Class and Description |
---|---|
static class |
NoFile2SecurityPolicy.NoFileTransformer
Transformer that adds
AND ecm:primaryType <> 'File' to the query. |
SecurityPolicy.IdentityQueryTransformer, SecurityPolicy.QueryTransformer
Modifier and Type | Field and Description |
---|---|
static SQLQuery.Transformer |
NO_FILE_TRANSFORMER |
Constructor and Description |
---|
NoFile2SecurityPolicy() |
Modifier and Type | Method and Description |
---|---|
SQLQuery.Transformer |
getQueryTransformer(String repositoryName)
Get the transformer to use to apply this policy to a query.
|
boolean |
isExpressibleInQuery(String repositoryName)
Checks if this policy can be expressed in a query for given repository.
|
checkPermission, isRestrictingPermission
getQueryTransformer, isExpressibleInQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryTransformer, isExpressibleInQuery
public static final SQLQuery.Transformer NO_FILE_TRANSFORMER
public NoFile2SecurityPolicy()
public boolean isExpressibleInQuery(String repositoryName)
SecurityPolicy
If not, then any query made will have to be post-filtered.
isExpressibleInQuery
in interface SecurityPolicy
isExpressibleInQuery
in class NoFileSecurityPolicy
repositoryName
- the target repository name.true
if the policy can be expressed in a querypublic SQLQuery.Transformer getQueryTransformer(String repositoryName)
SecurityPolicy
Called only when #isExpressibleInQuery()
returned true
getQueryTransformer
in interface SecurityPolicy
getQueryTransformer
in class NoFileSecurityPolicy
repositoryName
- the target repository name.Copyright © 2018 Nuxeo. All rights reserved.