Class UserRestService


  • @Component("userRestService")
    @Transactional
    public class UserRestService
    extends OnmsRestService
    Basic Web Service using REST for OnmsUser entity
    Since:
    1.9.93
    Author:
    Benjamin Reed
    • Constructor Detail

      • UserRestService

        public UserRestService()
    • 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)
      • deleteRole

        public javax.ws.rs.core.Response deleteRole​(@Context
                                                    javax.ws.rs.core.SecurityContext securityContext,
                                                    String userCriteria,
                                                    String roleName)