com.atlassian.bamboo.configuration.repository
Class ConfigureGlobalRepository

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.GlobalAdminAction
              extended by com.atlassian.bamboo.configuration.repository.ConfigureGlobalRepository
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BareBuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, RepositoryConfigurationAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ConfigureSingleGlobalRepository, CreateGlobalRepository, DeleteGlobalRepository, EditGlobalRepository

public class ConfigureGlobalRepository
extends GlobalAdminAction
implements RepositoryConfigurationAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  DecoratedRepositoryDefinition decoratedRepositoryDefinition
           
protected  PlanConfigurationUIPluginHelper planConfigurationUIPluginHelper
           
protected  PlanVcsRevisionHistoryService planVcsRevisionHistoryService
           
protected  RepositoryConfigHelper repositoryConfigHelper
           
protected  RepositoryConfigurationService repositoryConfigurationService
           
protected  RepositoryData repositoryData
           
protected  RepositoryDefinitionManager repositoryDefinitionManager
           
protected  long repositoryId
           
protected  java.lang.String repositoryName
           
protected  boolean saved
           
protected  UIConfigBean uiConfigBean
           
protected  java.lang.String userDescription
           
protected  WebRepositoryConfigHelper webRepositoryConfigHelper
           
 
Fields inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
RESTRICTED_ADMIN_ACCESS_DENIED_ERROR
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureGlobalRepository()
           
 
Method Summary
 BuildConfiguration getBuildConfiguration()
           
 DecoratedRepositoryDefinition getDecoratedRepositoryDefinition()
           
 java.util.List<EnvironmentRepositoryLink> getEnvironmentUsingRepository()
           
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
          This is default property read by webwork for webwork's result type "json".
 PlanConfigurationUIPluginHelper getPlanConfigurationUIPluginHelper()
           
 java.util.List<PlanIdentifier> getPlanUsingRepository()
           
 PlanVcsRevisionHistoryService getPlanVcsRevisionHistoryService()
           
 RepositoryData getRepositoryById(long id)
           
 RepositoryConfigHelper getRepositoryConfigHelper()
           
 BuildConfiguration getRepositoryConfiguration()
           
 java.util.List<? extends RepositoryData> getRepositoryDefinitions()
           
 long getRepositoryId()
           
 java.lang.String getRepositoryName()
           
 UIConfigBean getUiConfigBean()
           
 java.lang.String getUserDescription()
           
 WebRepositoryConfigHelper getWebRepositoryConfigHelper()
           
 boolean isSaved()
           
 void setBuildConfiguration(BuildConfiguration repositoryConfiguration)
           
 void setDecoratedRepositoryDefinition(DecoratedRepositoryDefinition decoratedRepositoryDefinition)
           
 void setPlanConfigurationUIPluginHelper(PlanConfigurationUIPluginHelper planConfigurationUIPluginHelper)
           
 void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
           
 void setRepositoryConfigHelper(RepositoryConfigHelper repositoryConfigHelper)
           
 void setRepositoryConfiguration(BuildConfiguration repositoryConfiguration)
           
 void setRepositoryConfigurationService(RepositoryConfigurationService repositoryConfigurationService)
           
 void setRepositoryData(RepositoryData repositoryData)
           
 void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
           
 void setRepositoryId(long repositoryId)
           
 void setRepositoryName(java.lang.String repositoryName)
           
 void setSaved(boolean saved)
           
 void setUiConfigBean(UIConfigBean uiConfigBean)
           
 void setUserDescription(java.lang.String userDescription)
           
 void setWebRepositoryConfigHelper(WebRepositoryConfigHelper webRepositoryConfigHelper)
           
 void validateName()
           
 
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

saved

protected boolean saved

repositoryId

protected long repositoryId

repositoryName

protected java.lang.String repositoryName

repositoryData

protected RepositoryData repositoryData

userDescription

protected java.lang.String userDescription

decoratedRepositoryDefinition

protected DecoratedRepositoryDefinition decoratedRepositoryDefinition

repositoryDefinitionManager

protected RepositoryDefinitionManager repositoryDefinitionManager

repositoryConfigHelper

protected RepositoryConfigHelper repositoryConfigHelper

webRepositoryConfigHelper

protected WebRepositoryConfigHelper webRepositoryConfigHelper

