Class RefreshFolderTumbnails
java.lang.Object
com.adobe.acs.commons.mcp.ProcessDefinition
com.adobe.acs.commons.mcp.impl.processes.RefreshFolderTumbnails
- All Implemented Interfaces:
FormProcessor
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 ClassesModifier and TypeClassDescriptionstatic enumprotected static enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRefreshFolderTumbnails(org.apache.sling.engine.SlingRequestProcessor slingProcessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildProcess(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, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adobe.acs.commons.mcp.form.FormProcessor
parseInputs
-
Field Details
-
FOLDER_THUMBNAIL
- See Also:
-
-
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:
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)
-