org.octopusden.octopus.dms.service.ComponentService.kt Maven / Gradle / Ivy
package org.octopusden.octopus.dms.service
import org.octopusden.octopus.dms.client.common.dto.ArtifactFullDTO
import org.octopusden.octopus.dms.client.common.dto.ArtifactType
import org.octopusden.octopus.dms.client.common.dto.ArtifactsDTO
import org.octopusden.octopus.dms.client.common.dto.ComponentDTO
import org.octopusden.octopus.dms.client.common.dto.ComponentRequestFilter
import org.octopusden.octopus.dms.client.common.dto.DependencyDTO
import org.octopusden.octopus.dms.client.common.dto.RegisterArtifactDTO
import org.octopusden.octopus.dms.dto.ComponentVersionStatusWithInfoDTO
import org.octopusden.octopus.dms.dto.DownloadArtifactDTO
interface ComponentService {
fun getComponents(filter: ComponentRequestFilter? = null): List
fun getDependencies(componentName: String, version: String): List
fun deleteComponent(componentName: String, dryRun: Boolean)
fun getComponentMinorVersions(componentName: String): Set
fun getComponentVersions(componentName: String, minorVersions: List, includeRc: Boolean): List
fun deleteComponentVersion(componentName: String, version: String, dryRun: Boolean)
fun getPreviousLinesLatestVersions(componentName: String, version: String, includeRc: Boolean): List
fun getComponentVersionArtifacts(componentName: String, version: String, type: ArtifactType?): ArtifactsDTO
fun getComponentVersionArtifact(componentName: String, version: String, artifactId: Long): ArtifactFullDTO
fun downloadComponentVersionArtifact(componentName: String, version: String, artifactId: Long): DownloadArtifactDTO
fun registerComponentVersionArtifact(componentName: String, version: String, artifactId: Long, failOnAlreadyExists: Boolean, registerArtifactDTO: RegisterArtifactDTO): ArtifactFullDTO
fun deleteComponentVersionArtifact(componentName: String, version: String, artifactId: Long, dryRun: Boolean)
}