public interface PermissionManager
| Modifier and Type | Method and Description |
|---|---|
void |
addRolePerm(com.complexible.stardog.security.Permission thePermission)
Grants a permission to a role.
|
void |
addUserPerm(com.complexible.stardog.security.Permission thePermission)
Grants a permission to a user.
|
void |
deleteRolePerm(com.complexible.stardog.security.Permission thePermission)
Revokes a permission from a role.
|
void |
deleteUserPerm(com.complexible.stardog.security.Permission thePermission)
Revokes a permission from a user.
|
Collection<com.complexible.stardog.security.Permission> |
getEffectiveUserPerms(String theUsername)
Return the effective permissions, explicit and inferred, for the specified user
|
Collection<com.complexible.stardog.security.Permission> |
getRolePerms(String theRole)
Return the permissions associated with the specified role
|
Collection<com.complexible.stardog.security.Permission> |
getUserPerms(String theUsername)
Gets the current user permissions (explicit only)
|
void addRolePerm(com.complexible.stardog.security.Permission thePermission)
throws com.complexible.stardog.security.StardogSecurityException,
com.complexible.stardog.security.ResourceNotFoundException,
com.complexible.stardog.security.ResourceExistsException,
StardogAuthorizationException
thePermission - the permission to grantResourceNotFoundException - if the resource referenced in the operation does not existResourceExistsException - if there is already such a permission for this roleStardogAuthorizationException - if the current user is not authorized to grant the permissionStardogSecurityException - if the operation should fail for any other reasonvoid deleteRolePerm(com.complexible.stardog.security.Permission thePermission)
throws com.complexible.stardog.security.StardogSecurityException,
com.complexible.stardog.security.ResourceNotFoundException,
StardogAuthorizationException
thePermission - the permission to revokeResourceNotFoundException - if the resource referenced in the operation does not exist or the role does not have the permissionStardogAuthorizationException - if the current user is not authorized to revoke the permissionStardogSecurityException - if the operation should fail for any other reasonvoid addUserPerm(com.complexible.stardog.security.Permission thePermission)
throws com.complexible.stardog.security.StardogSecurityException,
com.complexible.stardog.security.ResourceNotFoundException,
com.complexible.stardog.security.ResourceExistsException,
StardogAuthorizationException
thePermission - the permission to grantResourceNotFoundException - if the resource referenced in the operation does not existResourceExistsException - if there is already such a permission for this userStardogAuthorizationException - if the current user is not authorized to grant the permissionStardogSecurityException - if the operation should fail for any other reasonvoid deleteUserPerm(com.complexible.stardog.security.Permission thePermission)
throws com.complexible.stardog.security.StardogSecurityException,
com.complexible.stardog.security.ResourceNotFoundException,
StardogAuthorizationException
thePermission - the permission to revokeResourceNotFoundException - if the resource referenced in the operation does not exist (or the user does not have the permission to be revoked)StardogAuthorizationException - if the current user is not authorized to revoke the permissionStardogSecurityException - if the operation should fail for any other reasonCollection<com.complexible.stardog.security.Permission> getUserPerms(String theUsername) throws com.complexible.stardog.security.StardogSecurityException, com.complexible.stardog.security.ResourceNotFoundException, StardogAuthorizationException
theUsername - the user name whose permissions should be retrievedResourceNotFoundException - if there is no user with the specified nameStardogAuthorizationException - if the current user does not have a permission to retrieve the permission information for the specified userStardogSecurityException - if the operation should fail for any other reasonCollection<com.complexible.stardog.security.Permission> getEffectiveUserPerms(String theUsername) throws com.complexible.stardog.security.StardogSecurityException, com.complexible.stardog.security.ResourceNotFoundException, StardogAuthorizationException
theUsername - the userStardogSecurityException - if the operation should fail for any other reasonResourceNotFoundException - if the user is not foundStardogAuthorizationException - if the current user cannot perform this operationCollection<com.complexible.stardog.security.Permission> getRolePerms(String theRole) throws com.complexible.stardog.security.StardogSecurityException, com.complexible.stardog.security.ResourceNotFoundException, StardogAuthorizationException
theRole - the name of the roleStardogSecurityException - if the operation should fail for any other reasonResourceNotFoundException - if the role is not foundStardogAuthorizationException - if the current user cannot perform the operationCopyright © 2010-2016 Stardog Union. All Rights Reserved.