|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicSpi public interface IssueLinkRenderer
Defines an issue link renderer to customise how issue links appear.
Method Summary | |
---|---|
Map<String,Object> |
getFinalContext(RemoteIssueLink remoteIssueLink,
Map<String,Object> context)
Returns the context used to render the final HTML. |
Map<String,Object> |
getInitialContext(RemoteIssueLink remoteIssueLink,
Map<String,Object> context)
Returns the context used by the template to render the initial HTML. |
boolean |
requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
Returns true if an AJAX call is required to retrieve the final HTML. |
boolean |
shouldDisplay(RemoteIssueLink remoteIssueLink)
Returns true if the remote issue link should be displayed. |
Method Detail |
---|
Map<String,Object> getInitialContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
getFinalContext(RemoteIssueLink, Map)
for that purpose.
The resulting HTML will be injected as follows:
<dl class="links-list">
<dt>Relationship Text</dt>
<!-- ... Other Issue Links ... -->
<dd id="uniqueHtmlElementId" class="remote-link">
<div class="link-content">
<!-- ISSUE LINK RENDERER CONTENT HERE -->
</div>
<div class="delete-link" id="delete_uniqueHtmlElementId">
<a class="icon icon-delete" title="Delete Link" id="delete-link_uniqueHtmlElementId" href="delete_remote_issue_link_url"><span>Delete Link</span></a>
</div>
</dd>
<!-- ... Other Issue Links ... -->
</dl>
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during
rendering.
Map<String,Object> getFinalContext(RemoteIssueLink remoteIssueLink, Map<String,Object> context)
requiresAsyncLoading(RemoteIssueLink)
returns true.
The resulting HTML will be injected as follows:
<dl class="links-list">
<dt>Relationship Text</dt>
<!-- ... Other Issue Links ... -->
<dd id="uniqueHtmlElementId" class="remote-link">
<div class="link-content">
<!-- ISSUE LINK RENDERER CONTENT HERE -->
</div>
<div class="delete-link" id="delete_uniqueHtmlElementId">
<a class="icon icon-delete" title="Delete Link" id="delete-link_uniqueHtmlElementId" href="delete_remote_issue_link_url"><span>Delete Link</span></a>
</div>
</dd>
<!-- ... Other Issue Links ... -->
</dl>
remoteIssueLink
- remote issue linkcontext
- the contextual information that can be used during rendering.
boolean requiresAsyncLoading(RemoteIssueLink remoteIssueLink)
getFinalContext(com.atlassian.jira.issue.link.RemoteIssueLink, java.util.Map)
will be
called to retrieve the final HTML for the issue link.
remoteIssueLink
- remote issue link
boolean shouldDisplay(RemoteIssueLink remoteIssueLink)
remoteIssueLink
- remote issue link
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |