com.pyxis.greenhopper.jira.configurations
Class ProjectConfiguration

java.lang.Object
  extended by com.pyxis.greenhopper.jira.configurations.AbstractPersisted
      extended by com.pyxis.greenhopper.jira.configurations.AbstractConfiguration
          extended by com.pyxis.greenhopper.jira.configurations.ProjectConfiguration
All Implemented Interfaces:
Configuration, Persisted

public class ProjectConfiguration
extends AbstractConfiguration


Field Summary
static java.lang.String BURNDOWN_END_DATE
           
static java.lang.String BURNDOWN_START_DATE
           
 
Fields inherited from class com.pyxis.greenhopper.jira.configurations.AbstractConfiguration
log
 
Fields inherited from class com.pyxis.greenhopper.jira.configurations.AbstractPersisted
i18n
 
Fields inherited from interface com.pyxis.greenhopper.jira.configurations.Configuration
ALIAS, AUTO_ASSIGN, BASE_CONFIGURATION, CARD_BG_COLORED, CARD_COLORS, CARD_CREATION, CONFIGURATION, DONE, GREENHOPPER_ENTITY_NAME, IN_PROGRESS, JIRA_IFRAME, LINK_TYPE, LIST_ALT, NWDAYS, PERMISSION_SCHEDULE, TO_DO, USE_AGGREGATION
 
Fields inherited from interface com.pyxis.greenhopper.jira.configurations.Persisted
CONFIGURATION_ID, CONFIGURATION_NAME
 
Constructor Summary
ProjectConfiguration(com.atlassian.jira.project.Project project, IssueFieldManager issueFieldManager)
           
 
Method Summary
 void addWatchedField(java.lang.String boardType, java.lang.String fieldId, IssueFieldManager issueFieldManager)
           
 void changeBaseTemplate(java.lang.String baseTemplate)
           
 java.util.Set<IssueField> getAllAvailableFieldsFor(java.lang.String boardType, java.lang.String group, IssueFieldManager issueFieldManager)
           
 java.util.Set<com.atlassian.jira.issue.customfields.option.Option> getAllAvailableFlagValues(CustomIssueField field)
           
 java.util.Collection<java.lang.String> getAllIssueTypeIds()
           
 java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getAllIssueTypes()
           
 java.util.Map<com.atlassian.jira.issue.status.Status,java.util.List<com.atlassian.jira.workflow.JiraWorkflow>> getAllWorkflowStatuses()
           
protected  java.lang.String getDBLayoutKey(java.lang.String layoutType, java.lang.String position)
           
 Configuration getDefaultConfiguration()
           
 java.lang.Long getDefaultVersionId()
           
protected  long getEntityId()
           
 Configuration getFallBackConfiguration()
           
 com.atlassian.jira.project.Project getProject()
           
 java.lang.String getPropertyKey(java.lang.String name)
           
 java.util.Set<IssueField> getSortedFields(IssueFieldManager issueFieldManager)
           
 java.lang.String getUniqueIdentifier()
           
 java.util.Date getVersionEndDate(com.atlassian.jira.project.version.Version version)
           
 java.util.Date getVersionStartDate(com.atlassian.jira.project.version.Version version)
           
 java.util.Set<WatchedField> getWatchedFieldsFor(com.atlassian.jira.project.Project project, IssueFieldManager issueFieldManager)
           
 java.util.Set<WatchedField> getWatchedFieldsFor(java.lang.String boardType, IssueFieldManager issueFieldManager)
           
 boolean isHidden(IssueFieldManager issueFieldManager, java.lang.String issueTypeId, IssueField field)
           
 boolean isSubtaskType(java.lang.String typeId)
           
 void setVersionEndDate(com.atlassian.jira.project.version.Version version, java.util.Date endDate)
           
 void setVersionStartDate(com.atlassian.jira.project.version.Version version, java.util.Date startDate)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.configurations.AbstractConfiguration
addNonWorkingDay, addProject, allowCardCreation, getAllLinks, getCanRankPermission, getCanSchedulePermission, getCardColor, getCardColors, getConfigNonWorkingDays, getConfigNonWorkingDays2, getCornerFieldIds, getFlagField, getLayout, getLinkType, getName, getNonWorkingDays, getNonWorkingDays2, getRankingFields, getStoredField, getStoredFields, getTaskBoardConfiguration, isAutoAssignOn, isCardBgColored, isEditable, isListAlt, isPermissionScheduled, removeCorner, removeLayout, removeNonWorkingDay, removeStoredField, removeWatchedField, setAllowCardCreation, setAutoAssign, setCardColor, setCornerField, setDefaultCardColor, setFlagField, setLayout, setLinkType, setListAlt, setPermissionScheduled, setUseAggregation, setUseJiraIFrame, storeField, toggleCardBgColored, useAggregation, useJiraIFrame, validate
 
