Class AbstractGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
- 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<L,M,P,R,REL>
-
- All Implemented Interfaces:
Serializable
,Any<P>
,Attributable<P>
,Entity
,GroupableRelatable<L,M,P,R,REL>
- Direct Known Subclasses:
JPAAnyObject
,JPAUser
public abstract class AbstractGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>> extends AbstractAny<P> implements GroupableRelatable<L,M,P,R,REL>
- See Also:
- Serialized Form
-
-
Field Summary
-
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 AbstractGroupableRelatable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<? extends M>
getMembership(String groupKey)
Optional<? extends P>
getPlainAttr(String plainSchema)
Returns the plain attribute for this instance and the given schema name.sOptional<? extends P>
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<? extends P>
getPlainAttrs()
Returns the plain attributes for this instance.Collection<? extends P>
getPlainAttrs(String plainSchema)
Returns the list of plain attributes for this instance and the given schema name (including membeship attributes, as opposite toAttributable.getPlainAttr(java.lang.String)
).Collection<? extends P>
getPlainAttrs(Membership<?> membership)
Returns the list of plain attributes for this instance and the given membership.Collection<? extends REL>
getRelationships(String otherEndKey)
Collection<? extends REL>
getRelationships(RelationshipType relationshipType)
protected abstract List<? extends P>
internalGetPlainAttrs()
boolean
remove(P attr)
-
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.Attributable
add
-
Methods inherited from interface org.apache.syncope.core.persistence.api.entity.GroupableRelatable
add, add, getMemberships, getRelationship, getRelationships, remove
-
-
-
-
Method Detail
-
remove
public boolean remove(P attr)
- Specified by:
remove
in interfaceAttributable<L extends Any<P>>
-
getPlainAttr
public Optional<? extends P> 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<L extends Any<P>>
- Parameters:
plainSchema
- plain schema name- Returns:
- plain attribute for this instance and the given schema name
-
getPlainAttr
public Optional<? extends P> 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<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
- Parameters:
plainSchema
- plain schema namemembership
- membership- Returns:
- plain attribute for this instance, the given schema name and the given membership
-
getPlainAttrs
public List<? extends P> getPlainAttrs()
Description copied from interface:Attributable
Returns the plain attributes for this instance.- Specified by:
getPlainAttrs
in interfaceAttributable<L extends Any<P>>
- Returns:
- plain attribute for this instance
-
getPlainAttrs
public Collection<? extends P> getPlainAttrs(String plainSchema)
Description copied from interface:GroupableRelatable
Returns the list of plain attributes for this instance and the given schema name (including membeship attributes, as opposite toAttributable.getPlainAttr(java.lang.String)
).- Specified by:
getPlainAttrs
in interfaceGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
- Parameters:
plainSchema
- plain schema name- Returns:
- list of plain attributes for this instance and the given schema name (including membeship attributes)
-
getPlainAttrs
public Collection<? extends P> getPlainAttrs(Membership<?> membership)
Description copied from interface:GroupableRelatable
Returns the list of plain attributes for this instance and the given membership.- Specified by:
getPlainAttrs
in interfaceGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
- Parameters:
membership
- membership- Returns:
- list of plain attributes for this instance and the given membership
-
getMembership
public Optional<? extends M> getMembership(String groupKey)
- Specified by:
getMembership
in interfaceGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
-
getRelationships
public Collection<? extends REL> getRelationships(RelationshipType relationshipType)
- Specified by:
getRelationships
in interfaceGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
-
getRelationships
public Collection<? extends REL> getRelationships(String otherEndKey)
- Specified by:
getRelationships
in interfaceGroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
-
-