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)
     
    List<com.xebialabs.xlrelease.domain.Attachment>
    addAttachment(String ciId, Iterator<jakarta.servlet.http.Part> attachments)
     
    com.xebialabs.xlrelease.domain.TemplateLogo
    addLogo(String releaseId, String fileName, String contentType, InputStream inputStream)
     
    com.xebialabs.xlrelease.domain.TemplateLogo
    addLogo(String ciId, Iterator<jakarta.servlet.http.Part> logo)
     

    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

      @Timed public List<com.xebialabs.xlrelease.domain.Attachment> addAttachment(String ciId, Iterator<jakarta.servlet.http.Part> attachments) throws IOException
      Throws:
      IOException
    • addLogo

      @Timed public com.xebialabs.xlrelease.domain.TemplateLogo addLogo(String ciId, Iterator<jakarta.servlet.http.Part> logo) throws IOException
      Throws:
      IOException
    • addAttachment

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

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

      @Timed public com.xebialabs.xlrelease.domain.TemplateLogo addLogo(String releaseId, String fileName, String contentType, InputStream inputStream)