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 allGroupsOfAnUserTest(){
          int grpTestUserNum = 5, grpUUserNum = 3;
          String usrTestName = "test";
          String usrTestPasswd = "test";
  
          User testUser = new User();
          testUser.setName(usrTestName);
          testUser.setRole(Role.USER);
          testUser.setNewPassword(usrTestPasswd);
  
          Set<UserGroup> testUserGroups = createSomeGroups(grpTestUserNum, usrTestName);
          addSomeUserGroups(testUserGroups);
          testUser.setGroups(testUserGroups);
          geoStoreClient.insert(testUser);
  
  
          User u = new User();
          u.setName("u");
          u.setRole(Role.USER);
  
          Set<UserGroup> uGroups = createSomeGroups(grpUUserNum, "u");
          addSomeUserGroups(uGroups);
          u.setGroups(uGroups);
          geoStoreClient.insert(u);
  
          GeoStoreClient userClient = createUserClient(usrTestName, usrTestPasswd);
  
          ExtGroupList result = userClient.searchUserGroup(0, 10, "*");
  
          assertEquals(result.getCount(), grpTestUserNum);
      }
test_case.class_method_signature: AdministratorGeostoreClientTest.allGroupsOfAnUserTest()
test_case.full_signature: @Test public void allGroupsOfAnUserTest()
test_case.identifier: allGroupsOfAnUserTest
test_case.invocations: setName setRole setNewPassword createSomeGroups addSomeUserGroups setGroups insert setName setRole createSomeGroups addSomeUserGroups setGroups insert createUserClient searchUserGroup assertEquals getCount
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void allGroupsOfAnUserTest()
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 Long insert(User user) {
          // WebResource wr = getBaseWebResource();
          //
          // String sid = wr.path("resources")
          String sid = getBaseWebResource("users").header("Content-Type", MediaType.TEXT_XML)
                  .accept(MediaType.TEXT_PLAIN).post(String.class, user);
  
          return Long.parseLong(sid);
      }
focal_method.class_method_signature: AdministratorGeoStoreClient.insert(User user)
focal_method.full_signature: public Long insert(User user)
focal_method.identifier: insert
focal_method.invocations: post accept header getBaseWebResource parseLong
focal_method.modifiers: public
focal_method.parameters: (User user)
focal_method.return: Long
focal_method.signature: Long insert(User user)