test_class.declarator: geoStoreClient
test_class.original_string: AdministratorGeoStoreClient geoStoreClient;
test_class.type: AdministratorGeoStoreClient
test_class.var_name: geoStoreClient
test_class.declarator: geoStoreUserClient
test_class.original_string: GeoStoreClient geoStoreUserClient;
test_class.type: GeoStoreClient
test_class.var_name: geoStoreUserClient
test_class.declarator: LOGGER = Logger.getLogger(AdministratorGeostoreClientTest.class)
test_class.modifier: private final static
test_class.original_string: private final static Logger LOGGER = Logger.getLogger(AdministratorGeostoreClientTest.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: DEFAULTCATEGORYNAME = "TestCategory1"
test_class.modifier: final
test_class.original_string: final String DEFAULTCATEGORYNAME = "TestCategory1";
test_class.type: String
test_class.var_name: DEFAULTCATEGORYNAME
test_class.declarator: KEY_STRING = "stringAtt"
test_class.modifier: final
test_class.original_string: final String KEY_STRING = "stringAtt";
test_class.type: String
test_class.var_name: KEY_STRING
test_class.declarator: origString = "OrigStringValue"
test_class.modifier: final
test_class.original_string: final String origString = "OrigStringValue";
test_class.type: String
test_class.var_name: origString
test_class.file: src/modules/rest/client/src/test/java/it/geosolutions/geostore/services/rest/AdministratorGeostoreClientTest.java
test_class.identifier: AdministratorGeostoreClientTest
test_case.body: @Test
      public void getUsersTest() {
  
          // User user = geoStoreClient.getUser(1);
          try {
              UserList users = geoStoreClient.getUsers(1, 1);
  
              UserGroup ug1 = new UserGroup();
              ug1.setGroupName("testGroup1");
              ug1.setDescription("testGroup1-Description");
              UserGroup ug2 = new UserGroup();
              ug2.setGroupName("testGroup2");
              ug2.setDescription("testGroup2-Description");
              UserGroup ug3 = new UserGroup();
              ug3.setGroupName("testGroup3");
              ug3.setDescription("testGroup3-Description");
              geoStoreClient.insertUserGroup(ug1);
              geoStoreClient.insertUserGroup(ug2);
              geoStoreClient.insertUserGroup(ug3);
              Set<UserGroup> ugs = new HashSet<UserGroup>();
              ugs.add(ug1);
              ugs.add(ug2);
              ugs.add(ug3);
              User user = new User();
              user.setName("testuser111");
              user.setRole(Role.USER);
              user.setNewPassword("testpw");
              UserAttribute email = new UserAttribute();
              email.setName("email");
              email.setValue("test@geo-solutions.it");
              user.setGroups(ugs);
              geoStoreClient.insert(user);
              users = geoStoreClient.getUsers(0, 3);
              for(RESTUser u : users.getList()){
                  if("testuser111".equals(u.getName())){
                      assertEquals(3,u.getGroupsNames().size());     
                  }
              }
              
          } catch (Exception e) {
              fail();
          }
  
      }
test_case.class_method_signature: AdministratorGeostoreClientTest.getUsersTest()
test_case.full_signature: @Test public void getUsersTest()
test_case.identifier: getUsersTest
test_case.invocations: getUsers setGroupName setDescription setGroupName setDescription setGroupName setDescription insertUserGroup insertUserGroup insertUserGroup add add add setName setRole setNewPassword setName setValue setGroups insert getUsers getList equals getName assertEquals size getGroupsNames fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getUsersTest()
focal_class.file: src/modules/rest/client/src/main/java/it/geosolutions/geostore/services/rest/AdministratorGeoStoreClient.java
focal_class.identifier: AdministratorGeoStoreClient
focal_class.class_method_signature: AdministratorGeoStoreClient.getUser(long id)
focal_class.full_signature: public User getUser(long id)
focal_class.identifier: getUser
focal_class.modifiers: public
focal_class.parameters: (long id)
focal_class.return: User
focal_class.signature: User getUser(long id)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUser(String name)
focal_class.full_signature: public User getUser(String name)
focal_class.identifier: getUser
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: User
focal_class.signature: User getUser(String name)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUser(long id, Boolean includeAttributes)
focal_class.full_signature: public User getUser(long id, Boolean includeAttributes)
focal_class.identifier: getUser
focal_class.modifiers: public
focal_class.parameters: (long id, Boolean includeAttributes)
focal_class.return: User
focal_class.signature: User getUser(long id, Boolean includeAttributes)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUsers()
focal_class.full_signature: public UserList getUsers()
focal_class.identifier: getUsers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: UserList
focal_class.signature: UserList getUsers()
focal_class.class_method_signature: AdministratorGeoStoreClient.getUsers(Integer page, Integer entries)
focal_class.full_signature: public UserList getUsers(Integer page, Integer entries)
focal_class.identifier: getUsers
focal_class.modifiers: public
focal_class.parameters: (Integer page, Integer entries)
focal_class.return: UserList
focal_class.signature: UserList getUsers(Integer page, Integer entries)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUserDetails()
focal_class.full_signature: public User getUserDetails()
focal_class.identifier: getUserDetails
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: User
focal_class.signature: User getUserDetails()
focal_class.class_method_signature: AdministratorGeoStoreClient.insert(User user)
focal_class.full_signature: public Long insert(User user)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (User user)
focal_class.return: Long
focal_class.signature: Long insert(User user)
focal_class.class_method_signature: AdministratorGeoStoreClient.deleteUser(Long id)
focal_class.full_signature: public void deleteUser(Long id)
focal_class.identifier: deleteUser
focal_class.modifiers: public
focal_class.parameters: (Long id)
focal_class.return: void
focal_class.signature: void deleteUser(Long id)
focal_class.class_method_signature: AdministratorGeoStoreClient.update(Long id, User user)
focal_class.full_signature: public void update(Long id, User user)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (Long id, User user)
focal_class.return: void
focal_class.signature: void update(Long id, User user)
focal_class.class_method_signature: AdministratorGeoStoreClient.insertUserGroup(UserGroup usergroup)
focal_class.full_signature: public long insertUserGroup(UserGroup usergroup)
focal_class.identifier: insertUserGroup
focal_class.modifiers: public
focal_class.parameters: (UserGroup usergroup)
focal_class.return: long
focal_class.signature: long insertUserGroup(UserGroup usergroup)
focal_class.class_method_signature: AdministratorGeoStoreClient.deleteUserGroup(long usergroupId)
focal_class.full_signature: public void deleteUserGroup(long usergroupId)
focal_class.identifier: deleteUserGroup
focal_class.modifiers: public
focal_class.parameters: (long usergroupId)
focal_class.return: void
focal_class.signature: void deleteUserGroup(long usergroupId)
focal_class.class_method_signature: AdministratorGeoStoreClient.assignUserGroup(long userId, long usergroupId)
focal_class.full_signature: public void assignUserGroup(long userId, long usergroupId)
focal_class.identifier: assignUserGroup
focal_class.modifiers: public
focal_class.parameters: (long userId, long usergroupId)
focal_class.return: void
focal_class.signature: void assignUserGroup(long userId, long usergroupId)
focal_class.class_method_signature: AdministratorGeoStoreClient.deassignUserGroup(long userId, long usergroupId)
focal_class.full_signature: public void deassignUserGroup(long userId, long usergroupId)
focal_class.identifier: deassignUserGroup
focal_class.modifiers: public
focal_class.parameters: (long userId, long usergroupId)
focal_class.return: void
focal_class.signature: void deassignUserGroup(long userId, long usergroupId)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUserGroup(long usergroupId)
focal_class.full_signature: public RESTUserGroup getUserGroup(long usergroupId)
focal_class.identifier: getUserGroup
focal_class.modifiers: public
focal_class.parameters: (long usergroupId)
focal_class.return: RESTUserGroup
focal_class.signature: RESTUserGroup getUserGroup(long usergroupId)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUserGroups(Integer page, Integer entries, boolean all)
focal_class.full_signature: public UserGroupList getUserGroups(Integer page, Integer entries, boolean all)
focal_class.identifier: getUserGroups
focal_class.modifiers: public
focal_class.parameters: (Integer page, Integer entries, boolean all)
focal_class.return: UserGroupList
focal_class.signature: UserGroupList getUserGroups(Integer page, Integer entries, boolean all)
focal_class.class_method_signature: AdministratorGeoStoreClient.updateSecurityRules(ShortResourceList resourcesToSet, Long groupId,
              boolean canRead, boolean canWrite)
focal_class.full_signature: public ShortResourceList updateSecurityRules(ShortResourceList resourcesToSet, Long groupId,
              boolean canRead, boolean canWrite)
focal_class.identifier: updateSecurityRules
focal_class.modifiers: public
focal_class.parameters: (ShortResourceList resourcesToSet, Long groupId,
              boolean canRead, boolean canWrite)
focal_class.return: ShortResourceList
focal_class.signature: ShortResourceList updateSecurityRules(ShortResourceList resourcesToSet, Long groupId,
              boolean canRead, boolean canWrite)
focal_class.class_method_signature: AdministratorGeoStoreClient.getUserGroup(String name)
focal_class.full_signature: public RESTUserGroup getUserGroup(String name)
focal_class.identifier: getUserGroup
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: RESTUserGroup
focal_class.signature: RESTUserGroup getUserGroup(String name)
focal_class.superclass: extends GeoStoreClient
focal_method.body: public UserList getUsers() {
          return getBaseWebResource("users").header("Content-Type", MediaType.TEXT_XML).accept(MediaType.TEXT_XML).get(UserList.class);
      }
focal_method.class_method_signature: AdministratorGeoStoreClient.getUsers()
focal_method.full_signature: public UserList getUsers()
focal_method.identifier: getUsers
focal_method.invocations: get accept header getBaseWebResource
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: UserList
focal_method.signature: UserList getUsers()