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 boolean
add(APlainAttr attr)
boolean
add(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,NULL
otherwise.List<JPAJSONAPlainAttr>
getPlainAttrList()
List<? extends APlainAttr>
getPlainAttrs()
Returns the plain attributes for this instance.String
getPlainAttrsJSON()
protected List<? extends APlainAttr>
internalGetPlainAttrs()
boolean
remove(AMembership membership)
boolean
remove(APlainAttr attr)
void
setPlainAttrsJSON(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:
getPlainAttrsJSON
in interfaceJSONAttributable<AnyObject>
-
setPlainAttrsJSON
public void setPlainAttrsJSON(String plainAttrs)
- Specified by:
setPlainAttrsJSON
in interfaceJSONAttributable<AnyObject>
-
getPlainAttrList
public List<JPAJSONAPlainAttr> getPlainAttrList()
- Specified by:
getPlainAttrList
in interfaceJSONAttributable<AnyObject>
-
add
public boolean add(JSONPlainAttr<AnyObject> attr)
- Specified by:
add
in interfaceJSONAttributable<AnyObject>
-
add
public boolean add(APlainAttr attr)
- Specified by:
add
in interfaceAttributable<APlainAttr>
- Overrides:
add
in classJPAAnyObject
-
remove
public boolean remove(APlainAttr attr)
- Specified by:
remove
in interfaceAttributable<APlainAttr>
- Overrides:
remove
in classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
-
internalGetPlainAttrs
protected List<? extends APlainAttr> internalGetPlainAttrs()
- Overrides:
internalGetPlainAttrs
in classJPAAnyObject
-
getPlainAttrs
public List<? extends APlainAttr> getPlainAttrs()
Description copied from interface:Attributable
Returns the plain attributes for this instance.- Specified by:
getPlainAttrs
in interfaceAttributable<APlainAttr>
- Overrides:
getPlainAttrs
in classAbstractGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
- Returns:
- plain attribute for this instance
-
getPlainAttr
public Optional<? extends APlainAttr> 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<APlainAttr>
- Overrides:
getPlainAttr
in 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: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<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
- Overrides:
getPlainAttr
in 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:
remove
in interfaceGroupableRelatable<AnyObject,AMembership,APlainAttr,AnyObject,ARelationship>
- Overrides:
remove
in classJPAAnyObject
-
-