public class IssueOperationsBarUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT_LINK_ID |
static String |
EDIT_LINK_ID |
Constructor and Description |
---|
IssueOperationsBarUtil(JiraHelper helper,
ApplicationUser user,
SimpleLinkManager simpleLinkManager,
ApplicationProperties applicationProperties,
IssueManager issueManager,
PermissionManager permissionManager,
I18nHelper i18n) |
Modifier and Type | Method and Description |
---|---|
List<SimpleLinkSection> |
getGroups()
Gets all the groups for the Ops bar - Operations, Transitions, ...
|
String |
getLabelForLink(SimpleLink link)
Get a display label for a link Shows a maximum of 25 characters.
|
List<SimpleLinkSection> |
getNonEmptySectionsForGroup(SimpleLinkSection group)
Get a list of sections that contain links that have not be promoted.
|
List<SimpleLink> |
getNonPromotedLinksForSection(SimpleLinkSection group,
SimpleLinkSection section)
Get all the links for a section that were not promoted.
|
List<SimpleLink> |
getPrimaryOperationLinks(Issue issue) |
List<SimpleLink> |
getPromotedLinks(SimpleLinkSection group)
Gets all the links that have been promoted out of the sub-sections, into the top level.
|
String |
getTitleForLink(SimpleLink link)
Get the title for the link.
|
boolean |
hasLinks(SimpleLinkSection group)
Tells the caller if the passed group has any links (promoted or otherwise) to display.
|
boolean |
showMoreLinkforGroup(SimpleLinkSection group)
Whether we need to display the more link for a group.
|
public static final String EDIT_LINK_ID
public static final String COMMENT_LINK_ID
public IssueOperationsBarUtil(JiraHelper helper, ApplicationUser user, SimpleLinkManager simpleLinkManager, ApplicationProperties applicationProperties, IssueManager issueManager, PermissionManager permissionManager, I18nHelper i18n)
public List<SimpleLinkSection> getGroups()
public boolean hasLinks(SimpleLinkSection group)
group
- the group to check.public List<SimpleLink> getPromotedLinks(SimpleLinkSection group)
group
- The group for which these links belong. E.g. opbsbar-operationspublic List<SimpleLink> getNonPromotedLinksForSection(SimpleLinkSection group, SimpleLinkSection section)
group
- The group which section belongs to.section
- The section to get the links for.public List<SimpleLinkSection> getNonEmptySectionsForGroup(SimpleLinkSection group)
group
- The group to get the sections for.public boolean showMoreLinkforGroup(SimpleLinkSection group)
group
- The group to get the label for.public String getLabelForLink(SimpleLink link)
link
- the link to get the label for.public String getTitleForLink(SimpleLink link)
link
- The link to get the title for.public List<SimpleLink> getPrimaryOperationLinks(Issue issue)
Copyright © 2002-2015 Atlassian. All Rights Reserved.