public static interface RelationService.Validator
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
validateCreate(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate create operation
|
<S extends Relatable,T extends Relatable> |
validateDelete(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate delete operation
|
<S extends Relatable,T extends Relatable> |
validateDeleteAllWithType(Relatable relatable,
RelationDescriptor<S,T> relationDescriptor)
Validate the delete all operation
|
<S extends Relatable,T extends Relatable> |
validateFetch(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate fetch operation to check whether a user can view the specifed relation
|
<S extends Relatable,T extends Relatable> ValidationResult validateCreate(S source, RelationDescriptor<S,T> relationDescriptor, T target)
relationDescriptor
- descriptorValidationResult
<S extends Relatable,T extends Relatable> ValidationResult validateDelete(S source, RelationDescriptor<S,T> relationDescriptor, T target)
relationDescriptor
- descriptorValidationResult
<S extends Relatable,T extends Relatable> ValidationResult validateFetch(S source, RelationDescriptor<S,T> relationDescriptor, T target)
relationDescriptor
- descriptorValidationResult
<S extends Relatable,T extends Relatable> ValidationResult validateDeleteAllWithType(Relatable relatable, RelationDescriptor<S,T> relationDescriptor)
relatable
- the object from which all relations of the given type will be removedrelationDescriptor
- descriptorValidationResult
Copyright © 2003–2020 Atlassian. All rights reserved.