public abstract class ACLProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.vertexium.Graph |
graph |
protected OntologyRepository |
ontologyRepository |
protected UserRepository |
userRepository |
| Modifier | Constructor and Description |
|---|---|
protected |
ACLProvider(org.vertexium.Graph graph,
UserRepository userRepository,
OntologyRepository ontologyRepository) |
| Modifier and Type | Method and Description |
|---|---|
ClientApiObject |
appendACL(ClientApiObject clientApiObject,
User user) |
abstract boolean |
canAddProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
abstract boolean |
canDeleteElement(org.vertexium.Element element,
User user) |
abstract boolean |
canDeleteProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
abstract boolean |
canUpdateElement(org.vertexium.Element element,
User user) |
abstract boolean |
canUpdateProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
void |
checkCanAddOrUpdateProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
void |
checkCanDeleteProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
ClientApiElementAcl |
elementACL(org.vertexium.Element element,
User user,
OntologyRepository ontologyRepository) |
Set<String> |
getAllPrivileges() |
protected boolean |
hasPrivilege(User user,
String privilege) |
protected boolean |
isAuthor(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user) |
protected boolean |
isComment(String propertyName) |
protected final org.vertexium.Graph graph
protected final UserRepository userRepository
protected final OntologyRepository ontologyRepository
@Inject
protected ACLProvider(org.vertexium.Graph graph,
UserRepository userRepository,
OntologyRepository ontologyRepository)
public abstract boolean canDeleteElement(org.vertexium.Element element,
User user)
public abstract boolean canDeleteProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
public abstract boolean canUpdateElement(org.vertexium.Element element,
User user)
public abstract boolean canUpdateProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
public abstract boolean canAddProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
public final void checkCanAddOrUpdateProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
throws VisalloAccessDeniedException
VisalloAccessDeniedExceptionpublic final void checkCanDeleteProperty(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
throws VisalloAccessDeniedException
VisalloAccessDeniedExceptionpublic final ClientApiElementAcl elementACL(org.vertexium.Element element, User user, OntologyRepository ontologyRepository)
public final ClientApiObject appendACL(ClientApiObject clientApiObject, User user)
protected final boolean isComment(String propertyName)
protected final boolean isAuthor(org.vertexium.Element element,
String propertyKey,
String propertyName,
User user)
Copyright © 2013–2016 V5 Analytics. All rights reserved.