Class GroupRestService


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

      • GroupRestService

        public GroupRestService()
    • Method Detail

      • 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)
      • getOnmsGroup

        protected OnmsGroup getOnmsGroup​(java.lang.String groupName)