Class BackofficeUserService

  • All Implemented Interfaces:
    UserService, java.io.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:
    Serialized Form
    • Field Detail

      • BACKOFFICE_ADMIN_GROUP

        public static final java.lang.String BACKOFFICE_ADMIN_GROUP
        See Also:
        Constant Field Values
    • Constructor Detail

      • BackofficeUserService

        public BackofficeUserService()
    • Method Detail

      • 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​(java.lang.String groupId)
      • setBackofficeRoleService

        public void setBackofficeRoleService​(BackofficeRoleService backofficeRoleService)