@Entity public class JPAUser extends AbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship> implements User
Modifier and Type | Field and Description |
---|---|
static String |
TABLE |
LOG
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
Constructor and Description |
---|
JPAUser() |
getMembership, getPlainAttr, getPlainAttr, getPlainAttrs, getPlainAttrs, getPlainAttrs, getRelationships, getRelationships, remove
getRealm, setRealm
getCreationDate, getCreator, getLastChangeDate, getLastModifier, setCreationDate, setCreator, setLastChangeDate, setLastModifier
getKey, setKey
checkImplementationType, checkType, equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getMembership, getPlainAttr, getPlainAttrs, getPlainAttrs, getRelationships, getRelationships
getRealm, setRealm
getPlainAttr, getPlainAttrs, remove
getCreationDate, getCreator, getLastChangeDate, getLastModifier, setCreationDate, setCreator, setLastChangeDate, setLastModifier
public static final String TABLE
public AnyType getType()
getType
in interface Any<UPlainAttr>
public void setType(AnyType type)
setType
in interface Any<UPlainAttr>
public boolean add(ExternalResource resource)
add
in interface Any<UPlainAttr>
public List<? extends ExternalResource> getResources()
getResources
in interface Any<UPlainAttr>
public String getPassword()
getPassword
in interface Account
public void setEncodedPassword(String password, CipherAlgorithm cipherAlgorithm)
setEncodedPassword
in interface Account
public void setPassword(String password)
setPassword
in interface Account
public CipherAlgorithm getCipherAlgorithm()
getCipherAlgorithm
in interface Account
public void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
setCipherAlgorithm
in interface Account
public boolean canDecodeSecrets()
canDecodeSecrets
in interface Account
public boolean add(UPlainAttr attr)
add
in interface Attributable<UPlainAttr>
protected List<? extends UPlainAttr> internalGetPlainAttrs()
internalGetPlainAttrs
in class AbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public String getStatus()
getStatus
in interface Any<UPlainAttr>
getStatus
in class AbstractAny<UPlainAttr>
public void setStatus(String status)
setStatus
in interface Any<UPlainAttr>
setStatus
in class AbstractAny<UPlainAttr>
public void generateToken(int tokenLength, int tokenExpireTime)
generateToken
in interface User
public void removeToken()
removeToken
in interface User
public Date getTokenExpireTime()
getTokenExpireTime
in interface User
public boolean checkToken(String token)
checkToken
in interface User
public boolean hasTokenExpired()
hasTokenExpired
in interface User
public List<String> getPasswordHistory()
getPasswordHistory
in interface User
public Date getChangePwdDate()
getChangePwdDate
in interface User
public void setChangePwdDate(Date changePwdDate)
setChangePwdDate
in interface User
public Integer getFailedLogins()
getFailedLogins
in interface User
public void setFailedLogins(Integer failedLogins)
setFailedLogins
in interface User
public Date getLastLoginDate()
getLastLoginDate
in interface User
public void setLastLoginDate(Date lastLoginDate)
setLastLoginDate
in interface User
public String getUsername()
getUsername
in interface Account
public void setUsername(String username)
setUsername
in interface Account
public void setSuspended(Boolean suspended)
setSuspended
in interface Account
public Boolean isSuspended()
isSuspended
in interface Account
public void setMustChangePassword(boolean mustChangePassword)
setMustChangePassword
in interface User
public boolean isMustChangePassword()
isMustChangePassword
in interface User
public SecurityQuestion getSecurityQuestion()
getSecurityQuestion
in interface User
public void setSecurityQuestion(SecurityQuestion securityQuestion)
setSecurityQuestion
in interface User
public String getSecurityAnswer()
getSecurityAnswer
in interface User
public void setSecurityAnswer(String securityAnswer)
setSecurityAnswer
in interface User
public boolean add(AnyTypeClass auxClass)
add
in interface Any<UPlainAttr>
public List<? extends AnyTypeClass> getAuxClasses()
getAuxClasses
in interface Any<UPlainAttr>
public boolean add(URelationship relationship)
add
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public Optional<? extends URelationship> getRelationship(RelationshipType relationshipType, String otherEndKey)
getRelationship
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public List<? extends URelationship> getRelationships()
getRelationships
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public boolean add(UMembership membership)
add
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public boolean remove(UMembership membership)
remove
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public List<? extends UMembership> getMemberships()
getMemberships
in interface GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
public boolean add(LinkedAccount account)
public Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue)
getLinkedAccount
in interface User
public List<? extends LinkedAccount> getLinkedAccounts(String resource)
getLinkedAccounts
in interface User
public List<? extends LinkedAccount> getLinkedAccounts()
getLinkedAccounts
in interface User
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.