java.lang.Object
com.atlassian.confluence.api.impl.service.relation.DefaultValidatingRelationDescriptor<S,T>
- All Implemented Interfaces:
RelationDescriptor<S,,T> ValidatingRelationDescriptor<S,T>
- Direct Known Subclasses:
AuthenticatedUserRelationDescriptor
public class DefaultValidatingRelationDescriptor<S extends Relatable,T extends Relatable>
extends Object
implements ValidatingRelationDescriptor<S,T>
- Since:
- 5.11
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultValidatingRelationDescriptor(RelationDescriptor relationDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionReturnsValidationResult, which indicates if two given entities may form a relation, described by thisRelationDescriptorobjectGet relation name.Returns class of source entity of the relation.Returns class of target entity of the relation.
-
Constructor Details
-
DefaultValidatingRelationDescriptor
-
-
Method Details
-
getRelationName
Description copied from interface:RelationDescriptorGet relation name. Relation name should be unique per relation type. For example: "favouriteContentRelation", "watchRelation" etc.- Specified by:
getRelationNamein interfaceRelationDescriptor<S extends Relatable,T extends Relatable> - Returns:
- relation name.
-
canRelate
Description copied from interface:ValidatingRelationDescriptorReturnsValidationResult, which indicates if two given entities may form a relation, described by thisRelationDescriptorobject -
getSourceClass
Description copied from interface:RelationDescriptorReturns class of source entity of the relation. Source entity is always subclass ofRelatable- Specified by:
getSourceClassin interfaceRelationDescriptor<S extends Relatable,T extends Relatable> - Returns:
- type of source entity
-
getTargetClass
Description copied from interface:RelationDescriptorReturns class of target entity of the relation. Target entity is always subclass ofRelatable- Specified by:
getTargetClassin interfaceRelationDescriptor<S extends Relatable,T extends Relatable> - Returns:
- type of target entity
-