Interface TicketAttachmentsService
- All Known Implementing Classes:
DefaultTicketAttachmentsService
public interface TicketAttachmentsService
Service provides functionality for creation
MediaModel attachments with restrictions-
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment(String name, String contentType, byte[] data, UserModel customer) CreateMediaModelattachment based on provided parameters.
-
Method Details
-
createAttachment
CreateMediaModelattachment 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- filenamecontentType- content typedata- binary datacustomer- customer- Returns:
- created, configured and stored
MediaModel
-