|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentProjectService
Service to provide access to all things Deployment Project, And Project Item.
Method Summary | |
---|---|
void |
addArtifactProjectItem(long deploymentProjectId,
ArtifactDefinition artifactDefinition)
Add artifact project item to deployment project. |
DeploymentProject |
addDeploymentProject(java.lang.String name,
java.lang.String description,
java.lang.String planKeyString)
Create a new deployment project. |
void |
deleteDeploymentProject(long deploymentProjectId)
Delete DeploymentProject and all dependent data |
DeploymentProject |
editDeploymentProject(long id,
java.lang.String name,
java.lang.String description,
java.lang.String planKeyString)
Edit the details of the deployment project |
java.util.List<DeploymentProject> |
getAllDeploymentProjects()
|
DeploymentProject |
getDeploymentProject(long id)
|
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. |
java.util.List<DeploymentProjectItem> |
getDeploymentProjectItems(long deploymentProjectId)
Does not validate deployment project exists |
java.util.List<DeploymentProject> |
getDeploymentProjectsReferencingArtifact(Artifact artifact)
Get all deployment projects that contain a version that uses specified artifact |
java.util.List<DeploymentProject> |
getDeploymentProjectsRelatedToArtifact(ArtifactDefinition artifactDefinition)
Retrieve the deployment projects that refer to the artifactDefinition within their items |
java.util.List<DeploymentProject> |
getDeploymentProjectsRelatedToPlan(PlanKey planKey)
Retrieve the deployment projects that are linked to a specific plan |
java.util.List<DeploymentProjectWithEnvironmentStatuses> |
getDeploymentProjectsWithStatusesRelatedToPlan(PlanKey planKey)
Retrieve the deployment projects that are linked to a specific plan. |
java.util.List<DeploymentProjectStatusForResultSummary> |
getDeploymentProjectsWithStatusesRelatedToPlanResult(ResultsSummary resultsSummary)
Retrieve the deployment projects that are linked to a specific result. |
java.lang.String |
getIncrementedVersionName(java.lang.String versionName)
Calculates an incremented version name for a project. |
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 |
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,
java.lang.String nextVersionName,
boolean autoIncrement,
java.util.Set<java.lang.String> variablesToAutoIncrement)
update the version naming configuration for a project |
ErrorCollection |
validateAddDeploymentProject(java.lang.String name,
java.lang.String description,
java.lang.String planKeyString)
Validates data to be used when adding a deployment project. |
ErrorCollection |
validateArtifactTaskDefinitionOnPlanChange(long id,
java.lang.String planKeyString,
java.util.Map<java.lang.String,ArtifactValidationError> artifactValidationErrors)
Validates artifact definitions on plan change and warn if artifact differ, so deployment tasks using it may fail |
ErrorCollection |
validateEditDeploymentProject(long id,
java.lang.String name,
java.lang.String description,
java.lang.String planKeyString)
Validates data to be used when editing an existing deployment. |
ErrorCollection |
validateVersionNamingScheme(long deploymentProjectId,
java.lang.String nextVersionName,
boolean autoIncrement,
java.util.Set<java.lang.String> variablesToAutoIncrement)
Validate the version naming configuration for a project |
Method Detail |
---|
@NotNull java.util.List<DeploymentProject> getAllDeploymentProjects()
@NotNull java.util.List<DeploymentProject> getDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
planKey
- of the linked plan
@NotNull java.util.List<DeploymentProjectWithEnvironmentStatuses> getDeploymentProjectsWithStatusesRelatedToPlan(@NotNull PlanKey planKey)
planKey
- of the linked plan
@NotNull java.util.List<DeploymentProjectStatusForResultSummary> getDeploymentProjectsWithStatusesRelatedToPlanResult(@NotNull ResultsSummary resultsSummary)
resultsSummary
- of the linked plan
@NotNull java.util.List<DeploymentProject> getDeploymentProjectsRelatedToArtifact(@NotNull ArtifactDefinition artifactDefinition)
artifactDefinition
- related artifact definition
@Nullable DeploymentProject getDeploymentProject(long id)
id
- of the deployment project to retrieve
@Nullable DeploymentProject getDeploymentProjectForEnvironment(long environmentID)
environmentID
- of the environment
@Nullable DeploymentProject getDeploymentProjectForVersion(long versionId)
versionId
- of the version
void deleteDeploymentProject(long deploymentProjectId)
deploymentProjectId
- of the project@NotNull ErrorCollection validateAddDeploymentProject(java.lang.String name, java.lang.String description, java.lang.String planKeyString)
name
- description
- planKeyString
-
@NotNull DeploymentProject addDeploymentProject(java.lang.String name, java.lang.String description, java.lang.String planKeyString) throws WebValidationException
name
- shortish display name of the projectdescription
- optional description of what the project is aboutplanKeyString
- key of the linked plan
WebValidationException
@NotNull ErrorCollection validateEditDeploymentProject(long id, java.lang.String name, java.lang.String description, java.lang.String planKeyString)
id
- name
- description
- planKeyString
-
@NotNull ErrorCollection validateArtifactTaskDefinitionOnPlanChange(long id, java.lang.String planKeyString, java.util.Map<java.lang.String,ArtifactValidationError> artifactValidationErrors)
id
- planKeyString
-
@NotNull DeploymentProject editDeploymentProject(long id, java.lang.String name, java.lang.String description, java.lang.String planKeyString) throws WebValidationException
id
- of the deployment project to editname
- the new name for the projectdescription
- the new description of the projectplanKeyString
- optional of the linked plan
WebValidationException
@NotNull java.util.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
- ArtifactDefinition
java.lang.IllegalArgumentException
- 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 java.lang.String getIncrementedVersionName(@NotNull java.lang.String versionName)
versionName
- to increment
@NotNull ErrorCollection validateVersionNamingScheme(long deploymentProjectId, java.lang.String nextVersionName, boolean autoIncrement, @NotNull java.util.Set<java.lang.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
@NotNull VersionNamingScheme updateVersionNamingScheme(long deploymentProjectId, java.lang.String nextVersionName, boolean autoIncrement, @NotNull java.util.Set<java.lang.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-incrementedvariablesToAutoIncrement
- variables to increment
WebValidationException
- if any validation errors occurvoid unlinkDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
Plan
from all related deployment projects.
planKey
- java.util.List<DeploymentProject> getDeploymentProjectsReferencingArtifact(@NotNull Artifact artifact)
artifact
-
void updatePlanKey(@NotNull PlanKey originalPlanKey, @NotNull PlanKey newPlanKey)
originalPlanKey
- original PlanKeynewPlanKey
- new PlanKey
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |