Package com.adobe.dam.print.ids
Interface PrintService
public interface PrintService
-
Method Summary
Modifier and TypeMethodDescriptionCreates a brochure using multiple assetscreateCatalog(String name, List<Asset> pages, Resource parent) Creates a brochure using multiple assetscreateExportJob(Asset master, List<PrintFormat> formats) Creates a sling job for exporting pdf and indd rendition of asset if the print rendition existscreateExportPagesJob(Asset master) Creates a sling job for exporting jpg renditions of pages of template if the print rendition existscreatePages(List<String> products, Asset master, Resource parent) Creates multiple assets corresponding to products using master asset
-
Method Details
-
createExportJob
Creates a sling job for exporting pdf and indd rendition of asset if the print rendition exists- Parameters:
master- asset for which print mapping is already defined as a renditionformats- list of export formats- Returns:
- Instance of the created sling job
- Throws:
PersistenceException- - If there's an error persisting the job
-
createExportPagesJob
Creates a sling job for exporting jpg renditions of pages of template if the print rendition exists- Parameters:
master- asset for which print mapping is not yet defined- Returns:
- Instance of the created sling job
- Throws:
PersistenceException- - If there's an error persisting the job
-
createPages
List<Asset> createPages(List<String> products, Asset master, Resource parent) throws PersistenceException Creates multiple assets corresponding to products using master asset- Parameters:
products- list of paths for commerce productsmaster- asset for which print mapping is already defined as a renditionparent- parent resource where new assets are to be created- Returns:
- a list of assets created as a copy from master asset and correspoding product
- Throws:
PersistenceException- - If there's an error persisting the page
-
createCatalog
Asset createCatalog(String name, List<Asset> pages, String mergedType, Resource parent) throws PersistenceException Creates a brochure using multiple assets- Parameters:
name- name of the pagepages- ordered list of assets to be part of brochuremergedType- Template or Catalog ?parent- parent resource where new assets are to be created- Returns:
- a asset representing brochure
- Throws:
PersistenceException- - If there's an error persisting the catalog
-
createCatalog
Creates a brochure using multiple assets- Parameters:
name- name of the catalogpages- ordered list of assets to be part of brochureparent- parent resource where new assets are to be created- Returns:
- a asset representing brochure
- Throws:
PersistenceException- - If there's an error persisting the catalog
-