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>
LOG
EMAIL_PATTERN, ID_PATTERN, ID_REGEX
Constructor and Description |
---|
AbstractGroupableRelatable() |
Modifier and Type | Method and 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.s
|
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,
NULL otherwise. |
List<? extends P> |
getPlainAttrs()
Returns the plain attributes for this instance.
|
Collection<? extends P> |
getPlainAttrs(Membership<?> membership)
Returns the list of plain attributes for this instance and the given membership.
|
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 to
Attributable.getPlainAttr(java.lang.String) ). |
Collection<? extends REL> |
getRelationships(RelationshipType relationshipType) |
Collection<? extends REL> |
getRelationships(String otherEndKey) |
protected abstract List<? extends P> |
internalGetPlainAttrs() |
boolean |
remove(P attr) |
getRealm, getStatus, setRealm, setStatus
getCreationDate, getCreator, getLastChangeDate, getLastModifier, setCreationDate, setCreator, setLastChangeDate, setLastModifier
getKey, setKey
checkImplementationType, checkType, equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, getMemberships, getRelationship, getRelationships, remove
add, add, getAuxClasses, getRealm, getResources, getStatus, getType, setRealm, setStatus, setType
add
getCreationDate, getCreator, getLastChangeDate, getLastModifier, setCreationDate, setCreator, setLastChangeDate, setLastModifier
public boolean remove(P attr)
remove
in interface Attributable<P extends GroupablePlainAttr<L,M>>
public Optional<? extends P> getPlainAttr(String plainSchema)
Attributable
getPlainAttr
in interface Attributable<P extends GroupablePlainAttr<L,M>>
plainSchema
- plain schema namepublic Optional<? extends P> getPlainAttr(String plainSchema, Membership<?> membership)
GroupableRelatable
NULL
otherwise.getPlainAttr
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
plainSchema
- plain schema namemembership
- membershippublic List<? extends P> getPlainAttrs()
Attributable
getPlainAttrs
in interface Attributable<P extends GroupablePlainAttr<L,M>>
public Collection<? extends P> getPlainAttrs(String plainSchema)
GroupableRelatable
Attributable.getPlainAttr(java.lang.String)
).getPlainAttrs
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
plainSchema
- plain schema namepublic Collection<? extends P> getPlainAttrs(Membership<?> membership)
GroupableRelatable
getPlainAttrs
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
membership
- membershippublic Optional<? extends M> getMembership(String groupKey)
getMembership
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
public Collection<? extends REL> getRelationships(RelationshipType relationshipType)
getRelationships
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
public Collection<? extends REL> getRelationships(String otherEndKey)
getRelationships
in interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.