Class DefaultTicketAttachmentsService

java.lang.Object
de.hybris.platform.ticket.service.impl.DefaultTicketAttachmentsService
All Implemented Interfaces:
TicketAttachmentsService

public class DefaultTicketAttachmentsService extends Object implements TicketAttachmentsService
Implementation for TicketAttachmentsService
  • Constructor Details

    • DefaultTicketAttachmentsService

      public DefaultTicketAttachmentsService()
  • Method Details

    • createAttachment

      public MediaModel createAttachment(String name, String contentType, byte[] data, UserModel customer)
      Description copied from interface: TicketAttachmentsService
      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.

      Specified by:
      createAttachment in interface TicketAttachmentsService
      Parameters:
      name - filename
      contentType - content type
      data - binary data
      customer - customer
      Returns:
      created, configured and stored MediaModel
    • checkFileExtension

      protected void checkFileExtension(String name)
    • getMediaService

      protected MediaService getMediaService()
      Returns:
      the mediaService
    • setMediaService

      public void setMediaService(MediaService mediaService)
      Parameters:
      mediaService - the mediaService to set
    • getMediaPermissionService

      protected MediaPermissionService getMediaPermissionService()
      Returns:
      the mediaPermissionService
    • setMediaPermissionService

      public void setMediaPermissionService(MediaPermissionService mediaPermissionService)
      Parameters:
      mediaPermissionService - the mediaPermissionService to set
    • getCatalogVersionService

      protected CatalogVersionService getCatalogVersionService()
      Returns:
      the catalogVersionService
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)
      Parameters:
      catalogVersionService - the catalogVersionService to set
    • getModelService

      protected ModelService getModelService()
      Returns:
      the modelService
    • setModelService

      public void setModelService(ModelService modelService)
      Parameters:
      modelService - the modelService to set
    • getCatalogId

      protected String getCatalogId()
      Returns:
      the catalogId
    • setCatalogId

      public void setCatalogId(String catalogId)
      Parameters:
      catalogId - the catalogId to set
    • getCatalogVersionName

      protected String getCatalogVersionName()
      Returns:
      the catalogVersionName
    • setCatalogVersionName

      public void setCatalogVersionName(String catalogVersionName)
      Parameters:
      catalogVersionName - the catalogVersionName to set
    • getCommonCsAgentUserGroup

      protected String getCommonCsAgentUserGroup()
      Returns:
      the commonCsAgentUserGroup
    • setCommonCsAgentUserGroup

      public void setCommonCsAgentUserGroup(String commonCsAgentUserGroup)
      Parameters:
      commonCsAgentUserGroup - the commonCsAgentUserGroup to set
    • getFolderName

      protected String getFolderName()
      Returns:
      the folderName
    • setFolderName

      public void setFolderName(String folderName)
      Parameters:
      folderName - the folderName to set
    • getUserService

      protected UserService getUserService()
      Returns:
      the userService
    • setUserService

      public void setUserService(UserService userService)
      Parameters:
      userService - the userService to set
    • getAllowedUploadedFormats

      protected String getAllowedUploadedFormats()
    • setAllowedUploadedFormats

      public void setAllowedUploadedFormats(String allowedUploadedFormats)