@Path(value="/role")
public interface RoleResource
Modifier and Type | Method and Description |
---|---|
RoleResponse |
create(RoleModel role)
Create new role
|
javax.ws.rs.core.Response |
delete(String id)
Delete a role
|
RoleResponse |
get(String id)
Get existing role
|
RolePermResponse |
getPerm(String id)
Get role permissions
|
RoleListResponse |
list(FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
Get list of roles.
The result can be filtered by id
name
description
and sorted by
id
name
description
|
RoleResponse |
update(String id,
RoleModel role)
Update a role
|
RolePermResponse |
updatePerm(String id,
RolePermissionsModel updatedPerms)
Update role permissions
|
@GET RoleListResponse list(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging, @BeanParam PermsParameterBean perms) throws Exception
id
name
description
id
name
description
filter
- filter parameterssorting
- sorting parameterspaging
- paging parametersperms
- permissions parametersException
@PUT RoleResponse create(RoleModel role) throws Exception
role
- roleException
@GET @Path(value="/{id}") RoleResponse get(@PathParam(value="id") String id) throws Exception
id
- role IDException
@POST @Path(value="/{id}") RoleResponse update(@PathParam(value="id") String id, RoleModel role) throws Exception
id
- role IDrole
- updated role dataException
@DELETE @Path(value="/{id}") javax.ws.rs.core.Response delete(@PathParam(value="id") String id) throws Exception
id
- role IDException
@GET @Path(value="/{id}/perm") RolePermResponse getPerm(@PathParam(value="id") String id) throws Exception
id
- role IDException
@POST @Path(value="/{id}/perm") RolePermResponse updatePerm(@PathParam(value="id") String id, RolePermissionsModel updatedPerms) throws Exception
id
- role IDupdatedPerms
- permissionsException
Copyright © 2024 Gentics Software. All rights reserved.