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) |
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 |
FavouriteRelationDescriptor<T extends Relatable>
The built-in relationship type for favourites.
|
class |
NamedRelationDescriptor<S extends Relatable,T extends Relatable>
Simple implementation of
RelationDescriptor , which allows to create simple named relation descriptors. |
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)
Returns
ValidationResult , which indicates if two given entities may
for a relation, described by a RelationDescriptor object. |
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.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
|
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.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 |
---|---|
RelationEntity<S,T> |
HibernateRelationDao.createRelationEntity(S source,
T target,
RelationDescriptor relationDescriptor) |
protected List<RelationEntity<S,T>> |
HibernateRelationDao.getRelationEntities(String queryName,
S source,
T target,
RelationDescriptor relationDescriptor) |
User2UserRelationEntity |
User2UserHibernateRelationDao.getRelationEntity(ConfluenceUser source,
ConfluenceUser target,
RelationDescriptor relationDescriptor) |
User2ContentRelationEntity |
User2ContentHibernateRelationDao.getRelationEntity(ConfluenceUser source,
ContentEntityObject target,
RelationDescriptor relationDescriptor) |
Content2ContentRelationEntity |
Content2ContentHibernateRelationDao.getRelationEntity(ContentEntityObject source,
ContentEntityObject target,
RelationDescriptor relationDescriptor) |
int |
User2UserHibernateRelationDao.getRelationsCount(ConfluenceUser source,
ConfluenceUser target,
RelationDescriptor relationDescriptor) |
int |
User2ContentHibernateRelationDao.getRelationsCount(ConfluenceUser source,
ContentEntityObject target,
RelationDescriptor relationDescriptor) |
int |
Content2ContentHibernateRelationDao.getRelationsCount(ContentEntityObject source,
ContentEntityObject target,
RelationDescriptor relationDescriptor) |
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–2016 Atlassian. All rights reserved.