Class BaseEditableTabEntryFactory<T extends EditableTabEntry>

java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.tabs.editable.factory.BaseEditableTabEntryFactory<T>
All Implemented Interfaces:
EditableTabEntryFactory
Direct Known Subclasses:
EditableAttachmentTabEntryFactory, EditableCommentTabEntryFactory, EditableDescriptionTabEntryFactory, EditableDetailsTabEntryFactory, EditableHeaderTabEntryFactory, EditableIssuesInEpicTabEntryFactory, EditableSubtasksTabEntryFactory, EditableThirdPartyTabEntryFactory

public abstract class BaseEditableTabEntryFactory<T extends EditableTabEntry> extends Object implements EditableTabEntryFactory
This provides base implementation for every implementation of EditableTabEntryFactory to produce EditableTabEntry for Editable Details View tabs.
See Also:
  • Constructor Details

    • BaseEditableTabEntryFactory

      public BaseEditableTabEntryFactory()
  • Method Details

    • createEntry

      public EditableTabEntry createEntry(com.atlassian.jira.issue.Issue issue, Map<String,Object> rootContextMap)
      Description copied from interface: EditableTabEntryFactory
      This populates the entry model for every tab in editable Details View of the requested issue in given context
      Specified by:
      createEntry in interface EditableTabEntryFactory
      Parameters:
      issue -
      rootContextMap -
      Returns:
    • getTab

      public DetailsViewTab getTab()
      Description copied from interface: EditableTabEntryFactory
      This returns the tab whose model is being populated by this factory.
      Specified by:
      getTab in interface EditableTabEntryFactory
      Returns:
      DetailsViewTab
    • newTabEntry

      protected abstract T newTabEntry()
      Initializes a corresponding instance of EditableTabEntry per tab.
      Returns:
      a new instance of EditableTabEntry
    • getCurrentTab

      protected abstract DetailsViewTab getCurrentTab()
      Returns tab which is being populated by the factory
      Returns:
      DetailsViewTab
    • populateTabParticularAttributes

      protected abstract void populateTabParticularAttributes(com.atlassian.jira.issue.Issue issue, T tabEntry, Map<String,Object> rootContextMap)
      Populates other attributes, which are specified for each tab, into the entry.
    • getLoggedInUser

      protected com.atlassian.jira.user.ApplicationUser getLoggedInUser(Map<String,Object> rootContextMap)
    • getRapidViewId

      protected Long getRapidViewId(Map<String,Object> rootContextMap)
    • getRapidView

      protected RapidView getRapidView(Map<String,Object> rootContextMap)
    • getTrackingField

      protected StatisticsField getTrackingField(Map<String,Object> rootContextMap)
    • getEstimateField

      protected StatisticsField getEstimateField(Map<String,Object> rootContextMap)
    • getI18n

      protected I18n2 getI18n()
    • buildSections

      protected List<EditableTabSection> buildSections(com.atlassian.jira.issue.Issue issue, List<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor> webPanels, Map<String,Object> rootPanelContext)
    • getDisplayableWebPanelsByTab

      protected List<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor> getDisplayableWebPanelsByTab(DetailsViewTab detailsViewTab, Map<String,Object> rootContextMap)
    • buildSection

      protected EditableTabSection buildSection(com.atlassian.jira.issue.Issue issue, com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor webPanel, Map<String,Object> rootPanelContext)