Class UploadService

java.lang.Object
com.xebialabs.xlrelease.service.UploadService

@Service public class UploadService extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • 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, com.xebialabs.xlrelease.repository.TemplateMetadataRepository templateMetadataRepository, com.xebialabs.xlrelease.events.EventBus eventBus)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.xlrelease.domain.Attachment
    addAttachment(String ciId, String fileName, byte[] fileByteArray)
     
    com.xebialabs.xlrelease.domain.Attachment
    addAttachment(String ciId, String fileName, String contentType, InputStream inputStream)
     
    com.xebialabs.xlrelease.domain.TemplateLogo
    addLogo(String ciId, String filename, String contentType, InputStream content)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • UploadService

      @Autowired public UploadService(AttachmentService attachmentService, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.repository.AttachmentRepository attachmentRepository, com.xebialabs.xlrelease.actors.ReleaseActorService releaseActorService, com.xebialabs.xlrelease.repository.TemplateMetadataRepository templateMetadataRepository, com.xebialabs.xlrelease.events.EventBus eventBus)
  • Method Details

    • addAttachment

      public com.xebialabs.xlrelease.domain.Attachment addAttachment(String ciId, String fileName, byte[] fileByteArray)
    • addAttachment

      public com.xebialabs.xlrelease.domain.Attachment addAttachment(String ciId, String fileName, String contentType, InputStream inputStream)
    • addLogo

      public com.xebialabs.xlrelease.domain.TemplateLogo addLogo(String ciId, String filename, String contentType, InputStream content) throws IOException
      Throws:
      IOException