Package com.xebialabs.xlrelease.service
Class AttachmentService
java.lang.Object
com.xebialabs.xlrelease.service.AttachmentService
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentService(com.xebialabs.xlrelease.repository.AttachmentRepository attachmentRepository, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.service.ArchivingService archivingService, com.xebialabs.xlrelease.service.CiIdService ciIdService, XLReleaseEventBus eventBus) -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.xlrelease.domain.AttachmentattachToRelease(com.xebialabs.xlrelease.domain.Release release, String filename, String contentType, InputStream bytes) voidcreateAttachmentOnReleaseFromActor(com.xebialabs.xlrelease.domain.Release release, com.xebialabs.xlrelease.domain.Attachment attachment) voidcreateAttachmentOnTaskFromActor(com.xebialabs.xlrelease.domain.Release release, String taskId, com.xebialabs.xlrelease.domain.Attachment attachment) voiddeleteAttachment(String releaseId, String attachmentId) voiddeleteAttachmentFromTask(String releaseId, String taskId, String attachmentId) com.xebialabs.xlrelease.domain.Attachmentcom.xebialabs.xlrelease.domain.AttachmentfindByIdIncludingArchived(String attachmentId) insertArtifact(com.xebialabs.xlrelease.domain.Release release, String artifactName, InputStream content)
-
Constructor Details
-
AttachmentService
@Autowired public AttachmentService(com.xebialabs.xlrelease.repository.AttachmentRepository attachmentRepository, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.service.ArchivingService archivingService, com.xebialabs.xlrelease.service.CiIdService ciIdService, XLReleaseEventBus eventBus)
-
-
Method Details
-
findById
-
findByIdIncludingArchived
@Timed public com.xebialabs.xlrelease.domain.Attachment findByIdIncludingArchived(String attachmentId) -
createAttachmentOnReleaseFromActor
public void createAttachmentOnReleaseFromActor(com.xebialabs.xlrelease.domain.Release release, com.xebialabs.xlrelease.domain.Attachment attachment) -
createAttachmentOnTaskFromActor
public void createAttachmentOnTaskFromActor(com.xebialabs.xlrelease.domain.Release release, String taskId, com.xebialabs.xlrelease.domain.Attachment attachment) -
attachToRelease
public com.xebialabs.xlrelease.domain.Attachment attachToRelease(com.xebialabs.xlrelease.domain.Release release, String filename, String contentType, InputStream bytes) -
deleteAttachment
-
deleteAttachmentFromTask
-
insertArtifact
public String insertArtifact(com.xebialabs.xlrelease.domain.Release release, String artifactName, InputStream content)
-