@PublicApi
public interface DeploymentProjectService
| Modifier and Type | Method and Description |
|---|---|
void |
addArtifactProjectItem(long deploymentProjectId,
ArtifactDefinition artifactDefinition)
Add artifact project item to deployment project.
|
DeploymentProject |
addDeploymentProject(String name,
String description,
String planKeyString)
Create a new deployment project.
|
DeploymentProject |
cloneDeploymentProject(long id,
String name,
String description,
String planKeyString)
Create a new deployment project.
|
void |
deleteDeploymentProject(long deploymentProjectId)
Deprecated.
|
DeploymentProject |
editDeploymentProject(long deploymentProjectId,
String name,
String description,
String planKeyString)
Edit the details of the deployment project
|
Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) |
Map<String,ArtifactDefinition> |
generateArtifactProjectItems(MutableDeploymentProject mutableDeploymentProject)
Create and save artifact project items for deployment projects.
|
List<DeploymentProject> |
getAllDeploymentProjects() |
DeploymentProject |
getDeploymentProject(long id) |
int |
getDeploymentProjectCount() |
DeploymentProject |
getDeploymentProjectForEnvironment(long environmentID)
Retrieve the deployment project that a specific environment belongs to.
|
DeploymentProject |
getDeploymentProjectForVersion(long versionId)
Retrieve the deployment project that a specific version belongs to.
|
List<DeploymentProjectItem> |
getDeploymentProjectItems(long deploymentProjectId)
Does not validate deployment project exists
|
List<DeploymentProject> |
getDeploymentProjectsReferencingArtifact(Artifact artifact)
Get all deployment projects that contain a version that uses specified artifact
|
List<DeploymentProject> |
getDeploymentProjectsRelatedToArtifact(ArtifactDefinition artifactDefinition)
Retrieve the deployment projects that refer to the artifactDefinition within their items
|
List<DeploymentProject> |
getDeploymentProjectsRelatedToPlan(PlanKey planKey)
Retrieve the deployment projects that are linked to a specific plan
|
List<DeploymentProject> |
getDeploymentProjectsRelatedToPlanOrBranches(PlanKey masterOrBranchPlanKey)
Retrieve the deployment projects that are linked to a specific plan or any of its branches
|
List<DeploymentProjectWithEnvironmentStatuses> |
getDeploymentProjectsWithStatusesRelatedToPlan(PlanKey planKey)
Retrieve the deployment projects that are linked to a specific plan.
|
List<DeploymentProjectWithEnvironmentStatuses> |
getDeploymentProjectsWithStatusesRelatedToPlanOrBranches(PlanKey masterOrBranchPlanKey)
Retrieve the deployment projects that are linked to a specific plan or any of its branches.
|
List<DeploymentProjectStatusForResultSummary> |
getDeploymentProjectsWithStatusesRelatedToPlanResult(ResultsSummary resultsSummary)
Retrieve the deployment projects that are linked to a specific result.
|
String |
getIncrementedVersionName(String versionName)
Calculates an incremented version name for a project.
|
DeploymentProjectWithEnvironmentForDashboard |
getPaginatedDeploymentsWithEnvironments(int start,
int limit,
String filter)
Retrieve paginated view of DeploymentProject and Environment and information if there are more entries ordered by
InternalDeploymentProject.getName() and InternalEnvironment.getPosition(). |
DeploymentProjectItem |
getProjectItem(long projectItemId)
Get a specific Project Item.
|
VersionNamingScheme |
getVersionNamingScheme(long deploymentProjectId)
Get the version naming configuration for a project
|
void |
removeArtifactProjectItem(long deploymentProjectId,
ArtifactDefinition artifactDefinition)
Remove artifact project item from deployment project.
|
void |
removeProjectItem(long deploymentProjectId,
long projectItemId)
Remove item from deployment project
|
void |
resetTriggers(PlanKey planKey)
Delete and recreate the triggers for every deployment that's related to this planKey.
|
void |
unlinkDeploymentProjectsRelatedToPlan(PlanKey planKey)
Remove all references to a
Plan from all related deployment projects. |
void |
updatePlanKey(PlanKey originalPlanKey,
PlanKey newPlanKey)
Update planKey in DeploymentProject when plan key has changed (ie after moving plan).
|
VersionNamingScheme |
updateVersionNamingScheme(long deploymentProjectId,
String nextVersionName,
boolean autoIncrement,
boolean applicableToBranches,
Set<String> variablesToAutoIncrement)
update the version naming configuration for a project
|
VersionNamingScheme |
updateVersionNamingScheme(long deploymentProjectId,
String nextVersionName,
boolean autoIncrement,
Set<String> variablesToAutoIncrement)
Deprecated.
|
boolean |
userHasPermissionsToChangeAutoIncrementedVariables(long deploymentProjectId,
Set<String> variablesToAutoIncrement)
Check if current user has necessary permissions to modify auto incremented variables settings.
|
ErrorCollection |
validateAddDeploymentProject(String name,
String description,
String planKeyString)
Validates data to be used when adding a deployment project.
|
ErrorCollection |
validateAddDeploymentProject(String name,
String description,
String masterPlanKeyString,
String planKeyString)
Validates data to be used when adding a deployment project.
|
ErrorCollection |
validateArtifactTaskDefinitionOnPlanChange(long deploymentProjectId,
String planKeyString,
Map<String,ArtifactValidationError> artifactValidationErrors)
Validates artifact definitions on plan change and warn if artifact differ, so deployment tasks using it may fail
|
ErrorCollection |
validateCloneDeploymentProject(String name,
String description,
String planKeyString)
Validates data to be used when adding a deployment project.
|
ErrorCollection |
validateEditDeploymentProject(long id,
String name,
String description,
String planKeyString)
Validates data to be used when editing an existing deployment.
|
ErrorCollection |
validateEditDeploymentProject(long id,
String name,
String description,
String masterPlanKeyString,
String planKeyString)
Validates data to be used when editing an existing deployment.
|
ErrorCollection |
validateTriggerConfigurationOnPlanChange(long deploymentProjectId,
PlanKey newPlanKey,
List<EnvironmentTriggerValidationError> triggerValidationErrors)
Validate trigger configuration on deployment project's plan change
|
ErrorCollection |
validateVersionNamingScheme(long deploymentProjectId,
String nextVersionName,
boolean autoIncrement,
Set<String> variablesToAutoIncrement)
Validate the version naming configuration for a project
|
@NotNull List<DeploymentProject> getAllDeploymentProjects()
@NotNull List<DeploymentProject> getDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
planKey - of the linked plan@NotNull List<DeploymentProject> getDeploymentProjectsRelatedToPlanOrBranches(@NotNull PlanKey masterOrBranchPlanKey)
masterOrBranchPlanKey - identifies master plan or branch@NotNull List<DeploymentProjectWithEnvironmentStatuses> getDeploymentProjectsWithStatusesRelatedToPlan(@NotNull PlanKey planKey)
planKey - of the linked plan@NotNull List<DeploymentProjectWithEnvironmentStatuses> getDeploymentProjectsWithStatusesRelatedToPlanOrBranches(@NotNull PlanKey masterOrBranchPlanKey)
masterOrBranchPlanKey - identifies master plan or branch@NotNull List<DeploymentProjectStatusForResultSummary> getDeploymentProjectsWithStatusesRelatedToPlanResult(@NotNull ResultsSummary resultsSummary)
resultsSummary - of the linked plan@NotNull List<DeploymentProject> getDeploymentProjectsRelatedToArtifact(@NotNull ArtifactDefinition artifactDefinition)
artifactDefinition - related artifact definition@Nullable DeploymentProject getDeploymentProject(long id) throws org.acegisecurity.AccessDeniedException
id - of the deployment project to retrieveorg.acegisecurity.AccessDeniedException@Nullable DeploymentProject getDeploymentProjectForEnvironment(long environmentID)
environmentID - of the environment@Nullable DeploymentProject getDeploymentProjectForVersion(long versionId)
versionId - of the version@Deprecated void deleteDeploymentProject(long deploymentProjectId)
DeploymentProjectDeletionService.deleteDeploymentProject(long)deploymentProjectId - of the project@NotNull ErrorCollection validateAddDeploymentProject(String name, String description, String planKeyString)
name - shortish display name of the projectdescription - optional description of what the project is aboutplanKeyString - key of the linked plan or its branch@NotNull ErrorCollection validateAddDeploymentProject(String name, String description, String masterPlanKeyString, String planKeyString)
name - shortish display name of the projectdescription - optional description of what the project is aboutmasterPlanKeyString - key of the master of linked plan/branchplanKeyString - key of the linked plan or its branch@NotNull DeploymentProject addDeploymentProject(String name, String description, String planKeyString) throws WebValidationException
name - shortish display name of the projectdescription - optional description of what the project is aboutplanKeyString - key of the linked plan or its branchWebValidationException@NotNull ErrorCollection validateCloneDeploymentProject(String name, String description, String planKeyString)
name - shortish display name of the projectdescription - optional description of what the project is about@NotNull DeploymentProject cloneDeploymentProject(long id, String name, String description, String planKeyString) throws WebValidationException
name - shortish display name of the projectdescription - optional description of what the project is aboutWebValidationException@NotNull ErrorCollection validateEditDeploymentProject(long id, String name, @Nullable String description, @Nullable String planKeyString)
id - name - description - planKeyString - @NotNull ErrorCollection validateEditDeploymentProject(long id, String name, String description, String masterPlanKeyString, String planKeyString)
id - name - description - masterPlanKeyString - planKeyString - @NotNull ErrorCollection validateArtifactTaskDefinitionOnPlanChange(long deploymentProjectId, String planKeyString, @NotNull Map<String,ArtifactValidationError> artifactValidationErrors)
deploymentProjectId - planKeyString - @NotNull ErrorCollection validateTriggerConfigurationOnPlanChange(long deploymentProjectId, @NotNull PlanKey newPlanKey, @NotNull List<EnvironmentTriggerValidationError> triggerValidationErrors)
deploymentProjectId - identifies deployment projectnewPlanKey - new plan keytriggerValidationErrors - list to store trigger validation errors@NotNull DeploymentProject editDeploymentProject(long deploymentProjectId, String name, @Nullable String description, String planKeyString) throws WebValidationException
deploymentProjectId - of the deployment project to editname - the new name for the projectdescription - the new description of the projectplanKeyString - optional of the linked planWebValidationException@NotNull List<DeploymentProjectItem> getDeploymentProjectItems(long deploymentProjectId)
deploymentProjectId - if of the deployment project@Nullable DeploymentProjectItem getProjectItem(long projectItemId)
projectItemId - of the project item to retrieve.void addArtifactProjectItem(long deploymentProjectId,
@NotNull
ArtifactDefinition artifactDefinition)
deploymentProjectId - id of the deployment projectartifactDefinition - ArtifactDefinitionIllegalArgumentException - when DeploymentProject doesn't existvoid removeArtifactProjectItem(long deploymentProjectId,
@NotNull
ArtifactDefinition artifactDefinition)
deploymentProjectId - id of the deployment projectartifactDefinition - ArtifactDefinitionvoid removeProjectItem(long deploymentProjectId,
long projectItemId)
deploymentProjectId - DeploymentProject idprojectItemId - @Nullable VersionNamingScheme getVersionNamingScheme(long deploymentProjectId)
deploymentProjectId - of the project@NotNull String getIncrementedVersionName(@NotNull String versionName)
versionName - to incrementboolean userHasPermissionsToChangeAutoIncrementedVariables(long deploymentProjectId,
@NotNull
Set<String> variablesToAutoIncrement)
deploymentProjectId - variablesToAutoIncrement - @NotNull ErrorCollection validateVersionNamingScheme(long deploymentProjectId, String nextVersionName, boolean autoIncrement, @NotNull Set<String> variablesToAutoIncrement)
deploymentProjectId - of the projectnextVersionName - the value to be used for the next version nameautoIncrement - whether the version name should be auto-incrementedvariablesToAutoIncrement - variables to increment@Deprecated @NotNull VersionNamingScheme updateVersionNamingScheme(long deploymentProjectId, String nextVersionName, boolean autoIncrement, @NotNull Set<String> variablesToAutoIncrement) throws WebValidationException
updateVersionNamingScheme(long, String, boolean, boolean, Set)deploymentProjectId - of the projectnextVersionName - the value to be used for the next version nameautoIncrement - whether the version name should be auto-incrementedvariablesToAutoIncrement - variables to incrementWebValidationException - if any validation errors occur@NotNull VersionNamingScheme updateVersionNamingScheme(long deploymentProjectId, String nextVersionName, boolean autoIncrement, boolean applicableToBranches, @NotNull Set<String> variablesToAutoIncrement) throws WebValidationException
deploymentProjectId - of the projectnextVersionName - the value to be used for the next version nameautoIncrement - whether the version name should be auto-incrementedapplicableToBranches - whether the same scheme should be used with branchesvariablesToAutoIncrement - variables to incrementWebValidationException - if any validation errors occurvoid unlinkDeploymentProjectsRelatedToPlan(@NotNull
PlanKey planKey)
Plan from all related deployment projects.planKey - List<DeploymentProject> getDeploymentProjectsReferencingArtifact(@NotNull Artifact artifact)
artifact - void updatePlanKey(@NotNull
PlanKey originalPlanKey,
@NotNull
PlanKey newPlanKey)
originalPlanKey - original PlanKeynewPlanKey - new PlanKeyvoid resetTriggers(@NotNull
PlanKey planKey)
planKey - int getDeploymentProjectCount()
Map<String,ArtifactDefinition> generateArtifactProjectItems(@NotNull MutableDeploymentProject mutableDeploymentProject)
@NotNull Collection<Long> findDeploymentProjectsInOtherStates(@NotNull VcsLocationBambooSpecsState specsState)
DeploymentProjectWithEnvironmentForDashboard getPaginatedDeploymentsWithEnvironments(int start, int limit, @Nullable String filter)
InternalDeploymentProject.getName() and InternalEnvironment.getPosition().
Deployment projects are not operation aware, environments are.
In case of null or empty filter no filtering.Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.