com.pyxis.greenhopper.jira.configurations
Class GlobalConfiguration

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.GlobalConfiguration
All Implemented Interfaces:
Configuration, Persisted

public class GlobalConfiguration
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
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
GlobalConfiguration()
           
GlobalConfiguration(java.lang.String id)
           
 
Method Summary
 java.util.Set<IssueField> getAllAvailableFieldsFor(java.lang.String boardType, java.lang.String group, IssueFieldManager issueFieldManager)
           
 java.util.Set<java.lang.String> getAllAvailableFlagValues(CustomIssueField field)
           
 java.util.Collection<java.lang.String> getAllIssueTypeIds()
           
 java.util.Collection<com.atlassian.jira.issue.issuetype.IssueType> getAllIssueTypes()
           
 java.util.Map<java.lang.String,java.lang.String> getCardColors()
           
protected  java.util.Map<java.lang.String,java.lang.Object> getDataStorage()
          GHS-2826 Overwrite these two methods to bridge over to GHConfiguration, as both use the same entityName/entityId/key.
protected  java.lang.String getDBLayoutKey(java.lang.String layoutType, java.lang.String position)
           
 Configuration getDefaultConfiguration()
           
 long getEntityId()
           
 Configuration getFallBackConfiguration()
           
 java.util.Set<IssueField> getSortedFields(IssueFieldManager issueFieldManager)
           
 java.util.Set<WatchedField> getWatchedFieldsFor(com.atlassian.jira.project.Project project, IssueFieldManager issueFieldManager)
           
 java.util.Set<WatchedField> getWatchedFieldsFor(java.lang.String boardType, IssueFieldManager issueFieldManager)
           
 void save()
           
 
Methods inherited from class com.pyxis.greenhopper.jira.configurations.AbstractConfiguration
addNonWorkingDay, addProject, addWatchedField, allowCardCreation, getAllLinks, getAllWorkflowStatuses, getCanRankPermission, getCanSchedulePermission, getCardColor, getConfigNonWorkingDays, getConfigNonWorkingDays2, getCornerFieldIds, getFlagField, getLayout, getLinkType, getName, getNonWorkingDays, getNonWorkingDays2, getRankingFields, getStoredField, getStoredFields, getTaskBoardConfiguration, getUniqueIdentifier, isAutoAssignOn, isCardBgColored, isEditable, isHidden, 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, getDBPrefix, getGreenHopperService, getId, getPropertyKey, loadFromDatabase, 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, getPropertyKey, setName, validateName
 

Constructor Detail

GlobalConfiguration

public GlobalConfiguration()

GlobalConfiguration

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

getEntityId

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

getFallBackConfiguration

public Configuration getFallBackConfiguration()

getDefaultConfiguration

public Configuration getDefaultConfiguration()

getAllIssueTypes

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

getAllIssueTypeIds

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

getCardColors

public java.util.Map<java.lang.String,java.lang.String> getCardColors()
Specified by:
getCardColors in interface Configuration
Overrides:
getCardColors in class AbstractConfiguration

getAllAvailableFlagValues

public java.util.Set<java.lang.String> getAllAvailableFlagValues(CustomIssueField field)

getAllAvailableFieldsFor

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

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)

getSortedFields

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

getDBLayoutKey

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

getDataStorage

protected java.util.Map<java.lang.String,java.lang.Object> getDataStorage()
GHS-2826 Overwrite these two methods to bridge over to GHConfiguration, as both use the same entityName/entityId/key.

Overrides:
getDataStorage in class AbstractPersisted

save

public void save()
Specified by:
save in interface Persisted
Overrides:
save in class AbstractPersisted


Copyright © 2007-2011 Atlassian. All Rights Reserved.