Interface BaseUserService

All Known Subinterfaces:
UserService
All Known Implementing Classes:
UserServiceImpl

public interface BaseUserService
Version:
$Id: UserService.java,v 1.6 2014/06/17 19:20:47 paul Exp $
Author:
paul
  • Method Details

    • addGroupAuthority

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void addGroupAuthority(UserGroup group, String authority)
    • addUserToGroup

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void addUserToGroup(UserGroup group, User user)
    • create

      @Secured("GROUP_ADMIN") User create(User user) throws UserExistsException
      Throws:
      UserExistsException
    • create

      @Secured("GROUP_USER") UserGroup create(UserGroup group)
    • delete

      @Secured("GROUP_ADMIN") void delete(User user)
      Remove a user from the persistent store.
    • delete

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void delete(UserGroup group)
      Remove a group from the persistent store
    • findByEmail

      @Nullable @Secured({"GROUP_USER","AFTER_ACL_READ"}) User findByEmail(String email)
    • findByUserName

      @Nullable User findByUserName(String userName)
      Returns:
      user or null if they don't exist.
    • findGroupByName

      @Secured({"GROUP_USER","AFTER_ACL_READ"}) UserGroup findGroupByName(String name)
    • findGroupsForUser

      @Secured({"GROUP_USER","AFTER_ACL_COLLECTION_READ"}) Collection<UserGroup> findGroupsForUser(User user)
    • groupExists

      @Secured("GROUP_USER") boolean groupExists(String name)
    • listAvailableGroups

      @Secured({"GROUP_USER","AFTER_ACL_COLLECTION_READ"}) Collection<UserGroup> listAvailableGroups()
      A list of groups available to the current user (will be security-filtered)...might need to allow anonymous.
    • load

      @Secured({"GROUP_USER","AFTER_ACL_READ"}) User load(Long id)
    • loadAll

      @Secured("GROUP_ADMIN") Collection<User> loadAll()
      Retrieves a list of users
    • loadGroupAuthorities

      Collection<GroupAuthority> loadGroupAuthorities(User u)
    • removeGroupAuthority

      @Secured("GROUP_ADMIN") void removeGroupAuthority(UserGroup group, String authority)
      Remove an authority from a group. Would rarely be used.
    • removeUserFromGroup

      @PreAuthorize("hasPermission(#group, 'write') or hasPermission(#group, 'administration')") void removeUserFromGroup(User user, UserGroup group)
    • update

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(User user)
    • update

      @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(UserGroup group)