Modifier and Type | Class and Description |
---|---|
class |
AuthenticatedUserRelationDescriptor<S extends User,T extends Relatable>
A
ValidatingRelationDescriptor which checks that the User for which the relation is being created is
also the currently authenticated user. |
class |
DefaultValidatingRelationDescriptor<S extends Relatable,T extends Relatable> |
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.findSources(T target,
RelationDescriptor<S,T> relationDescriptor) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.findTargets(S source,
RelationDescriptor<S,T> relationDescriptor) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.isRelated(S source,
RelationDescriptor<S,T> relationDescriptor,
T target) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.removeAllRelationsFromEntityWithType(RelationDescriptor<S,T> relationDescriptor,
Relatable relatable) |
Constructor and Description |
---|
AuthenticatedUserRelationDescriptor(RelationDescriptor relationDescriptor) |
DefaultValidatingRelationDescriptor(RelationDescriptor relationDescriptor) |
Modifier and Type | Interface and Description |
---|---|
interface |
ValidatingRelationDescriptor<S extends Relatable,T extends Relatable>
A
RelationDescriptor which provides a method to perform validation on descriptor operations. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRelationDescriptor<S extends Relatable,T extends Relatable>
Relation descriptor, which should be used as a base class for all custom relation descriptors.
|
class |
CollaboratorRelationDescriptor |
class |
FavouriteRelationDescriptor<T extends Relatable>
The built-in relationship type for favourites.
|
class |
LikeRelationDescriptor<T extends Relatable> |
class |
NamedRelationDescriptor<S extends Relatable,T extends Relatable>
Simple implementation of
RelationDescriptor , which allows to create simple named relation descriptors. |
class |
TouchedRelationDescriptor
Represents that a user has modified content, regardless of whether that change has been reverted.
|
Modifier and Type | Method and Description |
---|---|
RelationDescriptor<S,T> |
RelationInstance.getRelationDescriptor() |
static <S extends Relatable,T extends Relatable> |
RelationDescriptors.lookupBuiltinOrCreate(Class<S> sourceClass,
String name,
Class<T> targetClass)
Get one of the built-in RelationDescriptor objects (for example FavouriteRelationDescriptor).
|
Modifier and Type | Method and Description |
---|---|
static <S extends Relatable,T extends Relatable> |
RelationInstance.builder(S source,
RelationDescriptor<S,T> relationDescriptor,
T target) |
static <S extends Relatable,T extends Relatable> |
RelationDescriptors.canRelate(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Deprecated.
since 5.11. Use
ValidatingRelationDescriptor.canRelate(Relatable, Relatable) instead |
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RelationService.findSources(T target,
RelationDescriptor<S,T> relationDescriptor)
Create a finder to find sources of a relation.
|
<S extends Relatable,T extends Relatable> |
RelationService.findTargets(S source,
RelationDescriptor<S,T> relationDescriptor)
Create a finder to find targets of a relation.
|
<S extends Relatable,T extends Relatable> |
RelationService.isRelated(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Determine whether a given source and target are related by the given relation
|
<S extends Relatable,T extends Relatable> |
RelationService.removeAllRelationsFromEntityWithType(RelationDescriptor<S,T> relationDescriptor,
Relatable relatable)
Remove all relations of the given type where the given entity participates
|
<S extends Relatable,T extends Relatable> |
RelationService.Validator.validateCreate(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate create operation
|
<S extends Relatable,T extends Relatable> |
RelationService.Validator.validateDelete(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate delete operation
|
<S extends Relatable,T extends Relatable> |
RelationService.Validator.validateDeleteAllWithType(Relatable relatable,
RelationDescriptor<S,T> relationDescriptor)
Validate the delete all operation
|
<S extends Relatable,T extends Relatable> |
RelationService.Validator.validateFetch(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Validate fetch operation to check whether a user can view the specifed relation
|
Modifier and Type | Method and Description |
---|---|
RelationEntity |
RelationManager.addRelation(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor)
Create a new relation between 2 entities.
|
RelationEntity |
DefaultRelationManager.addRelation(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor) |
static RelationshipTypeEnum |
RelationshipTypeEnum.getRelationshipType(RelationDescriptor relationDescriptor)
Returns type of relationship based on relation descriptor.
|
static RelationshipTypeEnum |
RelationshipTypeEnum.getRelationshipType(RelationDescriptor relationDescriptor,
boolean throwOnError)
Returns type of relationship based on relation descriptor.
|
boolean |
RelationManager.isRelated(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor)
Checks if given entities are related.
|
boolean |
DefaultRelationManager.isRelated(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor) |
void |
RelationManager.moveRelationsToContent(RelatableEntity fromRelatableEntity,
RelatableEntity toRelatableEntity,
RelationDescriptor descriptor)
Moves all the relations of the specified type from one entity to another.
|
void |
DefaultRelationManager.moveRelationsToContent(RelatableEntity fromRelatableEntity,
RelatableEntity toRelatableEntity,
RelationDescriptor descriptor) |
int |
RelationManager.removeAllRelationsFromEntityWithType(RelationDescriptor relationDescriptor,
RelatableEntity relatableEntity)
This method remove all relations of the given type where the given entity participates
|
int |
DefaultRelationManager.removeAllRelationsFromEntityWithType(RelationDescriptor relationDescriptor,
RelatableEntity relatableEntity) |
void |
RelationManager.removeRelation(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor)
Delete relation.
|
void |
DefaultRelationManager.removeRelation(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor) |
static ValidationResult |
RelationUtils.validateAgainstApiModel(RelatableEntity source,
RelatableEntity target,
RelationDescriptor relationDescriptor)
Helper method, which can be used to validate relation based on input parameters.
|
Modifier and Type | Method and Description |
---|---|
RelationEntity<S,T> |
RelationDao.createRelationEntity(S source,
T target,
RelationDescriptor relationDescriptor)
Create new relation.
|
RelationEntity<S,T> |
RelationDao.getRelationEntity(S source,
T target,
RelationDescriptor relationDescriptor)
Get relation for given content, type and name.
|
int |
RelationDao.getRelationsCount(S source,
T target,
RelationDescriptor relationDescriptor)
Get total number of relations for given content, type and name.
|
Modifier and Type | Method and Description |
---|---|
RelationDescriptor |
RelationQuery.getRelationDescriptor() |
Modifier and Type | Method and Description |
---|---|
static <E extends RelatableEntity> |
RelationQuery.create(E entity,
RelationDescriptor relationDescriptor) |
RelationQuery.Builder |
RelationQuery.Builder.relation(RelationDescriptor relationDescriptor) |
Constructor and Description |
---|
Builder(R entity,
RelationDescriptor relationDescriptor) |
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RemoteRelationService.isRelated(S source,
RelationDescriptor<S,T> relationDescriptor,
T target)
Determine whether a given source and target are related by the given relation
|
Modifier and Type | Method and Description |
---|---|
<S extends Relatable,T extends Relatable> |
RemoteRelationServiceImpl.isRelated(S source,
RelationDescriptor<S,T> relationDescriptor,
T target) |
Copyright © 2003–2017 Atlassian. All rights reserved.