Methods inherited from class com.pyxis.greenhopper.jira.configurations.AbstractPersisted
createAndPersistField, delete, getData, getDataStorage, getDBPrefix, getGreenHopperService, getId, loadFromDatabase, save, setName, validateName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.jira.configurations.Persisted
delete, getData, getId, save, setName, validateName
 

Field Detail

BURNDOWN_START_DATE

public static final java.lang.String BURNDOWN_START_DATE
See Also:
Constant Field Values

BURNDOWN_END_DATE

public static final java.lang.String BURNDOWN_END_DATE
See Also:
Constant Field Values
Constructor Detail

ProjectConfiguration

public ProjectConfiguration(com.atlassian.jira.project.Project project,
                            IssueFieldManager issueFieldManager)
Method Detail

getDefaultVersionId

public java.lang.Long getDefaultVersionId()

getProject

public com.atlassian.jira.project.Project getProject()

getFallBackConfiguration

public Configuration getFallBackConfiguration()

getDefaultConfiguration

public Configuration getDefaultConfiguration()

changeBaseTemplate

public void changeBaseTemplate(java.lang.String baseTemplate)

getAllIssueTypes

public java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getAllIssueTypes()

getAllIssueTypeIds

public java.util.Collection<java.lang.String> getAllIssueTypeIds()

isSubtaskType

public boolean isSubtaskType(java.lang.String typeId)

getVersionStartDate

public java.util.Date getVersionStartDate(com.atlassian.jira.project.version.Version version)

setVersionStartDate

public void setVersionStartDate(com.atlassian.jira.project.version.Version version,
                                java.util.Date startDate)

getVersionEndDate

public java.util.Date getVersionEndDate(com.atlassian.jira.project.version.Version version)

setVersionEndDate

public void setVersionEndDate(com.atlassian.jira.project.version.Version version,
                              java.util.Date endDate)

getWatchedFieldsFor

public java.util.Set<WatchedField> getWatchedFieldsFor(java.lang.String boardType,
                                                       IssueFieldManager issueFieldManager)

getWatchedFieldsFor

public java.util.Set<WatchedField> getWatchedFieldsFor(com.atlassian.jira.project.Project project,
                                                       IssueFieldManager issueFieldManager)

addWatchedField

public void addWatchedField(java.lang.String boardType,
                            java.lang.String fieldId,
                            IssueFieldManager issueFieldManager)
                     throws GreenHopperException
Specified by:
addWatchedField in interface Configuration
Overrides:
addWatchedField in class AbstractConfiguration
Throws:
GreenHopperException

getPropertyKey

public java.lang.String getPropertyKey(java.lang.String name)
Specified by:
getPropertyKey in interface Persisted
Overrides:
getPropertyKey in class AbstractPersisted

getAllAvailableFlagValues

public java.util.Set<com.atlassian.jira.issue.customfields.option.Option> getAllAvailableFlagValues(CustomIssueField field)

getAllAvailableFieldsFor

public java.util.Set<IssueField> getAllAvailableFieldsFor(java.lang.String boardType,
                                                          java.lang.String group,
                                                          IssueFieldManager issueFieldManager)

getAllWorkflowStatuses

public java.util.Map<com.atlassian.jira.issue.status.Status,java.util.List<com.atlassian.jira.workflow.JiraWorkflow>> getAllWorkflowStatuses()
Specified by:
getAllWorkflowStatuses in interface Configuration
Overrides:
getAllWorkflowStatuses in class AbstractConfiguration

getSortedFields

public java.util.Set<IssueField> getSortedFields(IssueFieldManager issueFieldManager)
Specified by:
getSortedFields in interface Configuration
Overrides:
getSortedFields in class AbstractConfiguration

getUniqueIdentifier

public java.lang.String getUniqueIdentifier()
Specified by:
getUniqueIdentifier in interface Configuration
Overrides:
getUniqueIdentifier in class AbstractConfiguration

isHidden

public boolean isHidden(IssueFieldManager issueFieldManager,
                        java.lang.String issueTypeId,
                        IssueField field)
Specified by:
isHidden in interface Configuration
Overrides:
isHidden in class AbstractConfiguration

getEntityId

protected long getEntityId()
Specified by:
getEntityId in class AbstractPersisted

getDBLayoutKey

protected java.lang.String getDBLayoutKey(java.lang.String layoutType,
                                          java.lang.String position)
Specified by:
getDBLayoutKey in class AbstractConfiguration


Copyright © 2007-2012 Atlassian. All Rights Reserved.