Interface User
-
- All Superinterfaces:
Account
,Any<UPlainAttr>
,Attributable<UPlainAttr>
,Entity
,GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
,Serializable
- All Known Implementing Classes:
JPAJSONUser
,JPAUser
public interface User extends Account, GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
-
-
Field Summary
-
Fields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
-
-
Method Summary
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.user.Account
canDecodeSecrets, getCipherAlgorithm, getPassword, getUsername, isSuspended, setCipherAlgorithm, setEncodedPassword, setPassword, setSuspended, setUsername
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.Any
add, add, getAuxClasses, getCreationContext, getCreationDate, getCreator, getLastChangeContext, getLastChangeDate, getLastModifier, getRealm, getResources, getStatus, getType, setCreationContext, setCreationDate, setCreator, setLastChangeContext, setLastChangeDate, setLastModifier, setRealm, setStatus, setType
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.Attributable
add, getPlainAttr, getPlainAttrs, remove
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.GroupableRelatable
add, add, getMembership, getMemberships, getPlainAttr, getPlainAttrs, getPlainAttrs, getRelationship, getRelationships, getRelationships, getRelationships, remove
-
-
-
-
Method Detail
-
getToken
String getToken()
-
getTokenExpireTime
OffsetDateTime getTokenExpireTime()
-
generateToken
void generateToken(int tokenLength, int tokenExpireTime)
-
removeToken
void removeToken()
-
checkToken
boolean checkToken(String token)
-
hasTokenExpired
boolean hasTokenExpired()
-
getChangePwdDate
OffsetDateTime getChangePwdDate()
-
setChangePwdDate
void setChangePwdDate(OffsetDateTime changePwdDate)
-
addToPasswordHistory
void addToPasswordHistory(String password)
-
removeOldestEntriesFromPasswordHistory
void removeOldestEntriesFromPasswordHistory(int n)
-
getSecurityQuestion
SecurityQuestion getSecurityQuestion()
-
setSecurityQuestion
void setSecurityQuestion(SecurityQuestion securityQuestion)
-
getSecurityAnswer
String getSecurityAnswer()
-
setSecurityAnswer
void setSecurityAnswer(String securityAnswer)
-
getFailedLogins
Integer getFailedLogins()
-
setFailedLogins
void setFailedLogins(Integer failedLogins)
-
getLastLoginDate
OffsetDateTime getLastLoginDate()
-
setLastLoginDate
void setLastLoginDate(OffsetDateTime lastLoginDate)
-
isMustChangePassword
boolean isMustChangePassword()
-
setMustChangePassword
void setMustChangePassword(boolean mustChangePassword)
-
add
boolean add(Role role)
-
add
boolean add(LinkedAccount account)
-
getLinkedAccount
Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue)
-
getLinkedAccounts
List<? extends LinkedAccount> getLinkedAccounts(String resource)
-
getLinkedAccounts
List<? extends LinkedAccount> getLinkedAccounts()
-
-