Interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
-
- All Superinterfaces:
Any<P>,Attributable<P>,Entity,Serializable
- All Known Implementing Classes:
AbstractGroupableRelatable,JPAAnyObject,JPAJSONAnyObject,JPAJSONUser,JPAUser
public interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>> extends Any<P>
-
-
Field Summary
-
Fields inherited from interface org.apache.syncope.core.persistence.api.entity.Entity
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(M membership)booleanadd(REL relationship)Optional<? extends M>getMembership(String groupKey)List<? extends M>getMemberships()Optional<? extends P>getPlainAttr(String plainSchema, Membership<?> membership)Returns the plain attribute for this instance, the given schema name and the given membership - if found,NULLotherwise.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.Optional<? extends REL>getRelationship(RelationshipType relationshipType, String otherEndKey)List<? extends REL>getRelationships()Collection<? extends REL>getRelationships(String otherEndKey)Collection<? extends REL>getRelationships(RelationshipType relationshipType)booleanremove(M membership)-
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, getPlainAttr, getPlainAttrs, remove
-
-
-
-
Method Detail
-
getPlainAttr
Optional<? extends P> getPlainAttr(String plainSchema, Membership<?> membership)
Returns the plain attribute for this instance, the given schema name and the given membership - if found,NULLotherwise.- Parameters:
plainSchema- plain schema namemembership- membership- Returns:
- plain attribute for this instance, the given schema name and the given membership
-
getPlainAttrs
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)).- Parameters:
plainSchema- plain schema name- Returns:
- list of plain attributes for this instance and the given schema name (including membeship attributes)
-
getPlainAttrs
Collection<? extends P> getPlainAttrs(Membership<?> membership)
Returns the list of plain attributes for this instance and the given membership.- Parameters:
membership- membership- Returns:
- list of plain attributes for this instance and the given membership
-
add
boolean add(M membership)
-
remove
boolean remove(M membership)
-
add
boolean add(REL relationship)
-
getRelationship
Optional<? extends REL> getRelationship(RelationshipType relationshipType, String otherEndKey)
-
getRelationships
Collection<? extends REL> getRelationships(String otherEndKey)
-
getRelationships
Collection<? extends REL> getRelationships(RelationshipType relationshipType)
-
-