Package org.opennms.web.rest.v1
Class UserRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.UserRestService
-
@Component("userRestService") @Transactional public class UserRestService extends OnmsRestService
Basic Web Service using REST for OnmsUser 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 UserRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addRole(javax.ws.rs.core.SecurityContext securityContext, String userCriteria, String roleName)
javax.ws.rs.core.Response
addUser(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsUser user, boolean hashPassword)
javax.ws.rs.core.Response
deleteRole(javax.ws.rs.core.SecurityContext securityContext, String userCriteria, String roleName)
javax.ws.rs.core.Response
deleteUser(javax.ws.rs.core.SecurityContext securityContext, String userCriteria)
OnmsUser
getUser(javax.ws.rs.core.SecurityContext securityContext, String username)
OnmsUserList
getUsers(javax.ws.rs.core.SecurityContext securityContext)
javax.ws.rs.core.Response
updateUser(javax.ws.rs.core.SecurityContext securityContext, String userCriteria, MultivaluedMapImpl params)
OnmsUser
whoami(javax.ws.rs.core.SecurityContext securityContext)
-
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
-
getUsers
public OnmsUserList getUsers(@Context javax.ws.rs.core.SecurityContext securityContext)
-
whoami
public OnmsUser whoami(@Context javax.ws.rs.core.SecurityContext securityContext)
-
getUser
public OnmsUser getUser(@Context javax.ws.rs.core.SecurityContext securityContext, String username)
-
addUser
public javax.ws.rs.core.Response addUser(@Context javax.ws.rs.core.SecurityContext securityContext, @Context javax.ws.rs.core.UriInfo uriInfo, OnmsUser user, boolean hashPassword)
-
updateUser
public javax.ws.rs.core.Response updateUser(@Context javax.ws.rs.core.SecurityContext securityContext, String userCriteria, MultivaluedMapImpl params)
-
addRole
public javax.ws.rs.core.Response addRole(@Context javax.ws.rs.core.SecurityContext securityContext, String userCriteria, String roleName)
-
deleteUser
public javax.ws.rs.core.Response deleteUser(@Context javax.ws.rs.core.SecurityContext securityContext, String userCriteria)
-
-