Class TaskValidationContextImpl

    • Constructor Detail

      • 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 Detail

      • 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.