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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EditableTabSection
buildSection
(com.atlassian.jira.issue.Issue issue, com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor webPanel, Map<String, Object> rootPanelContext) protected List
<EditableTabSection> buildSections
(com.atlassian.jira.issue.Issue issue, List<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor> webPanels, Map<String, Object> rootPanelContext) createEntry
(com.atlassian.jira.issue.Issue issue, Map<String, Object> rootContextMap) This populates the entry model for every tab in editable Details View of the requested issue in given contextprotected abstract DetailsViewTab
Returns tab which is being populated by the factoryprotected List
<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor> getDisplayableWebPanelsByTab
(DetailsViewTab detailsViewTab, Map<String, Object> rootContextMap) protected StatisticsField
getEstimateField
(Map<String, Object> rootContextMap) protected I18n2
getI18n()
protected com.atlassian.jira.user.ApplicationUser
getLoggedInUser
(Map<String, Object> rootContextMap) protected RapidView
getRapidView
(Map<String, Object> rootContextMap) protected Long
getRapidViewId
(Map<String, Object> rootContextMap) getTab()
This returns the tab whose model is being populated by this factory.protected StatisticsField
getTrackingField
(Map<String, Object> rootContextMap) protected abstract T
Initializes a corresponding instance ofEditableTabEntry
per tab.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.
-
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 interfaceEditableTabEntryFactory
- Parameters:
issue
-rootContextMap
-- Returns:
-
getTab
Description copied from interface:EditableTabEntryFactory
This returns the tab whose model is being populated by this factory.- Specified by:
getTab
in interfaceEditableTabEntryFactory
- Returns:
DetailsViewTab
-
newTabEntry
Initializes a corresponding instance ofEditableTabEntry
per tab.- Returns:
- a new instance of
EditableTabEntry
-
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
-
getRapidViewId
-
getRapidView
-
getTrackingField
-
getEstimateField
-
getI18n
-
buildSections
-
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)
-