@Path(value="roles")
public interface IRoleResource
| Modifier and Type | Method and Description |
|---|---|
io.apiman.manager.api.beans.idm.RoleBean |
create(io.apiman.manager.api.beans.idm.NewRoleBean bean)
Use this endpoint to create a new apiman role.
|
void |
delete(String roleId)
Use this endpoint to delete a role by its ID.
|
io.apiman.manager.api.beans.idm.RoleBean |
get(String roleId)
Use this endpoint to retrieve information about a single Role by its
ID.
|
List<io.apiman.manager.api.beans.idm.RoleBean> |
list()
This endpoint lists all of the roles currently defined in apiman.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> |
search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
This endpoint provides a way to search for roles.
|
void |
update(String roleId,
io.apiman.manager.api.beans.idm.UpdateRoleBean bean)
Use this endpoint to update the information about an existing role.
|
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.idm.RoleBean create(io.apiman.manager.api.beans.idm.NewRoleBean bean)
throws RoleAlreadyExistsException,
NotAuthorizedException
bean - The new role.RoleAlreadyExistsException - when role already existsNotAuthorizedException - when not authorized to invoke this method@GET @Produces(value="application/json") List<io.apiman.manager.api.beans.idm.RoleBean> list() throws NotAuthorizedException
NotAuthorizedException - when not authorized to invoke this method@GET
@Path(value="{roleId}")
@Produces(value="application/json")
io.apiman.manager.api.beans.idm.RoleBean get(@PathParam(value="roleId")
String roleId)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.RoleNotFoundException - when a request is sent for a role that does not existNotAuthorizedException - when not authorized to invoke this method@PUT
@Path(value="{roleId}")
@Consumes(value="application/json")
void update(@PathParam(value="roleId")
String roleId,
io.apiman.manager.api.beans.idm.UpdateRoleBean bean)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.bean - Updated role information.RoleNotFoundException - when a request is sent for a role that does not existNotAuthorizedException - when not authorized to invoke this method@DELETE
@Path(value="{roleId}")
void delete(@PathParam(value="roleId")
String roleId)
throws RoleNotFoundException,
NotAuthorizedException
roleId - The role ID.RoleNotFoundException - when a request is sent for a role that does not existNotAuthorizedException - when not authorized to invoke this method@POST
@Path(value="search")
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.RoleBean> search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
throws InvalidSearchCriteriaException,
NotAuthorizedException
criteria - The search criteria.InvalidSearchCriteriaException - when provided criteria are invalidNotAuthorizedException - when not authorized to invoke this methodCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.