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(java.lang.String groupName, java.lang.String categoryName)
javax.ws.rs.core.Response
addGroup(javax.ws.rs.core.UriInfo uriInfo, OnmsGroup group)
javax.ws.rs.core.Response
addUser(java.lang.String groupName, java.lang.String userName)
javax.ws.rs.core.Response
deleteGroup(java.lang.String groupName)
OnmsCategory
getCategoryForGroup(java.lang.String groupName, java.lang.String categoryName)
OnmsGroup
getGroup(java.lang.String groupName)
OnmsGroupList
getGroups()
protected OnmsGroup
getOnmsGroup(java.lang.String groupName)
OnmsUser
getUser(java.lang.String groupName, java.lang.String userName)
OnmsCategoryCollection
listCategories(java.lang.String groupName)
OnmsUserList
listUsersOfGroup(java.lang.String groupName)
javax.ws.rs.core.Response
removeCategory(java.lang.String groupName, java.lang.String categoryName)
javax.ws.rs.core.Response
removeUser(java.lang.String groupName, java.lang.String userName)
javax.ws.rs.core.Response
updateGroup(java.lang.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()
-
getGroup
public OnmsGroup getGroup(java.lang.String groupName)
-
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(java.lang.String groupName, MultivaluedMapImpl params)
-
deleteGroup
public javax.ws.rs.core.Response deleteGroup(java.lang.String groupName)
-
addUser
public javax.ws.rs.core.Response addUser(java.lang.String groupName, java.lang.String userName)
-
removeUser
public javax.ws.rs.core.Response removeUser(java.lang.String groupName, java.lang.String userName)
-
listUsersOfGroup
public OnmsUserList listUsersOfGroup(java.lang.String groupName)
-
getUser
public OnmsUser getUser(java.lang.String groupName, java.lang.String userName)
-
addCategory
public javax.ws.rs.core.Response addCategory(java.lang.String groupName, java.lang.String categoryName)
-
removeCategory
public javax.ws.rs.core.Response removeCategory(java.lang.String groupName, java.lang.String categoryName)
-
getCategoryForGroup
public OnmsCategory getCategoryForGroup(java.lang.String groupName, java.lang.String categoryName)
-
listCategories
public OnmsCategoryCollection listCategories(java.lang.String groupName)
-
getOnmsGroup
protected OnmsGroup getOnmsGroup(java.lang.String groupName)
-
-