public class DeploymentProjectDaoImpl extends StatelessSessionHibernateDaoSupport implements DeploymentProjectDao
Constructor and Description |
---|
DeploymentProjectDaoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
countAllDeploymentProjects() |
MutableDeploymentProject |
createNewDeploymentProjectInstance() |
MutableVersionNamingScheme |
createNewVersionNamingSchemeInstance() |
void |
delete(MutableDeploymentProject deploymentProject)
Delete DeploymentProject and related DeploymentProjectItems
|
void |
delete(MutableDeploymentProjectItem deploymentProjectItem)
Delete DeploymentProjectItem
|
void |
delete(MutableVersionNamingScheme versionNamingScheme)
Delete the version naming Scheme
|
boolean |
doesArtifactProjectItemExist(long deploymentProjectId,
long artifactId)
Check for existence of DeploymentProjectItem by DB id of the DeploymentProject and ArtifactDefinition
|
MutableDeploymentProject |
findDeploymentProjectByName(String name) |
MutableDeploymentProject |
findDeploymentProjectByOid(BambooEntityOid oid) |
Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) |
List<MutableDeploymentProject> |
findDeploymentProjectsRelatedToArtifact(long artifactId) |
List<MutableDeploymentProject> |
getAllDeploymentProjects() |
List<MutableDeploymentProject> |
getAllDeploymentProjects(int firstResult,
int maxResults) |
MutableDeploymentProjectItem |
getArtifactProjectItem(long deploymentProjectId,
long artifactId)
Get DeploymentProjectItem by DB id of the DeploymentProject and ArtifactDefinition
|
MutableDeploymentProject |
getDeploymentProject(DeploymentKey key)
Get DeploymentProject by key
|
MutableDeploymentProject |
getDeploymentProject(long deploymentProjectId)
Get DeploymentProject by DB id
|
int |
getDeploymentProjectCount() |
MutableDeploymentProject |
getDeploymentProjectForEnvironment(long environmentId)
Get DeploymentProject associated with Environment
|
MutableDeploymentProject |
getDeploymentProjectForVersion(long versionId)
Get DeploymentProject associated with Version
|
List<MutableDeploymentProject> |
getDeploymentProjectsReferencingArtifact(long artifactId)
Get all deployment projects that contain a version that uses specified artifact
|
List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlan(PlanKey planKey)
Get DeploymentProjects linked to Plan with planKey.
|
List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlans(Set<PlanKey> planKeyFamily)
Get DeploymentProjects linked to Plan identified with any of plan keys.
|
BambooEntityOid |
getMaxDeploymentProjectOid(int serverKey) |
MutableDeploymentProjectItem |
getProjectItem(long deploymentProjectItemId)
Get DeploymentProjectItem by DB id
|
List<MutableDeploymentProjectItem> |
getProjectItems(long deploymentProjectId)
Get list of DeploymentProject items
|
MutableVersionNamingScheme |
getVersionNamingSchemeForProject(long deploymentProjectId)
Get the version naming configuration for a specific project
|
boolean |
isDeploymentProjectNameConflicting(String name)
Deployment Project Names need to be unique within the system.
|
void |
removeAbstractProjectItems() |
void |
save(MutableDeploymentProject deploymentProject)
Save DeploymentProject
|
void |
save(MutableDeploymentProjectItem deploymentProjectItem)
Save DeploymentProjectItem
|
void |
save(MutableVersionNamingScheme versionNamingScheme)
Save the version naming Scheme
|
getCacheAwareHibernateTemplate
public long countAllDeploymentProjects()
countAllDeploymentProjects
in interface DeploymentProjectDao
@NotNull public List<MutableDeploymentProject> getAllDeploymentProjects()
getAllDeploymentProjects
in interface DeploymentProjectDao
@NotNull public List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults)
getAllDeploymentProjects
in interface DeploymentProjectDao
firstResult
starts from 0@NotNull public List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
DeploymentProjectDao
getDeploymentProjectsRelatedToPlan
in interface DeploymentProjectDao
planKey
- of the linked Plan@NotNull public List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlans(@NotNull Set<PlanKey> planKeyFamily)
DeploymentProjectDao
getDeploymentProjectsRelatedToPlans
in interface DeploymentProjectDao
planKeyFamily
- set of plan keys, usually it is set of all branch keys + master plan key@NotNull public List<MutableDeploymentProject> findDeploymentProjectsRelatedToArtifact(long artifactId)
findDeploymentProjectsRelatedToArtifact
in interface DeploymentProjectDao
public void save(@NotNull MutableDeploymentProject deploymentProject)
DeploymentProjectDao
save
in interface DeploymentProjectDao
public MutableDeploymentProject getDeploymentProject(long deploymentProjectId)
DeploymentProjectDao
getDeploymentProject
in interface DeploymentProjectDao
@Nullable public MutableDeploymentProject getDeploymentProject(@NotNull DeploymentKey key)
DeploymentProjectDao
getDeploymentProject
in interface DeploymentProjectDao
@Nullable public MutableDeploymentProject getDeploymentProjectForEnvironment(long environmentId)
DeploymentProjectDao
getDeploymentProjectForEnvironment
in interface DeploymentProjectDao
environmentId
- Environment id@Nullable public MutableDeploymentProject getDeploymentProjectForVersion(long versionId)
DeploymentProjectDao
getDeploymentProjectForVersion
in interface DeploymentProjectDao
versionId
- Version idpublic boolean isDeploymentProjectNameConflicting(@NotNull String name)
DeploymentProjectDao
isDeploymentProjectNameConflicting
in interface DeploymentProjectDao
name
- to check@Nullable public MutableDeploymentProject findDeploymentProjectByOid(BambooEntityOid oid)
findDeploymentProjectByOid
in interface DeploymentProjectDao
@Nullable public MutableDeploymentProject findDeploymentProjectByName(String name)
findDeploymentProjectByName
in interface DeploymentProjectDao
@NotNull public List<MutableDeploymentProjectItem> getProjectItems(long deploymentProjectId)
DeploymentProjectDao
getProjectItems
in interface DeploymentProjectDao
public MutableDeploymentProjectItem getProjectItem(long deploymentProjectItemId)
DeploymentProjectDao
getProjectItem
in interface DeploymentProjectDao
@Nullable public MutableDeploymentProjectItem getArtifactProjectItem(long deploymentProjectId, long artifactId)
DeploymentProjectDao
getArtifactProjectItem
in interface DeploymentProjectDao
public boolean doesArtifactProjectItemExist(long deploymentProjectId, long artifactId)
DeploymentProjectDao
doesArtifactProjectItemExist
in interface DeploymentProjectDao
public void save(MutableDeploymentProjectItem deploymentProjectItem)
DeploymentProjectDao
save
in interface DeploymentProjectDao
public void delete(MutableDeploymentProjectItem deploymentProjectItem)
DeploymentProjectDao
delete
in interface DeploymentProjectDao
public void delete(MutableDeploymentProject deploymentProject)
DeploymentProjectDao
delete
in interface DeploymentProjectDao
@Nullable public MutableVersionNamingScheme getVersionNamingSchemeForProject(long deploymentProjectId)
DeploymentProjectDao
getVersionNamingSchemeForProject
in interface DeploymentProjectDao
deploymentProjectId
- of the projectpublic void save(MutableVersionNamingScheme versionNamingScheme)
DeploymentProjectDao
save
in interface DeploymentProjectDao
versionNamingScheme
- to savepublic void delete(MutableVersionNamingScheme versionNamingScheme)
DeploymentProjectDao
delete
in interface DeploymentProjectDao
versionNamingScheme
- to deletepublic int getDeploymentProjectCount()
getDeploymentProjectCount
in interface DeploymentProjectDao
public List<MutableDeploymentProject> getDeploymentProjectsReferencingArtifact(long artifactId)
DeploymentProjectDao
getDeploymentProjectsReferencingArtifact
in interface DeploymentProjectDao
@NotNull public BambooEntityOid getMaxDeploymentProjectOid(int serverKey)
getMaxDeploymentProjectOid
in interface DeploymentProjectDao
@NotNull public MutableDeploymentProject createNewDeploymentProjectInstance()
createNewDeploymentProjectInstance
in interface DeploymentProjectDao
@NotNull public MutableVersionNamingScheme createNewVersionNamingSchemeInstance()
createNewVersionNamingSchemeInstance
in interface DeploymentProjectDao
@NotNull public Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
findDeploymentProjectsInOtherStates
in interface DeploymentProjectDao
public void removeAbstractProjectItems()
removeAbstractProjectItems
in interface DeploymentProjectDao
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.