com.atlassian.jira.association.NodeAssociationStore |
![]() |
Manages associations between different types of entities.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an association between two entities, given a particular association type.
| |||||||||||
Create an association between two entities, given a particular association type.
| |||||||||||
Create an association between two entities, given a particular association type.
| |||||||||||
Operates on NodeAssociations - gets MANY sinks from ONE source
| |||||||||||
Operates on NodeAssociations - gets MANY sources from ONE sink
| |||||||||||
Removes the given association if it exists.
| |||||||||||
Remove all entity<->entity associations, given the sink.
| |||||||||||
Remove associations of the given type from the given source.
| |||||||||||
Remove all entity<->entity associations, given the source.
| |||||||||||
Swap all associations of a particular type from one sink to another.
| |||||||||||
Swaps all associations for a given list of entities (say move a list of unresolved issue entities to a new fix for version)
|
Create an association between two entities, given a particular association type.
If the association already exists - it will not be created.source | the source |
---|---|
sink | the sink |
associationType | the Association Type |
DataAccessException | If there is a DB Exception. |
---|
Create an association between two entities, given a particular association type.
If the association already exists - it will not be created.Create an association between two entities, given a particular association type.
If the association already exists - it will not be created. NOTE: this is a convenience method that should only be used when you are certain of the related entity id's. This method does not verify the integrity of the links it creates.DataAccessException | If there is a DB Exception. |
---|
DataAccessException |
---|
Operates on NodeAssociations - gets MANY sinks from ONE source
source | The source node to find all associated sink nodes for. |
---|---|
sinkEntityName | The sink Entity type. |
associationType | the association type |
DataAccessException | If there is a DB Exception. |
---|
Operates on NodeAssociations - gets MANY sources from ONE sink
DataAccessException | If there is a DB Exception. |
---|
Removes the given association if it exists.
type | NodeAssocation Type |
---|---|
sourceNodeId | The Source Node |
sinkNodeId | The Sink Node (destination node). |
DataAccessException |
---|
Remove all entity<->entity associations, given the sink.
sink | the sink |
---|
DataAccessException | If there is a DB Exception. |
---|
Remove associations of the given type from the given source.
nodeAssocationType | the NodeAssocationType |
---|---|
sourceId | the ID of the source |
Remove all entity<->entity associations, given the source.
source | the Source |
---|
DataAccessException | If there is a DB Exception. |
---|
Swap all associations of a particular type from one sink to another.
Used in ComponentDelete and VersionDelete.sourceEntityType | the Source Entity Type |
---|---|
associationType | the Association Type |
oldSink | the From sink |
newSink | the To sink |
DataAccessException | If there is a DB Exception. |
---|
Swaps all associations for a given list of entities (say move a list of unresolved issue entities to a new fix for version)
entities | the entities |
---|---|
associationType | the Association Type |
fromSink | the From sink |
toSink | the To sink |
DataAccessException | If there is a DB Exception. |
---|