Package com.atlassian.bamboo.task.export
Class TaskValidationContextImpl
- java.lang.Object
-
- com.atlassian.bamboo.task.export.TaskValidationContextImpl
-
- All Implemented Interfaces:
TaskValidationContext
@Immutable public class TaskValidationContextImpl extends Object implements TaskValidationContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TaskValidationContextImpl.Builder
-
Constructor Summary
Constructors Constructor Description TaskValidationContextImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<VcsBranch>
getImportedBranch()
Optional<com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties>
getOwnerDeployment()
Optional<com.atlassian.bamboo.specs.api.model.deployment.EnvironmentProperties>
getOwnerEnvironment()
Optional<com.atlassian.bamboo.specs.api.model.plan.JobProperties>
getOwnerJob()
Optional<com.atlassian.bamboo.specs.api.model.plan.PlanProperties>
getOwnerPlan()
Optional<String>
getOwnerRepositoryName()
@NotNull RssPermissions
getRssPermissions()
-
-
-
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 interfaceTaskValidationContext
- 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 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
public Optional<String> getOwnerRepositoryName()
- Specified by:
getOwnerRepositoryName
in interfaceTaskValidationContext
- Returns:
- repository name which process task. Set only for YAML Specs task processing.
-
getImportedBranch
public Optional<VcsBranch> getImportedBranch()
- Specified by:
getImportedBranch
in interfaceTaskValidationContext
- Returns:
- imported RSS branch
-
getRssPermissions
@NotNull public @NotNull RssPermissions getRssPermissions()
- Specified by:
getRssPermissions
in interfaceTaskValidationContext
- Returns:
- object that allows to test if entities referenced by trigger are accessible.
-
-