public interface AuthResourceDao
| Modifier and Type | Method and Description |
|---|---|
boolean |
addGroups(String resourceType,
String resourceName,
String action,
List<String> groups)
Add batch of group mapping to the given auth resource
|
boolean |
delete(String resourceType,
String resource)
Delete resource from database on given given resource type and name and user groups.
|
boolean |
isExists(String resourceType,
String resource)
Check resource existence for given resource type and name.
|
void |
persist(AuthResource authResource)
Persist resource in the database
|
AuthResource |
read(String resourceType,
String resource)
Get resource for given resource type and name.
|
List<AuthResource> |
readAll(String resourceType,
String ownerId)
Get all resource for given resource type.
|
List<AuthResource> |
readAll(String resourceType,
String action,
String ownerId,
List<String> userGroups)
Get all resource for given resource type.
|
boolean |
removeGroup(String resourceType,
String resourceName,
String action,
String group)
Remove a group mapping from the given auth resource.
|
void |
update(AuthResource authResource)
Update resource owner in the database
|
boolean |
updateOwner(String resourceType,
String resourceName,
String newOwner)
Update owner of the given resource.
|
void persist(AuthResource authResource) throws AuthServerException
authResource - authResourceAuthServerException - when database operation failed.void update(AuthResource authResource) throws AuthServerException
authResource - authResourceAuthServerException - when database operation failed.boolean delete(String resourceType, String resource) throws AuthServerException
resourceType - resource Typeresource - resourceAuthServerException - when database operation failed.AuthResource read(String resourceType, String resource) throws AuthServerException
resourceType - resource Typeresource - resourceAuthServerException - when database operation failed.List<AuthResource> readAll(String resourceType, String ownerId) throws AuthServerException
resourceType - resource TypeownerId - owner
user idAuthServerException - when database operation failed.List<AuthResource> readAll(String resourceType, String action, String ownerId, List<String> userGroups) throws AuthServerException
resourceType - resource Typeaction - actionownerId - owner user iduserGroups - user groupsAuthServerException - when database operation failed.boolean isExists(String resourceType, String resource) throws AuthServerException
resourceType - resource Typeresource - resourceAuthServerException - when database operation failed.boolean updateOwner(String resourceType, String resourceName, String newOwner) throws AuthServerException
resourceType - resource typeresourceName - resource namenewOwner - user ID of the new ownerAuthServerException - when database operation failedboolean addGroups(String resourceType, String resourceName, String action, List<String> groups) throws AuthServerException
resourceType - resource typeresourceName - resource nameaction - actiongroups - list of group to addAuthServerException - when database operation failed.boolean removeGroup(String resourceType, String resourceName, String action, String group) throws AuthNotFoundException, AuthServerException
resourceType - resource typeresourceName - resource nameaction - actiongroup - group to addAuthNotFoundExceptionAuthServerExceptionCopyright © 2018 WSO2. All rights reserved.