com.pyxis.greenhopper.jira.configurations
Class GHConfiguration
java.lang.Object
com.pyxis.greenhopper.jira.configurations.AbstractPersisted
com.pyxis.greenhopper.jira.configurations.GHConfiguration
- All Implemented Interfaces:
- Persisted
public class GHConfiguration
- extends AbstractPersisted
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 |
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
GHConfiguration
public GHConfiguration()
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.