@Component(value="groupRestService") @Path(value="groups") @Transactional public class GroupRestService extends OnmsRestService
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description |
|---|
GroupRestService() |
| Modifier and Type | Method and Description |
|---|---|
OnmsCategory |
addCategory(String groupName,
String categoryName) |
javax.ws.rs.core.Response |
addGroup(javax.ws.rs.core.UriInfo uriInfo,
OnmsGroup group) |
javax.ws.rs.core.Response |
addUser(javax.ws.rs.core.UriInfo uriInfo,
String groupName,
String userName) |
javax.ws.rs.core.Response |
deleteGroup(String groupName) |
OnmsCategory |
getCategoryForGroup(String groupName,
String categoryName) |
OnmsGroup |
getGroup(String groupName) |
OnmsGroupList |
getGroups() |
protected OnmsGroup |
getOnmsGroup(String groupName) |
OnmsUser |
getUser(String groupName,
String userName) |
OnmsCategoryCollection |
listCategories(String groupName) |
OnmsUserList |
listUsersOfGroup(String groupName) |
javax.ws.rs.core.Response |
removeCategory(String groupName,
String categoryName) |
javax.ws.rs.core.Response |
removeUser(String groupName,
String userName) |
javax.ws.rs.core.Response |
updateGroup(javax.ws.rs.core.UriInfo uriInfo,
String groupName,
MultivaluedMapImpl params) |
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock@GET
@Produces(value={"application/xml","application/json","application/atom+xml"})
public OnmsGroupList getGroups()
@GET
@Produces(value={"application/xml","application/json","application/atom+xml"})
@Path(value="{groupName}")
public OnmsGroup getGroup(@PathParam(value="groupName")
String groupName)
@POST
@Consumes(value="application/xml")
public javax.ws.rs.core.Response addGroup(@Context
javax.ws.rs.core.UriInfo uriInfo,
OnmsGroup group)
@PUT
@Consumes(value="application/x-www-form-urlencoded")
@Path(value="{groupName}")
public javax.ws.rs.core.Response updateGroup(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="groupName")
String groupName,
MultivaluedMapImpl params)
@DELETE
@Path(value="{groupName}")
public javax.ws.rs.core.Response deleteGroup(@PathParam(value="groupName")
String groupName)
@PUT
@Path(value="{groupName}/users/{userName}")
public javax.ws.rs.core.Response addUser(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="groupName")
String groupName,
@PathParam(value="userName")
String userName)
@DELETE
@Path(value="{groupName}/users/{userName}")
public javax.ws.rs.core.Response removeUser(@PathParam(value="groupName")
String groupName,
@PathParam(value="userName")
String userName)
@GET
@Path(value="{groupName}/users/")
public OnmsUserList listUsersOfGroup(@PathParam(value="groupName")
String groupName)
@GET
@Path(value="{groupName}/users/{userName}")
public OnmsUser getUser(@PathParam(value="groupName")
String groupName,
@PathParam(value="userName")
String userName)
@PUT
@Path(value="{groupName}/categories/{categoryName}")
public OnmsCategory addCategory(@PathParam(value="groupName")
String groupName,
@PathParam(value="categoryName")
String categoryName)
@DELETE
@Path(value="{groupName}/categories/{categoryName}")
public javax.ws.rs.core.Response removeCategory(@PathParam(value="groupName")
String groupName,
@PathParam(value="categoryName")
String categoryName)
@GET
@Path(value="{groupName}/categories/{categoryName}")
public OnmsCategory getCategoryForGroup(@PathParam(value="groupName")
String groupName,
@PathParam(value="categoryName")
String categoryName)
@GET
@Path(value="{groupName}/categories")
public OnmsCategoryCollection listCategories(@PathParam(value="groupName")
String groupName)
Copyright © 2015. All rights reserved.