public class PermissionFilter extends Object implements Filter
If one of the permission check throws an Exception, the accept(org.nuxeo.ecm.core.api.DocumentModel)
method returns false.
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
excluded |
protected Set<String> |
required |
Constructor and Description |
---|
PermissionFilter(List<String> required,
List<String> excluded) |
PermissionFilter(String permission,
boolean isRequired) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DocumentModel docModel)
Filters data models objects.
|
protected boolean |
hasPermission(CoreSession session,
DocumentModel doc,
Set<String> permissions,
boolean required) |
public PermissionFilter(List<String> required, List<String> excluded)
public PermissionFilter(String permission, boolean isRequired)
public boolean accept(DocumentModel docModel)
Filter
protected boolean hasPermission(CoreSession session, DocumentModel doc, Set<String> permissions, boolean required)
Copyright © 2015 Nuxeo SA. All rights reserved.