Class UserServiceImpl

  • All Implemented Interfaces:
    gemma.gsec.authentication.UserService, UserService

    @Service
    public class UserServiceImpl
    extends Object
    implements UserService
    Author:
    pavlidis
    • Constructor Detail

      • UserServiceImpl

        public UserServiceImpl()
    • Method Detail

      • addGroupAuthority

        @Transactional
        public void addGroupAuthority​(gemma.gsec.model.UserGroup group,
                                      String authority)
        Specified by:
        addGroupAuthority in interface gemma.gsec.authentication.UserService
      • addUserToGroup

        @Transactional
        public void addUserToGroup​(gemma.gsec.model.UserGroup group,
                                   gemma.gsec.model.User user)
        Specified by:
        addUserToGroup in interface gemma.gsec.authentication.UserService
      • create

        @Transactional
        public User create​(gemma.gsec.model.User user)
                    throws gemma.gsec.authentication.UserExistsException
        Specified by:
        create in interface gemma.gsec.authentication.UserService
        Specified by:
        create in interface UserService
        Throws:
        gemma.gsec.authentication.UserExistsException
      • create

        @Transactional
        public UserGroup create​(gemma.gsec.model.UserGroup group)
        Specified by:
        create in interface gemma.gsec.authentication.UserService
        Specified by:
        create in interface UserService
      • delete

        @Transactional
        public void delete​(gemma.gsec.model.User user)
        Specified by:
        delete in interface gemma.gsec.authentication.UserService
      • delete

        @Transactional
        public void delete​(gemma.gsec.model.UserGroup group)
        Specified by:
        delete in interface gemma.gsec.authentication.UserService
      • findByEmail

        @Transactional(readOnly=true)
        public User findByEmail​(String email)
        Specified by:
        findByEmail in interface gemma.gsec.authentication.UserService
        Specified by:
        findByEmail in interface UserService
      • findByUserName

        @Transactional(readOnly=true)
        public User findByUserName​(String userName)
        Specified by:
        findByUserName in interface gemma.gsec.authentication.UserService
        Specified by:
        findByUserName in interface UserService
      • findGroupByName

        @Transactional(readOnly=true)
        public UserGroup findGroupByName​(String name)
        Specified by:
        findGroupByName in interface gemma.gsec.authentication.UserService
        Specified by:
        findGroupByName in interface UserService
      • groupExists

        @Transactional(readOnly=true)
        public boolean groupExists​(String name)
        Specified by:
        groupExists in interface gemma.gsec.authentication.UserService
      • findGroupsForUser

        @Transactional(readOnly=true)
        public Collection<gemma.gsec.model.UserGroup> findGroupsForUser​(gemma.gsec.model.User user)
        Specified by:
        findGroupsForUser in interface gemma.gsec.authentication.UserService
      • listAvailableGroups

        @Transactional(readOnly=true)
        public Collection<gemma.gsec.model.UserGroup> listAvailableGroups()
        Specified by:
        listAvailableGroups in interface gemma.gsec.authentication.UserService
      • load

        @Transactional(readOnly=true)
        public User load​(Long id)
        Specified by:
        load in interface gemma.gsec.authentication.UserService
        Specified by:
        load in interface UserService
      • loadAll

        @Transactional(readOnly=true)
        public Collection<gemma.gsec.model.User> loadAll()
        Specified by:
        loadAll in interface gemma.gsec.authentication.UserService
      • loadGroupAuthorities

        @Transactional(readOnly=true)
        public Collection<gemma.gsec.model.GroupAuthority> loadGroupAuthorities​(gemma.gsec.model.User user)
        Specified by:
        loadGroupAuthorities in interface gemma.gsec.authentication.UserService
      • removeGroupAuthority

        @Transactional
        public void removeGroupAuthority​(gemma.gsec.model.UserGroup group,
                                         String authority)
        Specified by:
        removeGroupAuthority in interface gemma.gsec.authentication.UserService
      • removeUserFromGroup

        @Transactional
        public void removeUserFromGroup​(gemma.gsec.model.User user,
                                        gemma.gsec.model.UserGroup group)
        Specified by:
        removeUserFromGroup in interface gemma.gsec.authentication.UserService
      • update

        @Transactional
        public void update​(gemma.gsec.model.User user)
        Specified by:
        update in interface gemma.gsec.authentication.UserService
      • update

        @Transactional
        public void update​(gemma.gsec.model.UserGroup group)
        Specified by:
        update in interface gemma.gsec.authentication.UserService