Class RefreshFolderTumbnails

java.lang.Object
com.adobe.acs.commons.mcp.ProcessDefinition
com.adobe.acs.commons.mcp.impl.processes.RefreshFolderTumbnails
All Implemented Interfaces:
FormProcessor

public class RefreshFolderTumbnails extends ProcessDefinition
Replace folder thumbnails under a user-definable set of circumstances As a business user, I would like an easy way to scan and repair missing thumbnails, or just regenerate all thumbnails under a given tree of the DAM.
  • Field Details

  • Constructor Details

    • RefreshFolderTumbnails

      public RefreshFolderTumbnails(org.apache.sling.engine.SlingRequestProcessor slingProcessor)
  • Method Details

    • init

      public void init()
    • buildProcess

      public void buildProcess(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr) throws org.apache.sling.api.resource.LoginException, javax.jcr.RepositoryException
      Specified by:
      buildProcess in class ProcessDefinition
      Throws:
      org.apache.sling.api.resource.LoginException
      javax.jcr.RepositoryException
    • storeReport

      public void storeReport(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr) throws javax.jcr.RepositoryException, org.apache.sling.api.resource.PersistenceException
      Specified by:
      storeReport in class ProcessDefinition
      Throws:
      javax.jcr.RepositoryException
      org.apache.sling.api.resource.PersistenceException
    • isThumbnailMissing

      protected static boolean isThumbnailMissing(org.apache.sling.api.resource.Resource damFolder)
    • isPlaceholderThumbnail

      protected static boolean isPlaceholderThumbnail(org.apache.sling.api.resource.Resource damFolder) throws IOException
      Throws:
      IOException
    • isThumbnailContentsOutdated

      protected static boolean isThumbnailContentsOutdated(org.apache.sling.api.resource.Resource damFolder)
    • isAssetMissingOrNewer

      protected static boolean isAssetMissingOrNewer(org.apache.sling.api.resource.Resource asset, Date compareDate)
    • isThumbnailManual

      protected static boolean isThumbnailManual(org.apache.sling.api.resource.Resource damFolder)
    • isThumbnailAutomatic

      protected static boolean isThumbnailAutomatic(org.apache.sling.api.resource.Resource damFolder)