Package com.atlassian.bamboo.task.export
Class TaskValidationContextImpl
java.lang.Object
com.atlassian.bamboo.task.export.TaskValidationContextImpl
- All Implemented Interfaces:
TaskValidationContext
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTaskValidationContextImpl
(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties environmentProperties) Deprecated.since 6.3TaskValidationContextImpl
(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties environmentProperties, @NotNull RssPermissions rssPermissions) Deprecated.since 7.1.TaskValidationContextImpl
(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, com.atlassian.bamboo.specs.api.model.plan.JobProperties jobProperties) Deprecated.since 6.3TaskValidationContextImpl
(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, com.atlassian.bamboo.specs.api.model.plan.JobProperties jobProperties, @NotNull RssPermissions rssPermissions, @Nullable VcsBranch importedBranch) Deprecated.since 7.1.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 Summary
Modifier and TypeMethodDescriptionOptional<com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties>
Optional<com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties>
Optional<com.atlassian.bamboo.specs.api.model.plan.JobProperties>
Optional<com.atlassian.bamboo.specs.api.model.plan.PlanProperties>
@NotNull RssPermissions
-
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
- Specified by:
getOwnerPlan
in interfaceTaskValidationContext
- Returns:
- plans that contains job which contains the task, if the task is part of a job.
-
getOwnerJob
- Specified by:
getOwnerJob
in interfaceTaskValidationContext
- 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 interfaceTaskValidationContext
- 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 interfaceTaskValidationContext
- Returns:
- deployment environment which contains the task, if the task is part of a deployment environment.
-
getOwnerRepositoryName
- Specified by:
getOwnerRepositoryName
in interfaceTaskValidationContext
- Returns:
- repository name which process task. Set only for YAML Specs task processing.
-
getImportedBranch
- Specified by:
getImportedBranch
in interfaceTaskValidationContext
- Returns:
- imported RSS branch
-
getRssPermissions
- Specified by:
getRssPermissions
in interfaceTaskValidationContext
- Returns:
- object that allows to test if entities referenced by trigger are accessible.
-