public interface AuthorizationPlugin
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorized(EntityId entity,
String user,
Set<Action> actions)
Checks if a user is allowed to perform a set of actions on an entity.
|
void |
grant(EntityId entity,
String user)
Grants a user permission to perform all actions on an entity.
|
void |
grant(EntityId entity,
String user,
Set<Action> actions)
Grants a user permission to perform a set of actions on an entity.
|
void |
revoke(EntityId entity)
Revokes all user's permissions on an entity.
|
void |
revoke(EntityId entity,
String user)
Revokes a user's permission on an entity.
|
void |
revoke(EntityId entity,
String user,
Set<Action> actions)
Revokes a user's permission to perform a set of actions on an entity.
|
boolean authorized(EntityId entity, String user, Set<Action> actions)
entity - the entityuser - the useractions - the actionsvoid grant(EntityId entity, String user, Set<Action> actions)
entity - the entityuser - the useractions - the actionsvoid grant(EntityId entity, String user)
entity - the entityuser - the uservoid revoke(EntityId entity, String user, Set<Action> actions)
entity - the entityuser - the useractions - the actionsvoid revoke(EntityId entity, String user)
entity - the entityuser - the uservoid revoke(EntityId entity)
entity - the entityCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.