planConfigurationUIPluginHelper

protected PlanConfigurationUIPluginHelper planConfigurationUIPluginHelper

planVcsRevisionHistoryService

protected PlanVcsRevisionHistoryService planVcsRevisionHistoryService

repositoryConfigurationService

protected RepositoryConfigurationService repositoryConfigurationService

uiConfigBean

protected UIConfigBean uiConfigBean
Constructor Detail

ConfigureGlobalRepository

public ConfigureGlobalRepository()
Method Detail

getJsonObject

@NotNull
public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
                                                                  throws com.opensymphony.webwork.dispatcher.json.JSONException
Description copied from class: BambooActionSupport
This is default property read by webwork for webwork's result type "json".

Overrides:
getJsonObject in class BambooActionSupport
Returns:
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
See Also:
JSON Result

If descending classes need to add anything to JSON response these should override {@link #buildJsonObject()} method.


validateName

public void validateName()

getRepositoryById

@Nullable
public RepositoryData getRepositoryById(long id)
Specified by:
getRepositoryById in interface RepositoryConfigurationAware

setRepositoryData

public void setRepositoryData(RepositoryData repositoryData)
Specified by:
setRepositoryData in interface RepositoryConfigurationAware

setBuildConfiguration

public void setBuildConfiguration(BuildConfiguration repositoryConfiguration)
Specified by:
setBuildConfiguration in interface BareBuildConfigurationAware
Specified by:
setBuildConfiguration in interface RepositoryConfigurationAware

getBuildConfiguration

public BuildConfiguration getBuildConfiguration()
Specified by:
getBuildConfiguration in interface BareBuildConfigurationAware

getRepositoryDefinitions

public java.util.List<? extends RepositoryData> getRepositoryDefinitions()

getPlanUsingRepository

public java.util.List<PlanIdentifier> getPlanUsingRepository()

getEnvironmentUsingRepository

public java.util.List<EnvironmentRepositoryLink> getEnvironmentUsingRepository()

isSaved

public boolean isSaved()

setSaved

public void setSaved(boolean saved)

getRepositoryId

public long getRepositoryId()

setRepositoryId

public void setRepositoryId(long repositoryId)

getRepositoryName

public java.lang.String getRepositoryName()

setRepositoryName

public void setRepositoryName(java.lang.String repositoryName)

getUserDescription

public java.lang.String getUserDescription()

setUserDescription

public void setUserDescription(java.lang.String userDescription)

getDecoratedRepositoryDefinition

public DecoratedRepositoryDefinition getDecoratedRepositoryDefinition()

setDecoratedRepositoryDefinition

public void setDecoratedRepositoryDefinition(DecoratedRepositoryDefinition decoratedRepositoryDefinition)

getRepositoryConfiguration

public BuildConfiguration getRepositoryConfiguration()

setRepositoryConfiguration

public void setRepositoryConfiguration(BuildConfiguration repositoryConfiguration)

getRepositoryConfigHelper

public RepositoryConfigHelper getRepositoryConfigHelper()

setRepositoryConfigHelper

public void setRepositoryConfigHelper(RepositoryConfigHelper repositoryConfigHelper)

getWebRepositoryConfigHelper

public WebRepositoryConfigHelper getWebRepositoryConfigHelper()

setWebRepositoryConfigHelper

public void setWebRepositoryConfigHelper(WebRepositoryConfigHelper webRepositoryConfigHelper)

getPlanConfigurationUIPluginHelper

public PlanConfigurationUIPluginHelper getPlanConfigurationUIPluginHelper()

setPlanConfigurationUIPluginHelper

public void setPlanConfigurationUIPluginHelper(PlanConfigurationUIPluginHelper planConfigurationUIPluginHelper)

getPlanVcsRevisionHistoryService

public PlanVcsRevisionHistoryService getPlanVcsRevisionHistoryService()

setPlanVcsRevisionHistoryService

public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)

setRepositoryDefinitionManager

public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)

setRepositoryConfigurationService

public void setRepositoryConfigurationService(RepositoryConfigurationService repositoryConfigurationService)

getUiConfigBean

public UIConfigBean getUiConfigBean()

setUiConfigBean

public void setUiConfigBean(UIConfigBean uiConfigBean)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.