Class TaskValidationContextImpl

java.lang.Object
com.atlassian.bamboo.task.export.TaskValidationContextImpl
All Implemented Interfaces:
TaskValidationContext

@Immutable public class TaskValidationContextImpl extends Object implements TaskValidationContext
  • Constructor Details

    • TaskValidationContextImpl

      @Deprecated public TaskValidationContextImpl(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, com.atlassian.bamboo.specs.api.model.plan.JobProperties jobProperties)
      Deprecated.
      since 6.3
    • TaskValidationContextImpl

      @Deprecated public TaskValidationContextImpl(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, com.atlassian.bamboo.specs.api.model.plan.JobProperties jobProperties, @NotNull @NotNull RssPermissions rssPermissions, @Nullable @Nullable VcsBranch importedBranch)
      Deprecated.
      since 7.1. Use Builder
    • TaskValidationContextImpl

      @Deprecated public TaskValidationContextImpl(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties environmentProperties)
      Deprecated.
      since 6.3
    • TaskValidationContextImpl

      @Deprecated public TaskValidationContextImpl(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties environmentProperties, @NotNull @NotNull RssPermissions rssPermissions)
      Deprecated.
      since 7.1. Use Builder
    • TaskValidationContextImpl

      public TaskValidationContextImpl(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, com.atlassian.bamboo.specs.api.model.plan.JobProperties jobProperties, com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties environmentProperties, String repositoryName, RssPermissions rssPermissions, VcsBranch importedBranch)
  • Method Details

    • getOwnerPlan

      public Optional<com.atlassian.bamboo.specs.api.model.plan.PlanProperties> getOwnerPlan()
      Specified by:
      getOwnerPlan in interface TaskValidationContext
      Returns:
      plans that contains job which contains the task, if the task is part of a job.
    • getOwnerJob

      public Optional<com.atlassian.bamboo.specs.api.model.plan.JobProperties> getOwnerJob()
      Specified by:
      getOwnerJob in interface TaskValidationContext
      Returns:
      job which contains the task, if the task is part of a job.
    • getOwnerDeployment

      public Optional<com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties> getOwnerDeployment()
      Specified by:
      getOwnerDeployment in interface TaskValidationContext
      Returns:
      deployment project that contains environment which contains the task, if the task is part of a deployment environment.
    • getOwnerEnvironment

      public Optional<com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties> getOwnerEnvironment()
      Specified by:
      getOwnerEnvironment in interface TaskValidationContext
      Returns:
      deployment environment which contains the task, if the task is part of a deployment environment.
    • getOwnerRepositoryName

      public Optional<String> getOwnerRepositoryName()
      Specified by:
      getOwnerRepositoryName in interface TaskValidationContext
      Returns:
      repository name which process task. Set only for YAML Specs task processing.
    • getImportedBranch

      public Optional<VcsBranch> getImportedBranch()
      Specified by:
      getImportedBranch in interface TaskValidationContext
      Returns:
      imported RSS branch
    • getRssPermissions

      @NotNull public @NotNull RssPermissions getRssPermissions()
      Specified by:
      getRssPermissions in interface TaskValidationContext
      Returns:
      object that allows to test if entities referenced by trigger are accessible.