|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RoleManager
API for managing user roles in Stardog.
| Method Summary | |
|---|---|
void |
addRole(String theRole)
Adds a new role to the system. |
void |
deleteRole(String theRole)
Deprecated. use deleteRole(String, boolean). Scheduled for removal in 1.2. |
void |
deleteRole(String theRole,
boolean isForce)
Removes a role from the system. |
Collection<String> |
getAllRoles()
Gets the names of all roles in the system |
Collection<String> |
getUsersWithRole(String theRole)
Gets the list of all users with the given role. |
| Method Detail |
|---|
void addRole(String theRole)
throws com.clarkparsia.stardog.security.StardogSecurityException,
com.clarkparsia.stardog.security.StardogAuthorizationException,
com.clarkparsia.stardog.security.ResourceExistsException
theRole - the name of the new role
StardogAuthorizationException - if the current user does not have a permission to add the new role
ResourceExistsException - if there is already a role with such a name
StardogSecurityException - if the operation cannot be completed for any other reason
@Deprecated
void deleteRole(String theRole)
throws com.clarkparsia.stardog.security.StardogSecurityException,
com.clarkparsia.stardog.security.ResourceNotFoundException,
com.clarkparsia.stardog.security.ResourceInUseException,
com.clarkparsia.stardog.security.StardogAuthorizationException
deleteRole(String, boolean). Scheduled for removal in 1.2.
theRole - the name of the role to be removed
ResourceNotFoundException - there is no such role in the system
ResourceInUseException - the role is assigned to one or more users
StardogAuthorizationException - the current user does not have a permission to remove the role
StardogSecurityException - if the operation cannot be completed for any other reason
void deleteRole(String theRole,
boolean isForce)
throws com.clarkparsia.stardog.security.StardogSecurityException,
com.clarkparsia.stardog.security.ResourceNotFoundException,
com.clarkparsia.stardog.security.ResourceInUseException,
com.clarkparsia.stardog.security.StardogAuthorizationException
theRole - the name of the role to be removedisForce - whether to remove the role from the users using it
ResourceNotFoundException - there is no such role in the system
ResourceInUseException - the role is assigned to one or more users
StardogAuthorizationException - the current user does not have a permission to remove the role
StardogSecurityException - if the operation cannot be completed for any other reason
Collection<String> getAllRoles()
throws com.clarkparsia.stardog.security.StardogSecurityException,
com.clarkparsia.stardog.security.StardogAuthorizationException
StardogAuthorizationException - if the current user does not have permission to list all the roles
StardogSecurityException - if the operation cannot be completed for any other reason
Collection<String> getUsersWithRole(String theRole)
throws com.clarkparsia.stardog.security.StardogSecurityException,
com.clarkparsia.stardog.security.StardogAuthorizationException,
com.clarkparsia.stardog.security.ResourceNotFoundException
theRole - the name of the role
StardogAuthorizationException - if the current user does not have necessary permissions for this operation
ResourceNotFoundException - if there is no such role in the system
StardogSecurityException - if the operation cannot be completed for any other reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||