public final class DynamicDeckUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
addExportFormat(com.day.cq.dam.api.Asset master,
List<com.adobe.dam.print.ids.PrintFormat> formats) |
static void |
commit(org.apache.sling.api.resource.ResourceResolver resourceResolver)
This method commit resourceResolver object after session refresh
|
static org.apache.sling.api.resource.Resource |
createFolder(org.apache.sling.api.resource.ResourceResolver resolver,
String folderName,
org.apache.sling.api.resource.Resource resource) |
static String |
createIDSPScriptArg(String name,
Object value) |
static com.day.cq.dam.api.Asset |
createUniqueAsset(org.apache.sling.api.resource.Resource parent,
String name,
org.apache.sling.api.resource.ResourceResolver resolver) |
static List<org.apache.sling.api.resource.Resource> |
fetchSmartCollectionResourceList(org.apache.sling.api.resource.Resource smartCollectionResource)
Fetches all Resources which are there in a smart collection
|
static org.apache.sling.api.resource.Resource |
findFileUnderFolderByExtension(org.apache.sling.api.resource.Resource templateFolderResource,
String extension)
This method is used to find files under specific folder by file extension.
|
static InputStream |
getAssetOriginalInputStream(org.apache.sling.api.resource.Resource annotatedXmlResource) |
static org.apache.sling.api.resource.Resource |
getAssetResourceFromPayload(com.adobe.granite.workflow.exec.WorkItem workItem,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
Get asset resource path from the payload.
|
static Map<String,String> |
getCollectionsListForLoggedInUser(String collectionQuery,
org.apache.sling.api.resource.ResourceResolver resourceResolver) |
static StringBuilder |
getImagePaths(List<String> assetPathList,
String placeholderImagePath) |
static InputStream |
getInddXmlRenditionInputStream(org.apache.sling.api.resource.Resource assetResource)
This method will return asset Input stream for indd file
|
static String |
getOrCreateFolder(org.apache.sling.api.resource.ResourceResolver resolver,
String folderName,
org.apache.sling.api.resource.Resource folderParentResource) |
static void |
updateUserData(javax.jcr.Session jcrSession) |
public static StringBuilder getImagePaths(List<String> assetPathList, String placeholderImagePath)
public static StringBuilder addExportFormat(com.day.cq.dam.api.Asset master, List<com.adobe.dam.print.ids.PrintFormat> formats)
public static Map<String,String> getCollectionsListForLoggedInUser(String collectionQuery, org.apache.sling.api.resource.ResourceResolver resourceResolver)
public static InputStream getInddXmlRenditionInputStream(org.apache.sling.api.resource.Resource assetResource) throws DynamicDeckDynamoException
assetResource - DynamicDeckDynamoExceptionpublic static InputStream getAssetOriginalInputStream(org.apache.sling.api.resource.Resource annotatedXmlResource) throws DynamicDeckDynamoException
DynamicDeckDynamoExceptionpublic static void commit(org.apache.sling.api.resource.ResourceResolver resourceResolver)
resourceResolver - public static List<org.apache.sling.api.resource.Resource> fetchSmartCollectionResourceList(org.apache.sling.api.resource.Resource smartCollectionResource) throws DynamicDeckDynamoException
smartCollectionResource - DynamicDeckDynamoExceptionpublic static String getOrCreateFolder(org.apache.sling.api.resource.ResourceResolver resolver, String folderName, org.apache.sling.api.resource.Resource folderParentResource) throws org.apache.sling.api.resource.PersistenceException
resolver - folderName - folderParentResource - org.apache.sling.api.resource.PersistenceExceptionpublic static org.apache.sling.api.resource.Resource createFolder(org.apache.sling.api.resource.ResourceResolver resolver,
String folderName,
org.apache.sling.api.resource.Resource resource)
throws org.apache.sling.api.resource.PersistenceException
resolver - folderName - resource - org.apache.sling.api.resource.PersistenceExceptionpublic static org.apache.sling.api.resource.Resource findFileUnderFolderByExtension(org.apache.sling.api.resource.Resource templateFolderResource,
String extension)
templateFolderResource - extension - public static org.apache.sling.api.resource.Resource getAssetResourceFromPayload(com.adobe.granite.workflow.exec.WorkItem workItem,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
workItem - resourceResolver - public static void updateUserData(javax.jcr.Session jcrSession)
public static com.day.cq.dam.api.Asset createUniqueAsset(org.apache.sling.api.resource.Resource parent,
String name,
org.apache.sling.api.resource.ResourceResolver resolver)
Copyright © 2013–2020 Adobe. All rights reserved.