Class BasePreviewBackgroundTaskExecutor

java.lang.Object
com.liferay.portal.kernel.backgroundtask.BaseBackgroundTaskExecutor
com.liferay.document.library.preview.background.task.BasePreviewBackgroundTaskExecutor
All Implemented Interfaces:
com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor

public abstract class BasePreviewBackgroundTaskExecutor extends com.liferay.portal.kernel.backgroundtask.BaseBackgroundTaskExecutor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.liferay.document.library.configuration.DLFileEntryConfigurationProvider
     
    protected com.liferay.document.library.kernel.service.DLFileEntryLocalService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor
     
    com.liferay.portal.kernel.backgroundtask.BackgroundTaskResult
    execute(com.liferay.portal.kernel.backgroundtask.BackgroundTask backgroundTask)
     
    protected abstract void
    generatePreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
     
    protected void
    generatePreviews(long companyId)
     
    com.liferay.portal.kernel.backgroundtask.display.BackgroundTaskDisplay
    getBackgroundTaskDisplay(com.liferay.portal.kernel.backgroundtask.BackgroundTask backgroundTask)
     
    protected abstract String[]
     

    Methods inherited from class com.liferay.portal.kernel.backgroundtask.BaseBackgroundTaskExecutor

    generateLockKey, getBackgroundTaskStatusMessageTranslator, getIsolationLevel, getLocale, handleException, isSerial, setBackgroundTaskStatusMessageTranslator, setIsolationLevel

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dlFileEntryConfigurationProvider

      protected com.liferay.document.library.configuration.DLFileEntryConfigurationProvider dlFileEntryConfigurationProvider
    • dlFileEntryLocalService

      protected com.liferay.document.library.kernel.service.DLFileEntryLocalService dlFileEntryLocalService
  • Constructor Details

    • BasePreviewBackgroundTaskExecutor

      public BasePreviewBackgroundTaskExecutor()
  • Method Details

    • clone

      public com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor clone()
      Specified by:
      clone in interface com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor
      Specified by:
      clone in class com.liferay.portal.kernel.backgroundtask.BaseBackgroundTaskExecutor
    • execute

      public com.liferay.portal.kernel.backgroundtask.BackgroundTaskResult execute(com.liferay.portal.kernel.backgroundtask.BackgroundTask backgroundTask) throws Exception
      Throws:
      Exception
    • getBackgroundTaskDisplay

      public com.liferay.portal.kernel.backgroundtask.display.BackgroundTaskDisplay getBackgroundTaskDisplay(com.liferay.portal.kernel.backgroundtask.BackgroundTask backgroundTask)
    • generatePreview

      protected abstract void generatePreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) throws Exception
      Throws:
      Exception
    • generatePreviews

      protected void generatePreviews(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMimeTypes

      protected abstract String[] getMimeTypes()