Class JPAJSONAnyObject
- 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<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
-
- org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject
-
- org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAJSONAnyObject
-
- All Implemented Interfaces:
Serializable,Any<APlainAttr>,AnyObject,Attributable<APlainAttr>,Entity,GroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>,JSONAttributable<AnyObject>
@Entity @JPAJSONAttributableCheck public class JPAJSONAnyObject extends JPAAnyObject implements JSONAttributable<AnyObject>, AnyObject
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject
TABLE
-
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 JPAJSONAnyObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(APlainAttr attr)booleanadd(JSONPlainAttr<AnyObject> attr)Optional<? extends APlainAttr>getPlainAttr(String plainSchema)Returns the plain attribute for this instance and the given schema name.sOptional<? extends APlainAttr>getPlainAttr(String plainSchema, Membership<?> membership)Returns the plain attribute for this instance, the given schema name and the given membership - if found,NULLotherwise.List<JPAJSONAPlainAttr>getPlainAttrList()List<? extends APlainAttr>getPlainAttrs()Returns the plain attributes for this instance.StringgetPlainAttrsJSON()protected List<? extends APlainAttr>internalGetPlainAttrs()booleanremove(AMembership membership)booleanremove(APlainAttr attr)voidsetPlainAttrsJSON(String plainAttrs)-
Methods inherited from class org.apache.syncope.core.persistence.jpa.entity.anyobject.JPAAnyObject
add, add, add, add, getAuxClasses, getMemberships, getName, getRelationship, getRelationships, getResources, getType, setName, setType
-
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, getStatus, setCreationContext, setCreationDate, setCreator, setLastChangeContext, setLastChangeDate, setLastModifier, setRealm, setStatus
-
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.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.anyobject.AnyObject
getName, setName
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.GroupableRelatable
add, add, getMembership, getMemberships, getPlainAttrs, getPlainAttrs, getRelationship, getRelationships, getRelationships, getRelationships
-
-
-
-
Method Detail
-
getPlainAttrsJSON
public String getPlainAttrsJSON()
- Specified by:
getPlainAttrsJSONin interfaceJSONAttributable<AnyObject>
-
setPlainAttrsJSON
public void setPlainAttrsJSON(String plainAttrs)
- Specified by:
setPlainAttrsJSONin interfaceJSONAttributable<AnyObject>
-
getPlainAttrList
public List<JPAJSONAPlainAttr> getPlainAttrList()
- Specified by:
getPlainAttrListin interfaceJSONAttributable<AnyObject>
-
add
public boolean add(JSONPlainAttr<AnyObject> attr)
- Specified by:
addin interfaceJSONAttributable<AnyObject>
-
add
public boolean add(APlainAttr attr)
- Specified by:
addin interfaceAttributable<APlainAttr>- Overrides:
addin classJPAAnyObject
-
remove
public boolean remove(APlainAttr attr)
- Specified by:
removein interfaceAttributable<APlainAttr>- Overrides:
removein classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
-
internalGetPlainAttrs
protected List<? extends APlainAttr> internalGetPlainAttrs()
- Overrides:
internalGetPlainAttrsin classJPAAnyObject
-
getPlainAttrs
public List<? extends APlainAttr> getPlainAttrs()
Description copied from interface:AttributableReturns the plain attributes for this instance.- Specified by:
getPlainAttrsin interfaceAttributable<APlainAttr>- Overrides:
getPlainAttrsin classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>- Returns:
- plain attribute for this instance
-
getPlainAttr
public Optional<? extends APlainAttr> getPlainAttr(String plainSchema)
Description copied from interface:AttributableReturns the plain attribute for this instance and the given schema name.s- Specified by:
getPlainAttrin interfaceAttributable<APlainAttr>- Overrides:
getPlainAttrin classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>- Parameters:
plainSchema- plain schema name- Returns:
- plain attribute for this instance and the given schema name
-
getPlainAttr
public Optional<? extends APlainAttr> 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<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>- Overrides:
getPlainAttrin classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>- Parameters:
plainSchema- plain schema namemembership- membership- Returns:
- plain attribute for this instance, the given schema name and the given membership
-
remove
public boolean remove(AMembership membership)
- Specified by:
removein interfaceGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>- Overrides:
removein classJPAAnyObject
-
-