public class PolicyResource extends Object
Constructor and Description |
---|
PolicyResource(String resourceId,
Http http,
ServerConfiguration serverConfiguration,
TokenCallable pat) |
Modifier and Type | Method and Description |
---|---|
UmaPermissionRepresentation |
create(UmaPermissionRepresentation permission)
Creates a new user-managed permission as represented by the given
permission . |
void |
delete(String id)
Deletes an existing user-managed permission
|
List<UmaPermissionRepresentation> |
find(String name,
String scope,
Integer firstResult,
Integer maxResult)
Queries the server for permission matching the given parameters.
|
UmaPermissionRepresentation |
findById(String id)
Queries the server for a permission with the given
id . |
void |
update(UmaPermissionRepresentation permission)
Updates an existing user-managed permission
|
public PolicyResource(String resourceId, Http http, ServerConfiguration serverConfiguration, TokenCallable pat)
public UmaPermissionRepresentation create(UmaPermissionRepresentation permission)
permission
.permission
- the permission to createpublic void update(UmaPermissionRepresentation permission)
permission
- the permission to updatepublic void delete(String id)
id
- the permission idpublic List<UmaPermissionRepresentation> find(String name, String scope, Integer firstResult, Integer maxResult)
id
- the permission idname
- the name of the permissionscope
- the scope associated with the permissionfirstResult
- the position of the first resource to retrievemaxResult
- the maximum number of resources to retrievepublic UmaPermissionRepresentation findById(String id)
id
.id
- the permission idCopyright © 2019 JBoss by Red Hat. All rights reserved.