com.atlassian.bamboo.configuration.agent
Class ViewAgent

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.agent.ViewAgent
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, AuthenticatedUserSecurityAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable
Direct Known Subclasses:
ViewAgentAdmin, ViewOfflineElasticAgentDetailsAction

public class ViewAgent
extends BambooActionSupport
implements AuthenticatedUserSecurityAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  long agentId
           
protected  AgentManager agentManager
           
protected  BuildResultsSummaryManager buildResultsSummaryManager
           
protected  CapabilityHelper capabilityHelper
           
protected  CapabilitySet capabilitySet
           
protected  ResultsSummaryManager resultsSummaryManager
           
 
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.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewAgent()
           
 
Method Summary
 java.lang.String doDefault()
          Default action just sends to the input
 BuildResultsSummary findLastBuild(ImmutableBuildable plan)
           
 BuildResultsSummary findLastSuccessfulBuild(ImmutableBuildable plan)
           
 PipelineDefinition getAgent()
           
 long getAgentId()
           
 BuildAgent getBuildAgent()
           
 BuildResultsFilterFactory getBuildResultsFilterFactory()
           
 CapabilitySet getCapabilitySet()
           
 CapabilityRequirementSetDecorator getCapabilitySetDecorator()
           
 CapabilityRequirementSetDecorator getCombinedCapabilitySetDecorator()
           
 java.util.Collection<ImmutableBuildable> getExecutableBuildables()
           
 FilterController getFilterController()
           
 java.util.List<BuildResultsSummary> getResultsList()
           
 CapabilitySet getSharedCapabilitySet()
           
 CapabilityRequirementSetDecorator getSharedCapabilitySetDecorator()
           
 SuccessPercentageStatisticsBean getStatistics()
           
 SystemInfo getSystemInfo()
           
 boolean hasPlanPermission(java.lang.String permission, PlanIdentifier plan)
           
protected  void initializeAllFields()
           
protected  void initializeBuildList()
           
 void setAgent(PipelineDefinition agent)
           
 void setAgentId(long agentId)
           
 void setAgentManager(AgentManager agentManager)
           
 void setBuildResultsFilterFactory(BuildResultsFilterFactory buildResultsFilterFactory)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)
           
 void setFilterController(FilterController filterController)
           
 void setResultsList(java.util.List<BuildResultsSummary> results)
           
 void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
           
 void setSharedCapabilitySet(CapabilitySet sharedCapabilitySet)
           
 void setSystemInfo(SystemInfo systemInfo)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, 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, getFormattedActionWarnings, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSecuredDomainObject, getServerLifecycleState, getSessionUser, getText, getText, 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, hasRestrictedAdminPermission, input, 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.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setContainer, 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.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 
Methods inherited from interface com.opensymphony.xwork2.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 

Field Detail

agentId

protected long agentId

capabilitySet

protected CapabilitySet capabilitySet

buildResultsSummaryManager

protected BuildResultsSummaryManager buildResultsSummaryManager

resultsSummaryManager

protected ResultsSummaryManager resultsSummaryManager

agentManager

protected AgentManager agentManager

capabilityHelper

protected CapabilityHelper capabilityHelper
Constructor Detail

ViewAgent

public ViewAgent()
Method Detail

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 PlanIdentifier plan)
Overrides:
hasPlanPermission in class BambooActionSupport

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Description copied from class: BambooActionSupport
Default action just sends to the input

Overrides:
doDefault in class BambooActionSupport
Throws:
java.lang.Exception

initializeAllFields

protected void initializeAllFields()

initializeBuildList

protected void initializeBuildList()

getStatistics

public SuccessPercentageStatisticsBean getStatistics()

getResultsList

public java.util.List<BuildResultsSummary> getResultsList()

setResultsList

public void setResultsList(java.util.List<BuildResultsSummary> results)

getExecutableBuildables

public java.util.Collection<ImmutableBuildable> getExecutableBuildables()

findLastSuccessfulBuild

@Nullable
public BuildResultsSummary findLastSuccessfulBuild(ImmutableBuildable plan)

findLastBuild

@Nullable
public BuildResultsSummary findLastBuild(ImmutableBuildable plan)

getSharedCapabilitySetDecorator

public CapabilityRequirementSetDecorator getSharedCapabilitySetDecorator()

getCapabilitySetDecorator

public CapabilityRequirementSetDecorator getCapabilitySetDecorator()

getCombinedCapabilitySetDecorator

public CapabilityRequirementSetDecorator getCombinedCapabilitySetDecorator()

getCapabilitySet

public CapabilitySet getCapabilitySet()

getSharedCapabilitySet

public CapabilitySet getSharedCapabilitySet()

setSharedCapabilitySet

public void setSharedCapabilitySet(CapabilitySet sharedCapabilitySet)

getAgentId

public long getAgentId()

setAgentId

public void setAgentId(long agentId)

getAgent

public PipelineDefinition getAgent()

getSystemInfo

public SystemInfo getSystemInfo()

setAgent

public void setAgent(PipelineDefinition agent)

getBuildAgent

public BuildAgent getBuildAgent()

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)

setResultsSummaryManager

public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)

setSystemInfo

public void setSystemInfo(SystemInfo systemInfo)

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)

setAgentManager

public void setAgentManager(AgentManager agentManager)

setCapabilityHelper

public void setCapabilityHelper(CapabilityHelper capabilityHelper)

getFilterController

public FilterController getFilterController()

setFilterController

public void setFilterController(FilterController filterController)

getBuildResultsFilterFactory

public BuildResultsFilterFactory getBuildResultsFilterFactory()

setBuildResultsFilterFactory

public void setBuildResultsFilterFactory(BuildResultsFilterFactory buildResultsFilterFactory)

setCachingPermissionManagerFacade

public void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade)

setExecutableAgentsHelper

public void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)


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