Interface UserService

All Superinterfaces:
gemma.gsec.authentication.UserService
All Known Implementing Classes:
UserServiceImpl

public interface UserService extends gemma.gsec.authentication.UserService
Override a few definition from gsec so that we can use Gemma-specific implementations safely.

Avoid using this service directly, use UserManager instead.

Author:
poirigui
  • Method Summary

    Modifier and Type
    Method
    Description
    create(gemma.gsec.model.User user)
     
    create(gemma.gsec.model.UserGroup userGroup)
     
     
     
     
    load(Long id)
     

    Methods inherited from interface gemma.gsec.authentication.UserService

    addGroupAuthority, addUserToGroup, delete, delete, findGroupsForUser, groupExists, listAvailableGroups, loadAll, loadGroupAuthorities, removeGroupAuthority, removeUserFromGroup, update, update
  • Method Details

    • load

      User load(Long id)
      Specified by:
      load in interface gemma.gsec.authentication.UserService
    • findByUserName

      User findByUserName(String s)
      Specified by:
      findByUserName in interface gemma.gsec.authentication.UserService
    • findByEmail

      @Secured({"GROUP_USER","AFTER_ACL_READ"}) User findByEmail(String s)
      Specified by:
      findByEmail in interface gemma.gsec.authentication.UserService
    • findGroupByName

      @Secured({"GROUP_USER","AFTER_ACL_READ"}) UserGroup findGroupByName(String s)
      Specified by:
      findGroupByName in interface gemma.gsec.authentication.UserService
    • create

      @Secured("GROUP_ADMIN") User create(gemma.gsec.model.User user) throws gemma.gsec.authentication.UserExistsException
      Specified by:
      create in interface gemma.gsec.authentication.UserService
      Throws:
      gemma.gsec.authentication.UserExistsException
    • create

      @Secured("GROUP_USER") UserGroup create(gemma.gsec.model.UserGroup userGroup)
      Specified by:
      create in interface gemma.gsec.authentication.UserService