Class UserServiceImpl

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

        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