com.pyxis.greenhopper.jira.configurations
Class AbstractDefaultConfiguration

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.AbstractDefaultConfiguration
All Implemented Interfaces:
Configuration, Persisted
Direct Known Subclasses:
DefaultConfiguration, ScrumDefaultConfiguration

public abstract class AbstractDefaultConfiguration
extends AbstractConfiguration


Field Summary
 
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
AbstractDefaultConfiguration(java.lang.String id)
           
 
Method Summary
 void addNonWorkingDay(NonWorkingDay day)
           
 void addProject(com.atlassian.jira.project.Project project)
           
 boolean allowCardCreation()
           
 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.lang.String getCardColor(com.atlassian.jira.issue.issuetype.IssueType type)
           
protected  java.lang.String getDBLayoutKey(java.lang.String layoutType, java.lang.String position)
           
 Configuration getDefaultConfiguration()
           
protected abstract  DefaultLayout getDefaultLayout()
           
protected  long getEntityId()
           
 Configuration getFallBackConfiguration()
           
 FlagField getFlagField(IssueFieldManager issueFieldManager)
           
 java.lang.String getLayout(java.lang.String layoutType, java.lang.String typeId, IssueFieldManager issueFieldManager)
           
 com.atlassian.jira.issue.link.IssueLinkType getLinkType()
           
 java.util.SortedSet<NonWorkingDay> getNonWorkingDays()
           
 java.util.SortedSet<org.joda.time.DateMidnight> getNonWorkingDays2()
          Returns the same data as getNonWorkingDays, but using DateMidnight objects instead of NonWorkingDay objects.
 java.lang.String getPropertyKey(java.lang.String name)
           
 IssueField getStoredField(java.lang.String boardType, java.lang.String group, IssueFieldManager issueFieldManager)
           
 TaskBoardConfiguration getTaskBoardConfiguration()
           
 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 isAutoAssignOn()
           
 boolean isCardBgColored()
           
 boolean isListAlt()
           
 boolean isPermissionScheduled()
           
 void removeNonWorkingDay(NonWorkingDay day)
           
 void setCornerField(java.lang.String typeId, java.lang.String fieldId)
           
 void setFlagField(IssueField issueField, java.lang.String value)
           
 boolean useAggregation()
           
 boolean useJiraIFrame()
           
 void validate(com.atlassian.jira.project.Project project)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.configurations.AbstractConfiguration
addWatchedField, getAllLinks, getAllWorkflowStatuses, getCanRankPermission, getCanSchedulePermission, getCardColors, getConfigNonWorkingDays, getConfigNonWorkingDays2, getCornerFieldIds, getName, getRankingFields, getSortedFields, getStoredFields, getUniqueIdentifier, isEditable, isHidden, removeCorner, removeLayout, removeStoredField, removeWatchedField, setAllowCardCreation, setAutoAssign, setCardColor, setCornerField, setDefaultCardColor, setLayout, setLinkType, setListAlt, setPermissionScheduled, setUseAggregation, setUseJiraIFrame, storeField, toggleCardBgColored
 
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.Configuration
getAllIssueTypeIds, getAllIssueTypes
 
Methods inherited from interface com.pyxis.greenhopper.jira.configurations.Persisted
delete, getData, getId, save, setName, validateName
 

Constructor Detail

AbstractDefaultConfiguration

public AbstractDefaultConfiguration(java.lang.String id)
Method Detail

getPropertyKey

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

getFallBackConfiguration

public Configuration getFallBackConfiguration()

getDefaultConfiguration

public Configuration getDefaultConfiguration()

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)

getAllAvailableFieldsFor

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

getAllAvailableFlagValues

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

setCornerField

public void setCornerField(java.lang.String typeId,
                           java.lang.String fieldId)

getTaskBoardConfiguration

public TaskBoardConfiguration getTaskBoardConfiguration()
Specified by:
getTaskBoardConfiguration in interface Configuration
Overrides:
getTaskBoardConfiguration in class AbstractConfiguration

allowCardCreation

