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.
    Author:
    poirigui
    • Method Detail

      • 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