test_class.file: src/core/services-impl/src/test/java/it/geosolutions/geostore/services/UserServiceImplTest.java
test_class.identifier: UserServiceImplTest
test_class.superclass: extends ServiceTestBase
test_case.body: @Test
      public void testGetByGroupName() throws Exception {
          long groupId = createGroup("testgroup");
          createUser("test", Role.USER, "tesPW", groupId);
          UserGroup group = new UserGroup();
          group.setGroupName("testgroup");
          Collection<User> users = userService.getByGroup(group);
          assertEquals(1, users.size());
      }
test_case.class_method_signature: UserServiceImplTest.testGetByGroupName()
test_case.full_signature: @Test public void testGetByGroupName()
test_case.identifier: testGetByGroupName
test_case.invocations: createGroup createUser setGroupName getByGroup assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetByGroupName()
focal_class.declarator: LOGGER = Logger.getLogger(UserServiceImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(UserServiceImpl.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: userDAO
focal_class.modifier: private
focal_class.original_string: private UserDAO userDAO;
focal_class.type: UserDAO
focal_class.var_name: userDAO
focal_class.declarator: userAttributeDAO
focal_class.modifier: private
focal_class.original_string: private UserAttributeDAO userAttributeDAO;
focal_class.type: UserAttributeDAO
focal_class.var_name: userAttributeDAO
focal_class.declarator: userGroupDAO
focal_class.modifier: private
focal_class.original_string: private UserGroupDAO userGroupDAO;
focal_class.type: UserGroupDAO
focal_class.var_name: userGroupDAO
focal_class.file: src/core/services-impl/src/main/java/it/geosolutions/geostore/services/UserServiceImpl.java
focal_class.identifier: UserServiceImpl
focal_class.interfaces: implements UserService
focal_class.class_method_signature: UserServiceImpl.setUserGroupDAO(UserGroupDAO userGroupDAO)
focal_class.full_signature: public void setUserGroupDAO(UserGroupDAO userGroupDAO)
focal_class.identifier: setUserGroupDAO
focal_class.modifiers: public
focal_class.parameters: (UserGroupDAO userGroupDAO)
focal_class.return: void
focal_class.signature: void setUserGroupDAO(UserGroupDAO userGroupDAO)
focal_class.class_method_signature: UserServiceImpl.setUserAttributeDAO(UserAttributeDAO userAttributeDAO)
focal_class.full_signature: public void setUserAttributeDAO(UserAttributeDAO userAttributeDAO)
focal_class.identifier: setUserAttributeDAO
focal_class.modifiers: public
focal_class.parameters: (UserAttributeDAO userAttributeDAO)
focal_class.return: void
focal_class.signature: void setUserAttributeDAO(UserAttributeDAO userAttributeDAO)
focal_class.class_method_signature: UserServiceImpl.setUserDAO(UserDAO userDAO)
focal_class.full_signature: public void setUserDAO(UserDAO userDAO)
focal_class.identifier: setUserDAO
focal_class.modifiers: public
focal_class.parameters: (UserDAO userDAO)
focal_class.return: void
focal_class.signature: void setUserDAO(UserDAO userDAO)
focal_class.class_method_signature: UserServiceImpl.insert(User user)
focal_class.full_signature: @Override public long insert(User user)
focal_class.identifier: insert
focal_class.modifiers: @Override public
focal_class.parameters: (User user)
focal_class.return: long
focal_class.signature: long insert(User user)
focal_class.class_method_signature: UserServiceImpl.update(User user)
focal_class.full_signature: @Override public long update(User user)
focal_class.identifier: update
focal_class.modifiers: @Override public
focal_class.parameters: (User user)
focal_class.return: long
focal_class.signature: long update(User user)
focal_class.class_method_signature: UserServiceImpl.updateAttributes(long id, List<UserAttribute> attributes)
focal_class.full_signature: @Override public void updateAttributes(long id, List<UserAttribute> attributes)
focal_class.identifier: updateAttributes
focal_class.modifiers: @Override public
focal_class.parameters: (long id, List<UserAttribute> attributes)
focal_class.return: void
focal_class.signature: void updateAttributes(long id, List<UserAttribute> attributes)
focal_class.class_method_signature: UserServiceImpl.get(long id)
focal_class.full_signature: @Override public User get(long id)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (long id)
focal_class.return: User
focal_class.signature: User get(long id)
focal_class.class_method_signature: UserServiceImpl.get(String name)
focal_class.full_signature: @Override public User get(String name)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: User
focal_class.signature: User get(String name)
focal_class.class_method_signature: UserServiceImpl.delete(long id)
focal_class.full_signature: @Override public boolean delete(long id)
focal_class.identifier: delete
focal_class.modifiers: @Override public
focal_class.parameters: (long id)
focal_class.return: boolean
focal_class.signature: boolean delete(long id)
focal_class.class_method_signature: UserServiceImpl.getAll(Integer page, Integer entries)
focal_class.full_signature: @Override public List<User> getAll(Integer page, Integer entries)
focal_class.identifier: getAll
focal_class.modifiers: @Override public
focal_class.parameters: (Integer page, Integer entries)
focal_class.return: List<User>
focal_class.signature: List<User> getAll(Integer page, Integer entries)
focal_class.class_method_signature: UserServiceImpl.getAll(Integer page, Integer entries, String nameLike,
              boolean includeAttributes)
focal_class.full_signature: @Override public List<User> getAll(Integer page, Integer entries, String nameLike,
              boolean includeAttributes)
focal_class.identifier: getAll
focal_class.modifiers: @Override public
focal_class.parameters: (Integer page, Integer entries, String nameLike,
              boolean includeAttributes)
focal_class.return: List<User>
focal_class.signature: List<User> getAll(Integer page, Integer entries, String nameLike,
              boolean includeAttributes)
focal_class.class_method_signature: UserServiceImpl.configUserList(List<User> list, boolean includeAttributes)
focal_class.full_signature: private List<User> configUserList(List<User> list, boolean includeAttributes)
focal_class.identifier: configUserList
focal_class.modifiers: private
focal_class.parameters: (List<User> list, boolean includeAttributes)
focal_class.return: List<User>
focal_class.signature: List<User> configUserList(List<User> list, boolean includeAttributes)
focal_class.class_method_signature: UserServiceImpl.getCount(String nameLike)
focal_class.full_signature: @Override public long getCount(String nameLike)
focal_class.identifier: getCount
focal_class.modifiers: @Override public
focal_class.parameters: (String nameLike)
focal_class.return: long
focal_class.signature: long getCount(String nameLike)
focal_class.class_method_signature: UserServiceImpl.insertSpecialUsers()
focal_class.full_signature: @Override public boolean insertSpecialUsers()
focal_class.identifier: insertSpecialUsers
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean insertSpecialUsers()
focal_class.class_method_signature: UserServiceImpl.getByAttribute(UserAttribute attribute)
focal_class.full_signature: @Override public Collection<User> getByAttribute(UserAttribute attribute)
focal_class.identifier: getByAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (UserAttribute attribute)
focal_class.return: Collection<User>
focal_class.signature: Collection<User> getByAttribute(UserAttribute attribute)
focal_class.class_method_signature: UserServiceImpl.getByGroup(UserGroup group)
focal_class.full_signature: @Override public Collection<User> getByGroup(UserGroup group)
focal_class.identifier: getByGroup
focal_class.modifiers: @Override public
focal_class.parameters: (UserGroup group)
focal_class.return: Collection<User>
focal_class.signature: Collection<User> getByGroup(UserGroup group)
focal_method.body: @Override
      public Collection<User> getByGroup(UserGroup group) {
  
          Search searchByGroup = new Search(User.class);
          // preferred search is by group name, revert back to id based search for compatibility
          // if name is not present
          if (group.getGroupName() != null) {
              searchByGroup.addFilterSome("groups", Filter.equal("groupName", group.getGroupName()));
          } else {
              searchByGroup.addFilterSome("groups", Filter.equal("id", group.getId()));
          }
          return userDAO.search(searchByGroup);
      }
focal_method.class_method_signature: UserServiceImpl.getByGroup(UserGroup group)
focal_method.full_signature: @Override public Collection<User> getByGroup(UserGroup group)
focal_method.identifier: getByGroup
focal_method.invocations: getGroupName addFilterSome equal getGroupName addFilterSome equal getId search
focal_method.modifiers: @Override public
focal_method.parameters: (UserGroup group)
focal_method.return: Collection<User>
focal_method.signature: Collection<User> getByGroup(UserGroup group)