public boolean allowCardCreation()
Specified by:
allowCardCreation in interface Configuration
Overrides:
allowCardCreation in class AbstractConfiguration

isAutoAssignOn

public boolean isAutoAssignOn()
Specified by:
isAutoAssignOn in interface Configuration
Overrides:
isAutoAssignOn in class AbstractConfiguration

isCardBgColored

public boolean isCardBgColored()
Specified by:
isCardBgColored in interface Configuration
Overrides:
isCardBgColored in class AbstractConfiguration

isListAlt

public boolean isListAlt()
Specified by:
isListAlt in interface Configuration
Overrides:
isListAlt in class AbstractConfiguration

useJiraIFrame

public boolean useJiraIFrame()
Specified by:
useJiraIFrame in interface Configuration
Overrides:
useJiraIFrame in class AbstractConfiguration

isPermissionScheduled

public boolean isPermissionScheduled()
Specified by:
isPermissionScheduled in interface Configuration
Overrides:
isPermissionScheduled in class AbstractConfiguration

useAggregation

public boolean useAggregation()
Specified by:
useAggregation in interface Configuration
Overrides:
useAggregation in class AbstractConfiguration

getCardColor

public java.lang.String getCardColor(com.atlassian.jira.issue.issuetype.IssueType type)
Specified by:
getCardColor in interface Configuration
Overrides:
getCardColor in class AbstractConfiguration

getFlagField

public FlagField getFlagField(IssueFieldManager issueFieldManager)
Specified by:
getFlagField in interface Configuration
Overrides:
getFlagField in class AbstractConfiguration

getLayout

public java.lang.String getLayout(java.lang.String layoutType,
                                  java.lang.String typeId,
                                  IssueFieldManager issueFieldManager)
Specified by:
getLayout in interface Configuration
Overrides:
getLayout in class AbstractConfiguration

getLinkType

public com.atlassian.jira.issue.link.IssueLinkType getLinkType()
Specified by:
getLinkType in interface Configuration
Overrides:
getLinkType in class AbstractConfiguration

getNonWorkingDays

public java.util.SortedSet<NonWorkingDay> getNonWorkingDays()
Specified by:
getNonWorkingDays in interface Configuration
Overrides:
getNonWorkingDays in class AbstractConfiguration

getNonWorkingDays2

public java.util.SortedSet<org.joda.time.DateMidnight> getNonWorkingDays2()
Description copied from interface: Configuration
Returns the same data as getNonWorkingDays, but using DateMidnight objects instead of NonWorkingDay objects.

Specified by:
getNonWorkingDays2 in interface Configuration
Overrides:
getNonWorkingDays2 in class AbstractConfiguration

getStoredField

public IssueField getStoredField(java.lang.String boardType,
                                 java.lang.String group,
                                 IssueFieldManager issueFieldManager)
Specified by:
getStoredField in interface Configuration
Overrides:
getStoredField in class AbstractConfiguration

setFlagField

public void setFlagField(IssueField issueField,
                         java.lang.String value)
Specified by:
setFlagField in interface Configuration
Overrides:
setFlagField in class AbstractConfiguration

addNonWorkingDay

public void addNonWorkingDay(NonWorkingDay day)
Specified by:
addNonWorkingDay in interface Configuration
Overrides:
addNonWorkingDay in class AbstractConfiguration

removeNonWorkingDay

public void removeNonWorkingDay(NonWorkingDay day)
Specified by:
removeNonWorkingDay in interface Configuration
Overrides:
removeNonWorkingDay in class AbstractConfiguration

addProject

public void addProject(com.atlassian.jira.project.Project project)
Specified by:
addProject in interface Configuration
Overrides:
addProject in class AbstractConfiguration

validate

public void validate(com.atlassian.jira.project.Project project)
              throws GreenHopperException
Specified by:
validate in interface Configuration
Overrides:
validate in class AbstractConfiguration
Throws:
GreenHopperException

getDBLayoutKey

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

getEntityId

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

getDefaultLayout

protected abstract DefaultLayout getDefaultLayout()


Copyright © 2007-2012 Atlassian. All Rights Reserved.