com.atlassian.applinks.api.EntityLinkService |
Known Indirect Subclasses |
Provides methods for retrieving entities from linked applications that are associated with local entities (e.g. JIRA projects, Confluence spaces, etc.).
The Object
typed first parameters of this interface's methods are Strings and/or domain objects that
represent project entities from the API of each Atlassian host application. This is specific to each application
that the Unified Application Links plugin is deployed to.
For example, in FishEye/Crucible:
Is equivalent to:RepositoryHandle repHandle = repositoryManager.getRepository("my-source");Iterable
<EntityLink
> entityLinkService.getEntityLinks(Object)
(repHandle);
Both will return anRepsoitoryData repData = repositoryService.getRepository("my-source");Iterable
<EntityLink
> entityLinkService.getEntityLinks(Object)
(repData);
Iterable
of EntityLink
s that are linked from the "my-source" FishEye repository.
Whereas:
will return anProject project = projectManager.getProjectByKey("CR-MYSRC");Iterable
<EntityLink
> entityLinkService.getEntityLinks(Object)
(project);
Iterable
of EntityLink
s that are linked from the CR-MYSRC FishEye/Crucible project.
In JIRA and Confluence, where there is only one type of entity which can be linked, you can instead simply provide a String identifier for the entity, for example:
will return anIterable
<EntityLink
> entityLinkService.getEntityLinks(Object)
("JRA");
Iterable
of EntityLink
s that are linked from the JRA JIRA project.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
EntityLink s that are visible to the context user. | |||||||||||
Returns the
EntityLink s that are visible to the context user. | |||||||||||
There are exactly zero or one primary
EntityLink s of each type configured for each local entity. |
Returns the EntityLink
s that are visible to the context user.
entity | an application specific entity domain object, see class javadoc for more details |
---|---|
type | the type of EntityLink s to retrieve (e.g. fisheye-repository) |
Iterable
containing EntityLink
s associated with the specified entity, of the specified
type and are visible to the context user
Returns the EntityLink
s that are visible to the context user.
entity | an application specific entity domain object, see class javadoc for more details |
---|
Iterable
containing EntityLink
s associated with the specified entity and are visible
to the context user
There are exactly zero or one primary EntityLink
s of each type configured for each local entity.
If any links of the specified type exist, exactly one of them will be primary.
entity | an application specific entity domain object, see class javadoc for more details |
---|---|
type | the type of primary EntityLink to retrieve (e.g. fisheye-repository) |