java.lang.Object
com.atlassian.confluence.api.impl.service.relation.DefaultValidatingRelationDescriptor<S,T>
com.atlassian.confluence.api.impl.service.relation.AuthenticatedUserRelationDescriptor<S,T>
- All Implemented Interfaces:
RelationDescriptor<S,,T> ValidatingRelationDescriptor<S,T>
public class AuthenticatedUserRelationDescriptor<S extends User,T extends Relatable>
extends DefaultValidatingRelationDescriptor<S,T>
A
ValidatingRelationDescriptor which checks that the User for which the relation is being created is
also the currently authenticated user.
Used to validate relations where users can only create relations for themselves.- Since:
- 5.11
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAuthenticatedUserRelationDescriptor(RelationDescriptor relationDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionReturnsValidationResult, which indicates if two given entities may form a relation, described by thisRelationDescriptorobjectMethods inherited from class com.atlassian.confluence.api.impl.service.relation.DefaultValidatingRelationDescriptor
getRelationName, getSourceClass, getTargetClass
-
Constructor Details
-
AuthenticatedUserRelationDescriptor
-
-
Method Details
-
canRelate
Description copied from interface:ValidatingRelationDescriptorReturnsValidationResult, which indicates if two given entities may form a relation, described by thisRelationDescriptorobject
-