com.pyxis.greenhopper.jira.configurations
Class GHConfiguration

java.lang.Object
  extended by com.pyxis.greenhopper.jira.configurations.AbstractPersisted
      extended by com.pyxis.greenhopper.jira.configurations.GHConfiguration
All Implemented Interfaces:
Persisted

public class GHConfiguration
extends AbstractPersisted


Field Summary
static java.lang.String ID
           
static java.lang.Integer LOCKED
           
static java.lang.String RESOURCE_LOCK
           
static java.lang.String SAVED_CHART_PATH
           
static java.lang.Integer UNLOCKED
           
static java.lang.String WORKLOG_HISTORY_CACHE_SIZE
           
 
Fields inherited from class com.pyxis.greenhopper.jira.configurations.AbstractPersisted
i18n
 
Fields inherited from interface com.pyxis.greenhopper.jira.configurations.Persisted
CONFIGURATION_ID, CONFIGURATION_NAME
 
Constructor Summary
GHConfiguration()
           
 
Method Summary
 void addConfiguration(java.lang.String id, java.lang.String name)
           
 void backwarCompabilityPriorTo4()
          TODO BACKWARD COMPABILITY PRIOR 4.0 Reregisters the night service if this one was set to on
 java.lang.String getChartPath()
           
 GlobalConfiguration getConfiguration(java.lang.String id)
           
 java.util.Set<GlobalConfiguration> getCustomConfigurations()
           
protected  long getEntityId()
           
 java.util.Collection<java.lang.Long> getGrantedProjects()
           
 java.lang.String getName()
           
 IssueField getReleasedVersionHistoryField(IssueFieldManager issueFieldManager)
           
 java.lang.Integer getResourceLock()
           
 java.util.Set<GlobalConfiguration> getSystemConfigurations()
           
 java.util.TreeSet<com.atlassian.jira.project.Project> getUserAdmissibleProjects(com.atlassian.crowd.embedded.api.User user)
           
 java.lang.Integer getWorklogHistoryCacheSize()
           
 boolean isBetaEnabled(java.lang.String betaId)
           
 boolean isComponentSynchOn()
           
 boolean isGlobalContext()
           
 boolean isProjectGranted(java.lang.Long projectId)
           
 boolean isProjectGranted(com.atlassian.jira.project.Project project)
           
 boolean isUnLocked()
           
 boolean isVersionSynchOn()
           
 void removeConfiguration(GlobalConfiguration configuration)
           
 void setAdmissibleProjects(java.lang.String projectList)
           
 void setBetaDisabled(java.lang.String betaId)
           
 void setBetaEnabled(java.lang.String betaId)
           
 void setChartPath(java.lang.String chartPath)
           
 void setResourceLock(java.lang.Integer resourceLock)
           
 void setWorklogHistoryCacheSize(java.lang.Integer size)
           
 void toggleBetaEnabled(java.lang.String betaId)
           
 void toggleComponentSynchOn()
           
 void toggleVersionSynchOn()
           
 void validateName(java.lang.String id, java.lang.String name)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.configurations.AbstractPersisted
createAndPersistField, delete, getData, getDataStorage, getDBPrefix, getGreenHopperService, getId, getPropertyKey, loadFromDatabase, save, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

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

SAVED_CHART_PATH

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

RESOURCE_LOCK

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

WORKLOG_HISTORY_CACHE_SIZE

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

UNLOCKED

public static final java.lang.Integer UNLOCKED

LOCKED

public static final java.lang.Integer LOCKED
Constructor Detail

GHConfiguration

public GHConfiguration()
Method Detail

getConfiguration

public GlobalConfiguration getConfiguration(java.lang.String id)

addConfiguration

public void addConfiguration(java.lang.String id,
                             java.lang.String name)
                      throws GreenHopperException
Throws:
GreenHopperException

removeConfiguration

public void removeConfiguration(GlobalConfiguration configuration)

getCustomConfigurations

public java.util.Set<GlobalConfiguration> getCustomConfigurations()

getSystemConfigurations

public java.util.Set<GlobalConfiguration> getSystemConfigurations()

getChartPath

public java.lang.String getChartPath()

isUnLocked

public boolean isUnLocked()

setChartPath

public void setChartPath(java.lang.String chartPath)

getResourceLock

public java.lang.Integer getResourceLock()

setResourceLock

public void setResourceLock(java.lang.Integer resourceLock)

getWorklogHistoryCacheSize

public java.lang.Integer getWorklogHistoryCacheSize()

setWorklogHistoryCacheSize

public void setWorklogHistoryCacheSize(java.lang.Integer size)

isGlobalContext

public boolean isGlobalContext()

isProjectGranted

public boolean isProjectGranted(com.atlassian.jira.project.Project project)

isProjectGranted

public boolean isProjectGranted(java.lang.Long projectId)

getUserAdmissibleProjects

public java.util.TreeSet<com.atlassian.jira.project.Project> getUserAdmissibleProjects(com.atlassian.crowd.embedded.api.User user)

getGrantedProjects

public java.util.Collection<java.lang.Long> getGrantedProjects()

setAdmissibleProjects

public void setAdmissibleProjects(java.lang.String projectList)

isBetaEnabled

public boolean isBetaEnabled(java.lang.String betaId)

toggleBetaEnabled

public void toggleBetaEnabled(java.lang.String betaId)

setBetaEnabled

public void setBetaEnabled(java.lang.String betaId)

setBetaDisabled

public void setBetaDisabled(java.lang.String betaId)

isVersionSynchOn

public boolean isVersionSynchOn()

isComponentSynchOn

public boolean isComponentSynchOn()

toggleVersionSynchOn

public void toggleVersionSynchOn()

toggleComponentSynchOn

public void toggleComponentSynchOn()

getReleasedVersionHistoryField

public IssueField getReleasedVersionHistoryField(IssueFieldManager issueFieldManager)
Returns:
the custom field for release version history. If it doesn't exist, it'll be created. The field ID is stored in the GH datastore for future reference.

validateName

public void validateName(java.lang.String id,
                         java.lang.String name)
                  throws GreenHopperException
Specified by:
validateName in interface Persisted
Overrides:
validateName in class AbstractPersisted
Throws:
GreenHopperException

backwarCompabilityPriorTo4

public void backwarCompabilityPriorTo4()
TODO BACKWARD COMPABILITY PRIOR 4.0 Reregisters the night service if this one was set to on


getName

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

getEntityId

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


Copyright © 2007-2013 Atlassian. All Rights Reserved.