Class Neo4jUser
java.lang.Object
org.apache.syncope.core.persistence.neo4j.entity.AbstractNode
org.apache.syncope.core.persistence.neo4j.entity.AbstractGeneratedKeyNode
org.apache.syncope.core.persistence.neo4j.entity.AbstractAttributable
org.apache.syncope.core.persistence.neo4j.entity.AbstractAny
org.apache.syncope.core.persistence.neo4j.entity.AbstractRelatable<User,URelationship>
org.apache.syncope.core.persistence.neo4j.entity.AbstractGroupableRelatable<User,UMembership,URelationship>
org.apache.syncope.core.persistence.neo4j.entity.user.Neo4jUser
- All Implemented Interfaces:
Serializable,Any,Attributable,Entity,Groupable<User,,UMembership, URelationship> Relatable<User,,URelationship> Account,User
@Node("SyncopeUser")
@AttributableCheck
public class Neo4jUser
extends AbstractGroupableRelatable<User,UMembership,URelationship>
implements User
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Neo4jAnyTypeClass> protected OffsetDateTimeChange password date.protected CipherAlgorithmprotected IntegerSubsequent failed logins.protected OffsetDateTimeLast successful login date.protected @Valid List<Neo4jLinkedAccount> protected List<Neo4jUMembership> protected Booleanstatic final Stringprotected Stringprotected Stringprotected List<Neo4jURelationship> protected List<Neo4jExternalResource> Provisioning external resources.static final Stringprotected Stringprotected Neo4jSecurityQuestionprotected Booleanprotected Stringprotected OffsetDateTimeprotected static final TypeReference<List<String>> static final Stringstatic final Stringstatic final Stringstatic final StringUsername/Login.Fields inherited from class org.apache.syncope.core.persistence.neo4j.entity.AbstractNode
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 URelationship> List<? extends ExternalResource> getRoles()getToken()getType()booleanbooleanprotected List<Neo4jUMembership> booleanremove(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) voidsetSecurityAnswer(String securityAnswer) voidsetSecurityQuestion(SecurityQuestion securityQuestion) voidsetSuspended(Boolean suspended) voidvoidsetUsername(String username) Methods inherited from class org.apache.syncope.core.persistence.neo4j.entity.AbstractGroupableRelatable
completeMembershipPlainAttrs, getMembership, getMemberships, getPlainAttr, getPlainAttrs, getPlainAttrs, removeMethods inherited from class org.apache.syncope.core.persistence.neo4j.entity.AbstractRelatable
getRelationship, getRelationships, getRelationshipsMethods inherited from class org.apache.syncope.core.persistence.neo4j.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.neo4j.entity.AbstractAttributable
completePlainAttrs, doComplete, getPlainAttr, getPlainAttrsMethods inherited from class org.apache.syncope.core.persistence.neo4j.entity.AbstractGeneratedKeyNode
getKey, setKeyMethods inherited from class org.apache.syncope.core.persistence.neo4j.entity.AbstractNode
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, getPlainAttrs, removeMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Groupable
getMembership, getMemberships, getPlainAttr, getPlainAttrs, getPlainAttrsMethods inherited from interface org.apache.syncope.core.persistence.api.entity.Relatable
getRelationship, getRelationships, getRelationships
-
Field Details
-
NODE
- See Also:
-
USER_AUX_CLASSES_REL
- See Also:
-
USER_RESOURCE_REL
- See Also:
-
ROLE_MEMBERSHIP_REL
- See Also:
-
USER_GROUP_MEMBERSHIP_REL
- See Also:
-
USER_SECURITY_QUESTION_REL
- See Also:
-
TYPEREF
-
password
-
plainAttrs
-
token
-
tokenExpireTime
-
cipherAlgorithm
-
passwordHistory
-
failedLogins
Subsequent failed logins. -
username
Username/Login. -
lastLoginDate
Last successful login date. -
changePwdDate
Change password date. -
suspended
-
mustChangePassword
-
resources
@Relationship(type="USER_RESOURCE", direction=OUTGOING) protected List<Neo4jExternalResource> resourcesProvisioning external resources. -
auxClasses
@Relationship(type="USER_AUX_CLASSES", direction=OUTGOING) protected List<Neo4jAnyTypeClass> auxClasses -
relationships
@Relationship(type="URELATIONSHIP_SOURCE", direction=INCOMING) protected List<Neo4jURelationship> relationships -
memberships
@Relationship(type="USER_GROUP_MEMBERSHIP", direction=INCOMING) protected List<Neo4jUMembership> memberships -
roles
-
securityQuestion
@Relationship(type="USER_SECURITY_QUESTION", direction=OUTGOING) protected Neo4jSecurityQuestion securityQuestion -
securityAnswer
-
linkedAccounts
-
-
Constructor Details
-
Neo4jUser
public Neo4jUser()
-
-
Method Details
-
plainAttrs
- Specified by:
plainAttrsin classAbstractAttributable
-
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
-
add
- Specified by:
addin interfaceAttributable- Overrides:
addin classAbstractAttributable
-
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>
-
memberships
- Specified by:
membershipsin classAbstractGroupableRelatable<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
-