-
- All Superinterfaces:
RelationDescriptor<S,T>
- All Known Implementing Classes:
AuthenticatedUserRelationDescriptor
,DefaultValidatingRelationDescriptor
@ExperimentalSpi public interface ValidatingRelationDescriptor<S extends Relatable,T extends Relatable> extends RelationDescriptor<S,T>
ARelationDescriptor
which provides a method to perform validation on descriptor operations.- Since:
- 5.11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationResult
canRelate(S source, T target)
ReturnsValidationResult
, which indicates if two given entities may form a relation, described by thisRelationDescriptor
object-
Methods inherited from interface com.atlassian.confluence.api.model.relations.RelationDescriptor
getRelationName, getSourceClass, getTargetClass
-
-
-
-
Method Detail
-
canRelate
ValidationResult canRelate(S source, T target)
ReturnsValidationResult
, which indicates if two given entities may form a relation, described by thisRelationDescriptor
object- Parameters:
source
- entitytarget
- entity- Returns:
- validation result
-
-