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
Modifier and TypeFieldDescriptionstatic final String
The virtualRole
of the SystemUser.static final String
The defined fullname of the system user.Fields inherited from class org.openwms.core.uaa.impl.User
NUMBER_STORED_PASSWORDS
Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
ModifierConstructorDescriptionprotected
Dear JPA...SystemUser
(String username, String password) Create a new SystemUser. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSuperUser
(User user) Check whetheruser
is 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, wipePassword
Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist
Methods 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 virtualRole
of 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 whetheruser
is the system user.- Parameters:
user
- The user to check- Returns:
- true if user is the system user, otherwise false
-