public class AuthenticatedUserRelationDescriptor<S extends User,T extends Relatable> extends DefaultValidatingRelationDescriptor<S,T>
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.Modifier | Constructor and Description |
---|---|
protected |
AuthenticatedUserRelationDescriptor(RelationDescriptor relationDescriptor) |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
canRelate(S source,
T target)
Returns
ValidationResult , which indicates if two given entities may
form a relation, described by this RelationDescriptor object |
getRelationName, getSourceClass, getTargetClass
protected AuthenticatedUserRelationDescriptor(RelationDescriptor relationDescriptor)
public ValidationResult canRelate(S source, T target)
ValidatingRelationDescriptor
ValidationResult
, which indicates if two given entities may
form a relation, described by this RelationDescriptor
objectCopyright © 2003–2020 Atlassian. All rights reserved.