Class UploadService


  • @Service
    public class UploadService
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UploadService​(AttachmentService attachmentService, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.repository.AttachmentRepository attachmentRepository, com.xebialabs.xlrelease.actors.ReleaseActorService releaseActorService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.xebialabs.xlrelease.domain.Attachment addAttachment​(java.lang.String ciId, java.lang.String fileName, byte[] fileByteArray)  
      com.xebialabs.xlrelease.domain.Attachment addAttachment​(java.lang.String ciId, java.lang.String fileName, java.lang.String contentType, java.io.InputStream inputStream)  
      java.util.List<com.xebialabs.xlrelease.domain.Attachment> addAttachment​(java.lang.String ciId, org.apache.commons.fileupload.FileItemIterator fileItems)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UploadService

        @Autowired
        public UploadService​(AttachmentService attachmentService,
                             com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository,
                             com.xebialabs.xlrelease.repository.AttachmentRepository attachmentRepository,
                             com.xebialabs.xlrelease.actors.ReleaseActorService releaseActorService)
    • Method Detail

      • addAttachment

        @Timed
        public java.util.List<com.xebialabs.xlrelease.domain.Attachment> addAttachment​(java.lang.String ciId,
                                                                                       org.apache.commons.fileupload.FileItemIterator fileItems)
                                                                                throws java.io.IOException,
                                                                                       org.apache.commons.fileupload.FileUploadException
        Throws:
        java.io.IOException
        org.apache.commons.fileupload.FileUploadException
      • addAttachment

        @Timed
        public com.xebialabs.xlrelease.domain.Attachment addAttachment​(java.lang.String ciId,
                                                                       java.lang.String fileName,
                                                                       byte[] fileByteArray)
      • addAttachment

        @Timed
        public com.xebialabs.xlrelease.domain.Attachment addAttachment​(java.lang.String ciId,
                                                                       java.lang.String fileName,
                                                                       java.lang.String contentType,
                                                                       java.io.InputStream inputStream)