|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityPolicyService
Service checking permissions for pluggable policies.
Method Summary | |
---|---|
boolean |
arePoliciesExpressibleInQuery(String repositoryName)
Checks if the policies can be expressed in a query for a given repository. |
boolean |
arePoliciesRestrictingPermission(String permission)
Checks if any policy restricts the given permission. |
Access |
checkPermission(Document doc,
ACP mergedAcp,
Principal principal,
String permission,
String[] resolvedPermissions,
String[] principalsToCheck)
Checks given permission for doc and principal. |
Collection<SQLQuery.Transformer> |
getPoliciesQueryTransformers(String repositoryName)
Get the transformers to apply the policies to a query for given repository. |
void |
registerDescriptor(SecurityPolicyDescriptor descriptor)
|
void |
unregisterDescriptor(SecurityPolicyDescriptor descriptor)
|
Method Detail |
---|
Access checkPermission(Document doc, ACP mergedAcp, Principal principal, String permission, String[] resolvedPermissions, String[] principalsToCheck)
The security service checks this service for a security access. This access is defined iterating over pluggable policies in a defined order. If access is not specified, security service applies its default policy.
doc
- the document to checkmergedAcp
- merged acp resolved for this documentprincipal
- principal to checkpermission
- permission to checkresolvedPermissions
- permissions or groups of permissions
containing permissionprincipalsToCheck
- principals (groups) to check for principal
void registerDescriptor(SecurityPolicyDescriptor descriptor)
void unregisterDescriptor(SecurityPolicyDescriptor descriptor)
boolean arePoliciesRestrictingPermission(String permission)
If not, then no post-filtering on policies will be needed for query results.
true
if a policy restricts the permissionboolean arePoliciesExpressibleInQuery(String repositoryName)
If not, then any query made will have to be post-filtered.
repositoryName
- the target repository name.
true
if all policies can be expressed in a queryCollection<SQLQuery.Transformer> getPoliciesQueryTransformers(String repositoryName)
repositoryName
- the target repository name.
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |