Interface TicketAttachmentsService

All Known Implementing Classes:
DefaultTicketAttachmentsService

public interface TicketAttachmentsService
Service provides functionality for creation MediaModel attachments with restrictions
  • Method Details

    • createAttachment

      MediaModel createAttachment(String name, String contentType, byte[] data, UserModel customer)
      Create MediaModel attachment based on provided parameters.

      Created file will be stored in DB inside secure media folder, configured via Spring. Read permission will be granted only for customer and common agent group also configured via Spring.

      Parameters:
      name - filename
      contentType - content type
      data - binary data
      customer - customer
      Returns:
      created, configured and stored MediaModel