Interface AMProcessor<M>


@ProviderType public interface AMProcessor<M>
Generates a particular type of media.

The type parameter M specifies the model used by the processor to generate the media. The type parameter T restricts the valid AMAttribute set available.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cleanUp(M model)
    Completely removes any generated media for the model.
    void
    process(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String configurationEntryUuid)
     
    void
    process(M model)
    Generates the media for the model.
  • Method Details

    • cleanUp

      void cleanUp(M model) throws com.liferay.portal.kernel.exception.PortalException
      Completely removes any generated media for the model.
      Parameters:
      model - the model for which all generated media is deleted
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if an error occurred while calling any Liferay services
    • process

      void process(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String configurationEntryUuid) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • process

      void process(M model) throws com.liferay.portal.kernel.exception.PortalException
      Generates the media for the model. Some implementations might not generate any media for the model.
      Parameters:
      model - the model for which media is generated
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if an error occurred while calling any Liferay services