Class SystemUser

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.core.uaa.impl.User
org.openwms.core.uaa.impl.SystemUser
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

public class SystemUser extends User implements Serializable
A SystemUser is granted with all privileges and omits all defined security constraints. Whenever a SystemUser logs in, she is assigned to a virtual Role with the name ROLE_SYSTEM. Furthermore this kind of Role is immutable and it is not allowed for the SystemUser to change her UserDetails or UserPassword. Changing the UserPassword has to be done in the application configuration when the project is setup.
Author:
Tina Russell
See Also:
  • Field Details

    • SYSTEM_USERNAME

      public static final String SYSTEM_USERNAME
      The defined fullname of the system user. Default "openwms" .
      See Also:
    • SYSTEM_ROLE_NAME

      public static final String SYSTEM_ROLE_NAME
      The virtual Role of the SystemUser.
      See Also:
  • Constructor Details

    • SystemUser

      protected SystemUser()
      Dear JPA...
    • SystemUser

      public SystemUser(String username, String password)
      Create a new SystemUser.
      Parameters:
      username - SystemUser's username
      password - SystemUser's password
  • Method Details

    • isSuperUser

      public static boolean isSuperUser(User user)
      Check whether user is the system user.
      Parameters:
      user - The user to check
      Returns:
      true if user is the system user, otherwise false