Package org.openwms.core.uaa.impl
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>
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openwms.core.uaa.impl.User
User.PasswordComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe virtualRoleof the SystemUser.static final StringThe defined fullname of the system user.Fields inherited from class org.openwms.core.uaa.impl.User
NUMBER_STORED_PASSWORDSFields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDear JPA...SystemUser(String username, String password) Create a new SystemUser. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSuperUser(User user) Check whetheruseris the system user.Methods inherited from class org.openwms.core.uaa.impl.User
addNewEmailAddress, addRole, changePassword, equals, getEmailAddresses, getExpirationDate, getFullname, getGrants, getLastPasswordChange, getPassword, getPasswords, getPrimaryEmailAddress, getRoles, getUserDetails, getUsername, hashCode, hasPasswordChanged, hasUserDetails, isEnabled, isExternalUser, isLocked, loadLazy, postLoad, removeEmailAddress, setEmailAddresses, setEnabled, setExpirationDate, setExternalUser, setFullname, setFullname, setLastPasswordChange, setLocked, setOl, setPersistentKey, setRoles, setUserDetails, setUsername, supplyGrants, supplyLastPasswordChange, supplyPrimaryEmailAddress, supplyRoles, supplyUserDetails, toString, validateAgainstPasswordHistory, wipePasswordMethods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersistMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt
-
Field Details
-
SYSTEM_USERNAME
The defined fullname of the system user. Default "openwms" .- See Also:
-
SYSTEM_ROLE_NAME
The virtualRoleof the SystemUser.- See Also:
-
-
Constructor Details
-
SystemUser
protected SystemUser()Dear JPA... -
SystemUser
Create a new SystemUser.- Parameters:
username- SystemUser's usernamepassword- SystemUser's password
-
-
Method Details
-
isSuperUser
Check whetheruseris the system user.- Parameters:
user- The user to check- Returns:
- true if user is the system user, otherwise false
-