|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.util.IssueOperationsBarUtil
public class IssueOperationsBarUtil
Utility class to help with the creation of the View Issues Ops Bar.
Does a lot of caching (only request scope) as we need constantly need to check the sizes of different lists and it is hard to keep track of a lot of these things in the view layer. Could possibly refactor this in the future to make it more generic to make any Ops bar for any page. E.g Issue Nav
Constructor Summary | |
---|---|
IssueOperationsBarUtil(JiraHelper helper,
com.atlassian.crowd.embedded.api.User user,
SimpleLinkManager simpleLinkManager,
ApplicationProperties applicationProperties)
|
Method Summary | |
---|---|
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> |
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 |
showMoreLinkforGroup(SimpleLinkSection group)
Whether we need to display the more link for a group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IssueOperationsBarUtil(JiraHelper helper, com.atlassian.crowd.embedded.api.User user, SimpleLinkManager simpleLinkManager, ApplicationProperties applicationProperties)
Method Detail |
---|
public List<SimpleLinkSection> getGroups()
public List<SimpleLink> getPromotedLinks(SimpleLinkSection group)
group
- The group for which these links belong. E.g. opbsbar-operations
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |