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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRefreshFolderTumbnails.ReportColumnsprotected static classRefreshFolderTumbnails.ThumbnailScanLogic
-
Field Summary
Fields Modifier and Type Field Description static StringFOLDER_THUMBNAIL
-
Constructor Summary
Constructors Constructor Description RefreshFolderTumbnails(com.day.cq.contentsync.handler.util.RequestResponseFactory reqRspFactory, org.apache.sling.engine.SlingRequestProcessor slingProcessor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildProcess(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)voidinit()protected static booleanisAssetMissingOrNewer(org.apache.sling.api.resource.Resource asset, Date compareDate)protected static booleanisPlaceholderThumbnail(org.apache.sling.api.resource.Resource damFolder)protected static booleanisThumbnailAutomatic(org.apache.sling.api.resource.Resource damFolder)protected static booleanisThumbnailContentsOutdated(org.apache.sling.api.resource.Resource damFolder)protected static booleanisThumbnailManual(org.apache.sling.api.resource.Resource damFolder)protected static booleanisThumbnailMissing(org.apache.sling.api.resource.Resource damFolder)voidstoreReport(ProcessInstance instance, org.apache.sling.api.resource.ResourceResolver rr)-
Methods inherited from class com.adobe.acs.commons.mcp.ProcessDefinition
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.acs.commons.mcp.form.FormProcessor
parseInputs
-
-
-
-
Field Detail
-
FOLDER_THUMBNAIL
public static final String FOLDER_THUMBNAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
buildProcessin classProcessDefinition- Throws:
org.apache.sling.api.resource.LoginExceptionjavax.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:
storeReportin classProcessDefinition- Throws:
javax.jcr.RepositoryExceptionorg.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)
-
-