- 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>
A
RelationDescriptor
which provides a method to perform validation on descriptor operations.- Since:
- 5.11
-
Method Summary
Modifier and TypeMethodDescriptionReturnsValidationResult
, which indicates if two given entities may form a relation, described by thisRelationDescriptor
objectMethods inherited from interface com.atlassian.confluence.api.model.relations.RelationDescriptor
getRelationName, getSourceClass, getTargetClass
-
Method Details
-
canRelate
ReturnsValidationResult
, which indicates if two given entities may form a relation, described by thisRelationDescriptor
object- Parameters:
source
- entitytarget
- entity- Returns:
- validation result
-