Package org.opennms.web.rest.v1
Class GroupRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.GroupRestService
-
@Component("groupRestService") @Transactional public class GroupRestService extends OnmsRestService
Basic Web Service using REST for OnmsGroup entity- Since:
- 1.9.93
- Author:
- Benjamin Reed
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description GroupRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
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(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(String groupName, MultivaluedMapImpl params)
-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getGroups
public OnmsGroupList getGroups()
-
addGroup
public javax.ws.rs.core.Response addGroup(@Context javax.ws.rs.core.UriInfo uriInfo, OnmsGroup group)
-
updateGroup
public javax.ws.rs.core.Response updateGroup(String groupName, MultivaluedMapImpl params)
-
deleteGroup
public javax.ws.rs.core.Response deleteGroup(String groupName)
-
listUsersOfGroup
public OnmsUserList listUsersOfGroup(String groupName)
-
removeCategory
public javax.ws.rs.core.Response removeCategory(String groupName, String categoryName)
-
getCategoryForGroup
public OnmsCategory getCategoryForGroup(String groupName, String categoryName)
-
listCategories
public OnmsCategoryCollection listCategories(String groupName)
-
-