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, ENCRYPTOR, 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 boolean
add(JSONPlainAttr<User> attr)
boolean
add(LinkedAccount account)
boolean
add(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,NULL
otherwise.List<JPAJSONUPlainAttr>
getPlainAttrList()
List<? extends UPlainAttr>
getPlainAttrs()
Returns the plain attributes for this instance.String
getPlainAttrsJSON()
protected List<? extends UPlainAttr>
internalGetPlainAttrs()
boolean
remove(UMembership membership)
boolean
remove(UPlainAttr attr)
void
setPlainAttrsJSON(String plainAttrs)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.user.JPAUser
add, add, add, add, add, addToPasswordHistory, canDecodeSecrets, checkToken, 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:
getPlainAttrsJSON
in interfaceJSONAttributable<User>
-
setPlainAttrsJSON
public void setPlainAttrsJSON(String plainAttrs)
- Specified by:
setPlainAttrsJSON
in interfaceJSONAttributable<User>
-
getPlainAttrList
public List<JPAJSONUPlainAttr> getPlainAttrList()
- Specified by:
getPlainAttrList
in interfaceJSONAttributable<User>
-
add
public boolean add(JSONPlainAttr<User> attr)
- Specified by:
add
in interfaceJSONAttributable<User>
-
add
public boolean add(UPlainAttr attr)
- Specified by:
add
in interfaceAttributable<UPlainAttr>
- Overrides:
add
in classJPAUser
-
remove
public boolean remove(UPlainAttr attr)
- Specified by:
remove
in interfaceAttributable<UPlainAttr>
- Overrides:
remove
in classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
-
internalGetPlainAttrs
protected List<? extends UPlainAttr> internalGetPlainAttrs()
- Overrides:
internalGetPlainAttrs
in classJPAUser
-
getPlainAttrs
public List<? extends UPlainAttr> getPlainAttrs()
Description copied from interface:Attributable
Returns the plain attributes for this instance.- Specified by:
getPlainAttrs
in interfaceAttributable<UPlainAttr>
- Overrides:
getPlainAttrs
in classAbstractGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
- Returns:
- plain attribute for this instance
-
getPlainAttr
public Optional<? extends UPlainAttr> getPlainAttr(String plainSchema)
Description copied from interface:Attributable
Returns the plain attribute for this instance and the given schema name.s- Specified by:
getPlainAttr
in interfaceAttributable<UPlainAttr>
- Overrides:
getPlainAttr
in 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:GroupableRelatable
Returns the plain attribute for this instance, the given schema name and the given membership - if found,NULL
otherwise.- Specified by:
getPlainAttr
in interfaceGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
- Overrides:
getPlainAttr
in 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:
remove
in interfaceGroupableRelatable<User,UMembership,UPlainAttr,AnyObject,URelationship>
- Overrides:
remove
in classJPAUser
-
add
public boolean add(LinkedAccount account)
-
getLinkedAccount
public Optional<? extends LinkedAccount> getLinkedAccount(String resource, String connObjectKeyValue)
- Specified by:
getLinkedAccount
in interfaceUser
- Overrides:
getLinkedAccount
in classJPAUser
-
getLinkedAccounts
public List<? extends LinkedAccount> getLinkedAccounts(String resource)
- Specified by:
getLinkedAccounts
in interfaceUser
- Overrides:
getLinkedAccounts
in classJPAUser
-
getLinkedAccounts
public List<? extends LinkedAccount> getLinkedAccounts()
- Specified by:
getLinkedAccounts
in interfaceUser
- Overrides:
getLinkedAccounts
in classJPAUser
-
-