@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)
Get list of roles
|
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) throws Exception
filter
- filter parameterssorting
- sorting parameterspaging
- paging 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 © 2019 Gentics Software. All rights reserved.