Class JPAJSONUser
- 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.AbstractAny<P>
-
- org.apache.syncope.core.persistence.jpa.entity.AbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
-
- org.apache.syncope.core.persistence.jpa.entity.user.JPAUser
-
- org.apache.syncope.core.persistence.jpa.entity.user.JPAJSONUser
-
- All Implemented Interfaces:
Serializable,Any<UPlainAttr>,Attributable<UPlainAttr>,Entity,GroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>,JSONAttributable<User>,Account,User
@Entity @JPAJSONAttributableCheck public class JPAJSONUser extends JPAUser implements JSONAttributable<User>, User
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.user.JPAUser
auxClasses, changePwdDate, cipherAlgorithm, failedLogins, lastLoginDate, memberships, mustChangePassword, password, passwordHistory, relationships, resources, roles, securityAnswer, securityQuestion, status, suspended, TABLE, token, tokenExpireTime, TYPEREF, username
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
-
-
Constructor Summary
Constructors Constructor Description JPAJSONUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(JSONPlainAttr<User> attr)booleanadd(LinkedAccount account)booleanadd(UPlainAttr attr)Optional<? extends LinkedAccount>getLinkedAccount(String resource, String connObjectKeyValue)List<? extends LinkedAccount>getLinkedAccounts()List<? extends LinkedAccount>getLinkedAccounts(String resource)Optional<? extends UPlainAttr>getPlainAttr(String plainSchema)Returns the plain attribute for this instance and the given schema name.sOptional<? extends UPlainAttr>getPlainAttr(String plainSchema, Membership<?> membership)Returns the plain attribute for this instance, the given schema name and the given membership - if found,NULLotherwise.List<JPAJSONUPlainAttr>getPlainAttrList()List<? extends UPlainAttr>getPlainAttrs()Returns the plain attributes for this instance.StringgetPlainAttrsJSON()protected List<? extends UPlainAttr>internalGetPlainAttrs()booleanremove(UMembership membership)booleanremove(UPlainAttr attr)voidsetPlainAttrsJSON(String plainAttrs)-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.user.JPAUser
add, add, add, add, add, addToPasswordHistory, canDecodeSecrets, checkToken, encode, generateToken, getAuxClasses, getChangePwdDate, getCipherAlgorithm, getFailedLogins, getLastLoginDate, getMemberships, getPassword, getPasswordHistory, getRelationship, getRelationships, getResources, getRoles, getSecurityAnswer, getSecurityQuestion, getStatus, getToken, getTokenExpireTime, getType, getUsername, hasTokenExpired, isMustChangePassword, isSuspended, removeOldestEntriesFromPasswordHistory, removeToken, setChangePwdDate, setCipherAlgorithm, setEncodedPassword, setFailedLogins, setLastLoginDate, setMustChangePassword, setPassword, setSecurityAnswer, setSecurityQuestion, setStatus, setSuspended, setType, setUsername
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGroupableRelatable
getMembership, getPlainAttrs, getPlainAttrs, getRelationships, getRelationships
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractAny
getCreationContext, getCreationDate, getCreator, getLastChangeContext, getLastChangeDate, getLastModifier, getRealm, setCreationContext, setCreationDate, setCreator, setLastChangeContext, setLastChangeDate, setLastModifier, setRealm
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractGeneratedKeyEntity
getKey, setKey
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.AbstractEntity
checkImplementationType, checkType, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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.GroupableRelatable
add, add, getMembership, getMemberships, getPlainAttrs, getPlainAttrs, getRelationship, getRelationships, getRelationships, getRelationships
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.user.User
add, addToPasswordHistory, checkToken, generateToken, getChangePwdDate, getFailedLogins, getLastLoginDate, getPasswordHistory, getRoles, getSecurityAnswer, getSecurityQuestion, getToken, getTokenExpireTime, hasTokenExpired, isMustChangePassword, removeOldestEntriesFromPasswordHistory, removeToken, setChangePwdDate, setFailedLogins, setLastLoginDate, setMustChangePassword, setSecurityAnswer, setSecurityQuestion
-
-
-
-
Method Detail
-
getPlainAttrsJSON
public String getPlainAttrsJSON()
- Specified by:
getPlainAttrsJSONin interfaceJSONAttributable<User>
-
setPlainAttrsJSON
public void setPlainAttrsJSON(String plainAttrs)
- Specified by:
setPlainAttrsJSONin interfaceJSONAttributable<User>
-
getPlainAttrList
public List<JPAJSONUPlainAttr> getPlainAttrList()
- Specified by:
getPlainAttrListin interfaceJSONAttributable<User>
-
add
public boolean add(JSONPlainAttr<User> attr)
- Specified by:
addin interfaceJSONAttributable<User>
-
add
public boolean add(UPlainAttr attr)
- Specified by:
addin interfaceAttributable<UPlainAttr>- Overrides:
addin classJPAUser
-
remove
public boolean remove(UPlainAttr attr)
- Specified by:
removein interfaceAttributable<UPlainAttr>- Overrides:
removein classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
-
internalGetPlainAttrs
protected List<? extends UPlainAttr> internalGetPlainAttrs()
- Overrides:
internalGetPlainAttrsin classJPAUser
-
getPlainAttrs
public List<? extends UPlainAttr> getPlainAttrs()
Description copied from interface:AttributableReturns the plain attributes for this instance.- Specified by:
getPlainAttrsin interfaceAttributable<UPlainAttr>- Overrides:
getPlainAttrsin classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>- Returns:
- plain attribute for this instance
-
getPlainAttr
public Optional<? extends UPlainAttr> getPlainAttr(String plainSchema)
Description copied from interface:AttributableReturns the plain attribute for this instance and the given schema name.s- Specified by:
getPlainAttrin interfaceAttributable<UPlainAttr>- Overrides:
getPlainAttrin classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>- Parameters:
plainSchema- plain schema name- Returns:
- plain attribute for this instance and the given schema name
-
getPlainAttr
public Optional<? extends UPlainAttr> getPlainAttr(String plainSchema, Membership<?> membership)
Description copied from interface:GroupableRelatableReturns the plain attribute for this instance, the given schema name and the given membership - if found,NULLotherwise.- Specified by:
getPlainAttrin interfaceGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>- Overrides:
getPlainAttrin classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>- Parameters:
plainSchema- plain schema namemembership- membership- Returns:
- plain attribute for this instance, the given schema name and the given membership
-
remove
public boolean remove(UMembership membership)
- Specified by:
removein interfaceGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>- Overrides:
removein classJPAUser
-
add
public boolean add(LinkedAccount account)
-
getLinkedAccount
public Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue)
- Specified by:
getLinkedAccountin interfaceUser- Overrides:
getLinkedAccountin classJPAUser
-
getLinkedAccounts
public List<? extends LinkedAccount> getLinkedAccounts(String resource)
- Specified by:
getLinkedAccountsin interfaceUser- Overrides:
getLinkedAccountsin classJPAUser
-
getLinkedAccounts
public List<? extends LinkedAccount> getLinkedAccounts()
- Specified by:
getLinkedAccountsin interfaceUser- Overrides:
getLinkedAccountsin classJPAUser
-
-