Class BackofficeUserService

All Implemented Interfaces:
UserService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class BackofficeUserService extends DefaultUserService
Backoffice implementation of the UserService. Considers the active role when checking if the user is an administrator.
See Also:
  • Field Details

  • Constructor Details

    • BackofficeUserService

      public BackofficeUserService()
  • Method Details

    • isAdmin

      public boolean isAdmin(UserModel user)
      Description copied from interface: UserService
      Checks if the given user has the admin role.

      The user is an admin if either the user is the admin employee or the user is a member of the admin user group (see UserService.getAdminUserGroup()).

      Specified by:
      isAdmin in interface UserService
      Overrides:
      isAdmin in class DefaultUserService
      Parameters:
      user - user to check
      Returns:
      true if the user is an admin, otherwise false
    • isCurrentUser

      protected boolean isCurrentUser(UserModel user)
    • isAdminGroupInActiveRoleHierarchy

      protected boolean isAdminGroupInActiveRoleHierarchy()
    • isAdminGroupInNonRoleHierarchy

      protected boolean isAdminGroupInNonRoleHierarchy(UserModel user)
    • isAdminGroup

      protected boolean isAdminGroup(String groupId)
    • getBackofficeRoleService

      protected BackofficeRoleService getBackofficeRoleService()
    • setBackofficeRoleService

      public void setBackofficeRoleService(BackofficeRoleService backofficeRoleService)