Class UserServiceImpl

java.lang.Object
ubic.gemma.core.security.authentication.UserServiceImpl
All Implemented Interfaces:
gemma.gsec.authentication.UserService, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, UserService

@Service public class UserServiceImpl extends Object implements UserService, org.springframework.context.ApplicationContextAware
Author:
pavlidis
  • Constructor Details

    • UserServiceImpl

      public UserServiceImpl()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • 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