| Modifier and Type | Method and Description |
|---|---|
RelationInstance |
RelationInstanceModelFactory.buildFrom(RelatableEntity sourceEntity,
String relationName,
RelatableEntity targetEntity,
Expansions expansions) |
RelationInstance |
RelationInstanceFactory.buildFrom(RelatableEntity sourceEntity,
String relationName,
RelatableEntity targetEntity,
Expansions expansions)
Should only be used for likes and favourites, doesn't provide the relationData
|
RelationInstance |
RelationInstanceFactory.buildFrom(RelationEntity hibernateObject,
Expansions expansions) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.create(RelationInstance<S,T> relationInstance) |
| Modifier and Type | Method and Description |
|---|---|
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.create(RelationInstance<S,T> relationInstance) |
<S extends Relatable,T extends Relatable> |
RelationServiceImpl.delete(RelationInstance<S,T> relationInstance) |
| Modifier and Type | Method and Description |
|---|---|
RelationInstance<S,T> |
RelationInstance.RelationInstanceBuilder.build() |
| Modifier and Type | Method and Description |
|---|---|
<S extends Relatable,T extends Relatable> |
RelationService.create(RelationInstance<S,T> relationInstance)
Creates a directed relation between two relatable entities.
|
| Modifier and Type | Method and Description |
|---|---|
<S extends Relatable,T extends Relatable> |
RelationService.create(RelationInstance<S,T> relationInstance)
Creates a directed relation between two relatable entities.
|
<S extends Relatable,T extends Relatable> |
RelationService.delete(RelationInstance<S,T> relationInstance)
Remove a relation if it exists between a source and a target relatable entity
|
| Modifier and Type | Method and Description |
|---|---|
RestEntity<RelationInstance<Relatable,Relatable>> |
DefaultApiRestEntityFactory.buildRestEntityFrom(RelationInstance<Relatable,Relatable> instance,
Expansions expansions) |
RestEntity<RelationInstance<Relatable,Relatable>> |
ApiRestEntityFactory.buildRestEntityFrom(RelationInstance<Relatable,Relatable> instance,
Expansions expansions) |
| Modifier and Type | Method and Description |
|---|---|
RestEntity<RelationInstance<Relatable,Relatable>> |
DefaultApiRestEntityFactory.buildRestEntityFrom(RelationInstance<Relatable,Relatable> instance,
Expansions expansions) |
RestEntity<RelationInstance<Relatable,Relatable>> |
ApiRestEntityFactory.buildRestEntityFrom(RelationInstance<Relatable,Relatable> instance,
Expansions expansions) |
| Modifier and Type | Method and Description |
|---|---|
RelationInstance |
RelationEvent.getRelation() |
| Constructor and Description |
|---|
RelationCreatedEvent(Object src,
RelationInstance relationInstance) |
RelationDeletedEvent(Object src,
RelationInstance relationInstance) |
RelationEvent(Object src,
RelationInstance relationInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
RelationManager.publishRelationCreatedEvent(RelationInstance obj)
Publish
RelationCreatedEvent for the RelationInstance object. |
void |
DefaultRelationManager.publishRelationCreatedEvent(RelationInstance obj) |
void |
RelationManager.publishRelationDeletedEvent(RelationInstance obj)
Publish
RelationDeletedEvent for the RelationInstance object. |
void |
DefaultRelationManager.publishRelationDeletedEvent(RelationInstance obj) |
| Constructor and Description |
|---|
DefaultRelationManager(Content2ContentHibernateRelationDao content2ContentHibernateRelationDao,
User2ContentHibernateRelationDao user2ContentHibernateRelationDao,
User2UserHibernateRelationDao user2UserHibernateRelationDao,
com.atlassian.event.api.EventPublisher eventPublisher,
ModelFactory<RelationEntity,RelationInstance> relationInstanceFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected List<RelationInstance<User,Content>> |
HeartbeatAction.getContentRelation(RelationDescriptor relationDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
RelationInstance |
ExperimentalRelationResource.create(String sourceType,
String sourceKey,
String relationName,
String targetType,
String targetKey,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion)
Add a relationship between two user, space, or content entities.
|
RelationInstance |
ExperimentalRelationResource.isRelated(String sourceType,
String sourceKey,
String relationName,
String targetType,
String targetKey,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion,
String expand)
Determines whether a relationship exists between two user, space or content entities.
|
RelationInstance |
ExperimentalRelationResource.isRelatedLegacy(String sourceType,
String sourceKey,
String relationName,
String targetType,
String targetKey,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion) |
| Modifier and Type | Method and Description |
|---|---|
PageResponse<RelationInstance<Relatable,Relatable>> |
ExperimentalRelationResource.findAllRelations(String relationName,
String sourceType,
String targetType,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Find relation instances to the given target class that have a relation with the relation name from the source type
|
PageResponse<RelationInstance<Relatable,Relatable>> |
ExperimentalRelationResource.findSourcesForTarget(String relationName,
String targetType,
String targetKey,
String sourceType,
ContentStatus targetStatus,
Integer targetVersion,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Find relation instances to the given target entity that have a relation with the relation name from the source type
|
PageResponse<RelationInstance<Relatable,Relatable>> |
ExperimentalRelationResource.findTargetFromSource(String sourceType,
String sourceKey,
String relationName,
String targetType,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Find relation instances of the given target type that have a relation with the relation name from the source entity
|
| Modifier and Type | Method and Description |
|---|---|
RelationInstance<Relatable,Relatable> |
RelationResource.create(String sourceType,
String sourceKey,
String relationName,
String targetType,
String targetKey,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion)
Add a relationship between two user, space, or content entities.
|
RelationInstance<Relatable,Relatable> |
RelationResource.isRelated(String sourceType,
String sourceKey,
String relationName,
String targetType,
String targetKey,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion,
String expand)
Determines whether a relationship exists between two user, space or content entities.
|
| Modifier and Type | Method and Description |
|---|---|
PageResponse<RelationInstance<Relatable,Relatable>> |
RelationResource.findSourcesForTarget(String relationName,
String targetType,
String targetKey,
String sourceType,
ContentStatus targetStatus,
Integer targetVersion,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Find relation instances to the given target entity that have a relation with the relation name from the source type
|
PageResponse<RelationInstance<Relatable,Relatable>> |
RelationResource.findTargetFromSource(String sourceType,
String sourceKey,
String relationName,
String targetType,
ContentStatus sourceStatus,
ContentStatus targetStatus,
Integer sourceVersion,
Integer targetVersion,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Find relation instances of the given target type that have a relation with the relation name from the source entity
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<PageResponse<RelationInstance<S,T>>> |
RemoteRelationService.RemoteRelationFetcher.fetchMany(PageRequest request) |
| Modifier and Type | Method and Description |
|---|---|
<S extends Relatable,T extends Relatable> |
RemoteRelationService.create(RelationInstance<S,T> relationInstance)
Creates a directed relation between two relatable entities.
|
<S extends Relatable,T extends Relatable> |
RemoteRelationService.delete(RelationInstance<S,T> relationInstance)
Remove a relation if it exists between a source and a target relatable entity
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<PageResponse<RelationInstance<S,T>>> |
RemoteRelationServiceImpl.RemoteRelationFinderImpl.fetchMany(PageRequest request) |
PageResponse<RelationInstance<S,T>> |
RemoteRelationServiceImpl.RemoteRelatableFinderImpl.fetchMany(PageRequest request) |
com.atlassian.util.concurrent.Promise<PageResponse<RelationInstance<S,T>>> |
RemoteRelationServiceImpl.RemoteRelatableFinderImpl.fetchMany(PageRequest request,
Expansion... expansions) |
| Modifier and Type | Method and Description |
|---|---|
<S extends Relatable,T extends Relatable> |
RemoteRelationServiceImpl.create(RelationInstance<S,T> relationInstance) |
<S extends Relatable,T extends Relatable> |
RemoteRelationServiceImpl.delete(RelationInstance<S,T> relationInstance) |
Copyright © 2003–2017 Atlassian. All rights reserved.