Package com.adobe.dam.print.ids
Interface PrintService
-
public interface PrintService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Asset
createCatalog(java.lang.String name, java.util.List<Asset> pages, java.lang.String mergedType, Resource parent)
Creates a brochure using multiple assetsAsset
createCatalog(java.lang.String name, java.util.List<Asset> pages, Resource parent)
Creates a brochure using multiple assetsJob
createExportJob(Asset master, java.util.List<PrintFormat> formats)
Creates a sling job for exporting pdf and indd rendition of asset if the print rendition existsJob
createExportPagesJob(Asset master)
Creates a sling job for exporting jpg renditions of pages of template if the print rendition existsjava.util.List<Asset>
createPages(java.util.List<java.lang.String> products, Asset master, Resource parent)
Creates multiple assets corresponding to products using master asset
-
-
-
Method Detail
-
createExportJob
Job createExportJob(Asset master, java.util.List<PrintFormat> formats) throws PersistenceException
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
Job createExportPagesJob(Asset master) throws PersistenceException
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
java.util.List<Asset> createPages(java.util.List<java.lang.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(java.lang.String name, java.util.List<Asset> pages, java.lang.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 brochureparent
- parent resource where new assets are to be createdmergedType
- Template or Catalog ?- Returns:
- a asset representing brochure
- Throws:
PersistenceException
- - If there's an error persisting the catalog
-
createCatalog
Asset createCatalog(java.lang.String name, java.util.List<Asset> pages, Resource parent) throws PersistenceException
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
-
-