Class JPAUser
java.lang.Object
org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
org.apache.syncope.core.persistence.jpa.entity.AbstractAttributable
org.apache.syncope.core.persistence.jpa.entity.AbstractAny
org.apache.syncope.core.persistence.jpa.entity.AbstractRelatable<User,URelationship>
org.apache.syncope.core.persistence.jpa.entity.AbstractGroupableRelatable<User,UMembership,URelationship>
org.apache.syncope.core.persistence.jpa.entity.user.JPAUser
- All Implemented Interfaces:
Serializable,Any,Attributable,Entity,Groupable<User,,UMembership, URelationship> Relatable<User,,URelationship> Account,User
@Entity
public class JPAUser
extends AbstractGroupableRelatable<User,UMembership,URelationship>
implements User
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JPAAnyTypeClass> protected OffsetDateTimeChange password date.protected CipherAlgorithmprotected IntegerSubsequent failed logins.protected OffsetDateTimeLast successful login date.protected @Valid List<JPALinkedAccount> protected @Valid List<JPAUMembership> protected Booleanprotected Stringprotected Stringprotected @Valid List<JPAURelationship> protected List<JPAExternalResource> Provisioning external resources.protected Stringprotected JPASecurityQuestionprotected Booleanstatic final Stringprotected Stringprotected OffsetDateTimeprotected static final TypeReference<List<String>> Username/Login.Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
LOGFields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(AnyTypeClass auxClass) booleanadd(ExternalResource resource) booleanbooleanbooleanadd(LinkedAccount account) booleanadd(UMembership membership) booleanadd(URelationship relationship) voidaddToPasswordHistory(String password) booleanbooleancheckToken(String token) protected StringvoidgenerateToken(int tokenLength, int tokenExpireTime) List<? extends AnyTypeClass> Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue) List<? extends LinkedAccount> List<? extends LinkedAccount> getLinkedAccounts(String resource) List<? extends UMembership> List<? extends URelationship> List<? extends ExternalResource> getRoles()getToken()getType()booleanbooleanbooleanbooleanremove(UMembership membership) voidvoidvoidsetChangePwdDate(OffsetDateTime changePwdDate) voidsetCipherAlgorithm(CipherAlgorithm cipherAlgorithm) voidsetEncodedPassword(String password, CipherAlgorithm cipherAlgorithm) voidsetEncodedSecurityAnswer(String securityAnswer) voidsetFailedLogins(Integer failedLogins) voidsetLastLoginDate(OffsetDateTime lastLoginDate) voidsetMustChangePassword(boolean mustChangePassword) voidsetPassword(String password) voidsetPlainAttrsJSON(String plainAttrs) voidsetSecurityAnswer(String securityAnswer) voidsetSecurityQuestion(SecurityQuestion securityQuestion) voidsetSuspended(Boolean suspended) voidvoidsetUsername(String username) Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGroupableRelatable
getMembership, getPlainAttr, getPlainAttr, getPlainAttrs, getPlainAttrs, getPlainAttrsMethods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractRelatable
getRelationship, getRelationships, getRelationshipsMethods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractAny
getCreationContext, getCreationDate, getCreator, getLastChangeContext, getLastChangeDate, getLastModifier, getRealm, getStatus, setCreationContext, setCreationDate, setCreator, setLastChangeContext, setLastChangeDate, setLastModifier, setRealm, setStatusMethods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractAttributable
list2jsonMethods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
getKey, setKeyMethods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
checkImplementationType, checkType, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Any
getCreationContext, getCreationDate, getCreator, getLastChangeContext, getLastChangeDate, getLastModifier, getRealm, getStatus, setCreationContext, setCreationDate, setCreator, setLastChangeContext, setLastChangeDate, setLastModifier, setRealm, setStatusMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Attributable
getPlainAttr, getPlainAttrsMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Groupable
getMembership, getPlainAttr, getPlainAttrs, getPlainAttrsMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Relatable
getRelationship, getRelationships, getRelationships
-
Field Details
-
TABLE
- See Also:
-
TYPEREF
-
password
-
roles
-
token
-
tokenExpireTime
-
cipherAlgorithm
-
passwordHistory
-
failedLogins
Subsequent failed logins. -
username
Username/Login. -
lastLoginDate
Last successful login date. -
changePwdDate
Change password date. -
suspended
-
mustChangePassword
-
resources
Provisioning external resources. -
auxClasses
-
relationships
-
memberships
-
securityQuestion
-
securityAnswer
-
linkedAccounts
-
-
Constructor Details
-
JPAUser
public JPAUser()
-
-
Method Details
-
getType
-
setType
-
add
-
getResources
- Specified by:
getResourcesin interfaceAny
-
add
-
getRoles
-
getPassword
- Specified by:
getPasswordin interfaceAccount
-
setEncodedPassword
- Specified by:
setEncodedPasswordin interfaceAccount
-
encode
- Throws:
Exception
-
setPassword
- Specified by:
setPasswordin interfaceAccount
-
getCipherAlgorithm
- Specified by:
getCipherAlgorithmin interfaceAccount
-
setCipherAlgorithm
- Specified by:
setCipherAlgorithmin interfaceAccount
-
canDecodeSecrets
public boolean canDecodeSecrets()- Specified by:
canDecodeSecretsin interfaceAccount
-
getPlainAttrsList
- Specified by:
getPlainAttrsListin classAbstractAttributable
-
getPlainAttrsJSON
- Specified by:
getPlainAttrsJSONin classAbstractAttributable
-
setPlainAttrsJSON
- Specified by:
setPlainAttrsJSONin classAbstractAttributable
-
add
- Specified by:
addin interfaceAttributable
-
remove
- Specified by:
removein interfaceAttributable
-
generateToken
public void generateToken(int tokenLength, int tokenExpireTime) - Specified by:
generateTokenin interfaceUser
-
removeToken
public void removeToken()- Specified by:
removeTokenin interfaceUser
-
getToken
-
getTokenExpireTime
- Specified by:
getTokenExpireTimein interfaceUser
-
checkToken
- Specified by:
checkTokenin interfaceUser
-
hasTokenExpired
public boolean hasTokenExpired()- Specified by:
hasTokenExpiredin interfaceUser
-
addToPasswordHistory
- Specified by:
addToPasswordHistoryin interfaceUser
-
removeOldestEntriesFromPasswordHistory
public void removeOldestEntriesFromPasswordHistory(int n) - Specified by:
removeOldestEntriesFromPasswordHistoryin interfaceUser
-
getPasswordHistory
- Specified by:
getPasswordHistoryin interfaceUser
-
getChangePwdDate
- Specified by:
getChangePwdDatein interfaceUser
-
setChangePwdDate
- Specified by:
setChangePwdDatein interfaceUser
-
getFailedLogins
- Specified by:
getFailedLoginsin interfaceUser
-
setFailedLogins
- Specified by:
setFailedLoginsin interfaceUser
-
getLastLoginDate
- Specified by:
getLastLoginDatein interfaceUser
-
setLastLoginDate
- Specified by:
setLastLoginDatein interfaceUser
-
getUsername
- Specified by:
getUsernamein interfaceAccount
-
setUsername
- Specified by:
setUsernamein interfaceAccount
-
setSuspended
- Specified by:
setSuspendedin interfaceAccount
-
isSuspended
- Specified by:
isSuspendedin interfaceAccount
-
setMustChangePassword
public void setMustChangePassword(boolean mustChangePassword) - Specified by:
setMustChangePasswordin interfaceUser
-
isMustChangePassword
public boolean isMustChangePassword()- Specified by:
isMustChangePasswordin interfaceUser
-
getSecurityQuestion
- Specified by:
getSecurityQuestionin interfaceUser
-
setSecurityQuestion
- Specified by:
setSecurityQuestionin interfaceUser
-
getSecurityAnswer
- Specified by:
getSecurityAnswerin interfaceUser
-
setSecurityAnswer
- Specified by:
setSecurityAnswerin interfaceUser
-
setEncodedSecurityAnswer
- Specified by:
setEncodedSecurityAnswerin interfaceUser
-
add
-
getAuxClasses
- Specified by:
getAuxClassesin interfaceAny
-
add
- Specified by:
addin interfaceRelatable<User,URelationship>
-
getRelationships
- Specified by:
getRelationshipsin interfaceRelatable<User,URelationship>
-
add
- Specified by:
addin interfaceGroupable<User,UMembership, URelationship>
-
remove
- Specified by:
removein interfaceGroupable<User,UMembership, URelationship>
-
getMemberships
- Specified by:
getMembershipsin interfaceGroupable<User,UMembership, URelationship>
-
add
-
getLinkedAccount
public Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue) - Specified by:
getLinkedAccountin interfaceUser
-
getLinkedAccounts
- Specified by:
getLinkedAccountsin interfaceUser
-
getLinkedAccounts
- Specified by:
getLinkedAccountsin interfaceUser
-