Interface DynamicDeckService
-
@ProviderType public interface DynamicDeckService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateDeck(String deckName, org.apache.sling.api.resource.Resource masterAssetResource, List<org.apache.sling.api.resource.Resource> assetResourceList, org.apache.sling.api.resource.Resource templateFolderResource, org.apache.sling.api.resource.Resource destinationFolderResource, org.apache.sling.api.resource.ResourceResolver resourceResolver)This method will create the InDesign deck based on list of assets and other supporting parameter supplied.List<org.apache.sling.api.resource.Resource>fetchAssetListFromCollection(org.apache.sling.api.resource.Resource collectionResource, org.apache.sling.api.resource.ResourceResolver resourceResolver)This method fetch asset list from collection/smart-collection.List<org.apache.sling.api.resource.Resource>fetchAssetListFromQuery(String queryString, org.apache.sling.api.resource.ResourceResolver resourceResolver)List<org.apache.sling.api.resource.Resource>fetchAssetListFromTags(String tagsString, org.apache.sling.api.resource.ResourceResolver resourceResolver)
-
-
-
Method Detail
-
createDeck
String createDeck(String deckName, org.apache.sling.api.resource.Resource masterAssetResource, List<org.apache.sling.api.resource.Resource> assetResourceList, org.apache.sling.api.resource.Resource templateFolderResource, org.apache.sling.api.resource.Resource destinationFolderResource, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws DynamicDeckDynamoException
This method will create the InDesign deck based on list of assets and other supporting parameter supplied.TODO Planning to create service account and remove the dependency of resourceResolver from this service
- Parameters:
deckName-masterAssetResource-assetResourceList-templateFolderResource-resourceResolver-destinationFolderResource-- Returns:
- Throws:
IOExceptionjavax.jcr.RepositoryExceptionDynamicDeckDynamoException
-
fetchAssetListFromCollection
List<org.apache.sling.api.resource.Resource> fetchAssetListFromCollection(org.apache.sling.api.resource.Resource collectionResource, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws DynamicDeckDynamoException
This method fetch asset list from collection/smart-collection.TODO Planning to create service account and remove the dependency of resourceResolver from this service
- Parameters:
collectionResource-resourceResolver-- Returns:
- Throws:
DynamicDeckDynamoException
-
fetchAssetListFromQuery
List<org.apache.sling.api.resource.Resource> fetchAssetListFromQuery(String queryString, org.apache.sling.api.resource.ResourceResolver resourceResolver)
-
-