@Path(value="users")
public interface IUserResource
| Modifier and Type | Method and Description |
|---|---|
io.apiman.manager.api.beans.idm.UserBean |
get(String userId)
Use this endpoint to get information about a specific user by the User ID.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.audit.AuditEntryBean> |
getActivity(String userId,
int page,
int pageSize)
Use this endpoint to get information about the user's audit history.
|
List<io.apiman.manager.api.beans.summary.ApplicationSummaryBean> |
getApplications(String userId)
This endpoint returns all applications that the user has permission to edit.
|
List<io.apiman.manager.api.beans.summary.OrganizationSummaryBean> |
getOrganizations(String userId)
This endpoint returns the list of organizations that the user is a member of.
|
List<io.apiman.manager.api.beans.summary.ServiceSummaryBean> |
getServices(String userId)
This endpoint returns all services that the user has permission to edit.
|
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.idm.UserBean> |
search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
Use this endpoint to search for users.
|
void |
update(String userId,
io.apiman.manager.api.beans.idm.UpdateUserBean user)
Use this endpoint to update the information about a user.
|
@GET
@Path(value="{userId}")
@Produces(value="application/json")
io.apiman.manager.api.beans.idm.UserBean get(@PathParam(value="userId")
String userId)
throws UserNotFoundException
userId - The user ID.UserNotFoundException - when specified user not found@PUT
@Path(value="{userId}")
@Consumes(value="application/json")
void update(@PathParam(value="userId")
String userId,
io.apiman.manager.api.beans.idm.UpdateUserBean user)
throws UserNotFoundException,
NotAuthorizedException
userId - The user ID.user - Updated user information.UserNotFoundException - when specified user not foundNotAuthorizedException - 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.UserBean> search(io.apiman.manager.api.beans.search.SearchCriteriaBean criteria)
throws InvalidSearchCriteriaException
criteria - The search criteria.InvalidSearchCriteriaException - when provided criteria are invalid@GET
@Path(value="{userId}/organizations")
@Produces(value="application/json")
List<io.apiman.manager.api.beans.summary.OrganizationSummaryBean> getOrganizations(@PathParam(value="userId")
String userId)
userId - The user ID.@GET
@Path(value="{userId}/applications")
@Produces(value="application/json")
List<io.apiman.manager.api.beans.summary.ApplicationSummaryBean> getApplications(@PathParam(value="userId")
String userId)
userId - The user ID.@GET
@Path(value="{userId}/services")
@Produces(value="application/json")
List<io.apiman.manager.api.beans.summary.ServiceSummaryBean> getServices(@PathParam(value="userId")
String userId)
userId - The user ID.@GET
@Path(value="{userId}/activity")
@Produces(value="application/json")
io.apiman.manager.api.beans.search.SearchResultsBean<io.apiman.manager.api.beans.audit.AuditEntryBean> getActivity(@PathParam(value="userId")
String userId,
@QueryParam(value="page")
int page,
@QueryParam(value="count")
int pageSize)
userId - The user ID.page - The page of the results to return.pageSize - The number of results per page to return.Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.