public class GHConfiguration extends AbstractPersisted
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static Integer |
LOCKED |
static String |
RESOURCE_LOCK |
static String |
SAVED_CHART_PATH |
static Integer |
UNLOCKED |
static String |
WORKLOG_HISTORY_CACHE_SIZE |
i18n
CONFIGURATION_ID, CONFIGURATION_NAME
Constructor and Description |
---|
GHConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(String id,
String name) |
void |
backwarCompabilityPriorTo4()
TODO BACKWARD COMPABILITY PRIOR 4.0
Reregisters the night service if this one was set to on
|
String |
getChartPath() |
GlobalConfiguration |
getConfiguration(String id) |
Set<GlobalConfiguration> |
getCustomConfigurations() |
protected long |
getEntityId() |
Collection<Long> |
getGrantedProjects() |
String |
getName() |
IssueField |
getReleasedVersionHistoryField(IssueFieldManager issueFieldManager) |
Integer |
getResourceLock()
We now remove the query limit as part of Classic Removal, so resourceLock is now always UNLOCKED and
any setting on resourceLock has no effect.
|
Set<GlobalConfiguration> |
getSystemConfigurations() |
TreeSet<com.atlassian.jira.project.Project> |
getUserAdmissibleProjects(com.atlassian.jira.user.ApplicationUser user) |
Integer |
getWorklogHistoryCacheSize() |
boolean |
isBetaEnabled(String betaId) |
boolean |
isComponentSynchOn() |
boolean |
isGlobalContext() |
boolean |
isProjectGranted(Long projectId) |
boolean |
isProjectGranted(com.atlassian.jira.project.Project project) |
boolean |
isUnLocked() |
boolean |
isVersionSynchOn() |
void |
removeConfiguration(GlobalConfiguration configuration) |
void |
save() |
void |
setAdmissibleProjects(String projectList) |
void |
setBetaDisabled(String betaId) |
void |
setBetaEnabled(String betaId) |
void |
setChartPath(String chartPath) |
void |
setResourceLock(Integer resourceLock)
Any setting on resourceLock has no effect because getter always returns
UNLOCKED |
void |
setWorklogHistoryCacheSize(Integer size) |
void |
toggleBetaEnabled(String betaId) |
void |
toggleComponentSynchOn() |
void |
toggleVersionSynchOn() |
void |
validateName(String id,
String name) |
createAndPersistField, delete, getCustomFieldService, getData, getDataStorage, getDBPrefix, getGreenHopperService, getId, getPropertyKey, loadFromDatabase, setName
public static final String ID
public static final String SAVED_CHART_PATH
public static final String RESOURCE_LOCK
public static final String WORKLOG_HISTORY_CACHE_SIZE
public static final Integer UNLOCKED
public static final Integer LOCKED
public GlobalConfiguration getConfiguration(@NotNull String id)
public void addConfiguration(String id, String name) throws GreenHopperException
GreenHopperException
public void removeConfiguration(GlobalConfiguration configuration)
public Set<GlobalConfiguration> getCustomConfigurations()
public Set<GlobalConfiguration> getSystemConfigurations()
public String getChartPath()
public boolean isUnLocked()
public void setChartPath(String chartPath)
public Integer getResourceLock()
public void setResourceLock(Integer resourceLock)
UNLOCKED
#getResourceLock()}
public Integer getWorklogHistoryCacheSize()
public void setWorklogHistoryCacheSize(Integer size)
public boolean isGlobalContext()
public boolean isProjectGranted(com.atlassian.jira.project.Project project)
public boolean isProjectGranted(Long projectId)
public TreeSet<com.atlassian.jira.project.Project> getUserAdmissibleProjects(com.atlassian.jira.user.ApplicationUser user)
public Collection<Long> getGrantedProjects()
public void setAdmissibleProjects(String projectList)
public boolean isBetaEnabled(String betaId)
public void toggleBetaEnabled(String betaId)
public void setBetaEnabled(String betaId)
public void setBetaDisabled(String betaId)
public boolean isVersionSynchOn()
public boolean isComponentSynchOn()
public void toggleVersionSynchOn()
public void toggleComponentSynchOn()
public IssueField getReleasedVersionHistoryField(IssueFieldManager issueFieldManager)
public void validateName(String id, String name) throws GreenHopperException
validateName
in interface Persisted
validateName
in class AbstractPersisted
GreenHopperException
public void backwarCompabilityPriorTo4()
public String getName()
getName
in interface Persisted
getName
in class AbstractPersisted
protected long getEntityId()
getEntityId
in class AbstractPersisted
public void save()
save
in interface Persisted
save
in class AbstractPersisted
Copyright © 2007–2015 Atlassian. All rights reserved.