com.atlassian.applinks.spi.link.MutatingEntityLinkService |
Known Indirect Subclasses |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an
EntityLink from an entity in the local application to an entity in the remote application. | |||||||||||
Create an
EntityLink from an entity in the local application to an entity in the remote application, and
a reciprocal link from the entity in the remote application back to the local entity. | |||||||||||
Delete an
EntityLink from an entity in the local application to an entity in the remote application. | |||||||||||
Delete all
EntityLink s targeting entities in the application instance specified by the supplied
ApplicationLink | |||||||||||
Delete an
EntityLink from an entity in the local application to an entity in the remote application after
first deleting the reciprocal link from the entity in the remote application back to the local entity. | |||||||||||
Retrieve an existing
EntityLink that links the specified local entity to the specified remote entity, or
return null if no link matching linking the specified entities exists. | |||||||||||
Retrieves all configured entity links for a configured application link.
| |||||||||||
Retrieves all
EntityLink s from a local entity. | |||||||||||
Retrieves all
EntityLink s from a local entity, filtered by the target entity's EntityType . | |||||||||||
Make the specified
EntityLink the primary link of its EntityType for the specified local
entity |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.applinks.api.EntityLinkService
|
Create an EntityLink
from an entity in the local application to an entity in the remote application.
localKey | the key of a local entity to create a link from (JIRA project, Confluence space, etc.), for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType to create a link from |
entityLink | an EntityLink object initialised with the details of the target entity in the remote
application to link to. Use EntityLinkBuilderFactory to create the EntityLink object. |
EntityLink
objectCreate an EntityLink
from an entity in the local application to an entity in the remote application, and
a reciprocal link from the entity in the remote application back to the local entity. Note that the local
outgoing entity link will not be created if the link back from the remote application can not be established for
any reason.
localKey | the key of a local entity to create a link from (JIRA project, Confluence space, etc.), for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType to create a link from |
entityLink | an EntityLink object initialised with the details of the target entity in the remote
application to link to. Use EntityLinkBuilderFactory to create the EntityLink object. |
EntityLink
objectCredentialsRequiredException | if the currently logged in user does not have credentials stored for the authenticator configured for the remote application |
---|---|
ReciprocalActionException | if the reciprocal link could not be created back from the remote application |
Delete an EntityLink
from an entity in the local application to an entity in the remote application.
localKey | the key of a local entity to that is the source of the link to be deleted, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the link to be
deleted |
entityLink | an EntityLink representing the entity in the remote application that is the target of
the link. |
Delete all EntityLink
s targeting entities in the application instance specified by the supplied
ApplicationLink
link | an established ApplicationLink
|
---|
Delete an EntityLink
from an entity in the local application to an entity in the remote application after
first deleting the reciprocal link from the entity in the remote application back to the local entity. Note that
the local outgoing entity link will not be deleted if the link back from the remote application could not be
deleted for any reason.
localKey | the key of a local entity to that is the source of the link to be deleted, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the link to be
deleted |
entityLink | an EntityLink representing the entity in the remote application that is the target of
the link. |
CredentialsRequiredException | if the currently logged in user does not have credentials stored for the authenticator configured for the remote application |
---|---|
ReciprocalActionException | if the reciprocal link could not be deleted from the remote application |
Retrieve an existing EntityLink
that links the specified local entity to the specified remote entity, or
return null if no link matching linking the specified entities exists.
localKey | the key of a local entity to that is the source of the link to be retrieved, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the link to be
retrieved |
remoteKey | the key of the remote entity to that is the target of the link to be retrieved, for example "JRA", "CONF". |
remoteType | the Class of the remote entity EntityType that is the target of the link to be
retrieved |
applicationId | the ApplicationId of the application containing the entity that is the target of
the link to be retrieved |
EntityLink
if it exists, or null otherwise.
EntityLinkBuilderFactory
for creating EntityLink
s
Retrieves all configured entity links for a configured application link.
applicationLink | an established ApplicationLink , cannot be null. |
---|
EntityLink
s for this application.TypeNotInstalledException | if the application type is not installed |
---|
Retrieves all EntityLink
s from a local entity.
localKey | the key of a local entity to that is the source of the links to be retrieved, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the links to be |
Iterable
containing EntityLink
s associated with the specified entity
Retrieves all EntityLink
s from a local entity, filtered by the target entity's EntityType
.
localKey | the key of a local entity to that is the source of the links to be retrieved, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the links to be |
type | the Class of the remote entities EntityType to retrieve established
EntityLink s for |
Iterable
containing EntityLink
s associated with the specified entity, of the
specified type
localKey | the key of an entity local to this application, for which to retrieve a link for (e.g. JRA, CONF) |
---|---|
localType | the Class of the local entity EntityType that is the source of the link |
type | the type of EntityLink to retrieve (e.g. fisheye-repository) |
Make the specified EntityLink
the primary link of its EntityType
for the specified local
entity
localKey | the key of a local entity to that is the source of the link to be deleted, for example "JRA", "CONF". |
---|---|
localType | the Class of the local entity EntityType that is the source of the link to be
deleted |
entityLink | an EntityLink representing the entity in the remote application that is the target of
the link. |
EntityLink
, with its primary status updated