Class AbstractDeliveryExportDelegate
java.lang.Object
com.ptc.windchill.wp.delivery.export.AbstractDeliveryExportDelegate
- All Implemented Interfaces:
DeliveryExportDelegate
public abstract class AbstractDeliveryExportDelegate
extends Object
implements DeliveryExportDelegate
An abstract implementation of DeliveryExportDelegate designed to provide common logic across all delegates
accessible via extension of this class.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionbuildExportFiles(DeliveryRecord deliveryRecord) Builds export files given the passed in delivery record.static StringgetExportFileName(DeliveryRecord deliveryRecord) Given the passed inDeliveryRecord, this method returns the file name for the export file, which should be used 'as is' for a single chunk export or be used as the 'base' name for a multiple-chunk export.
-
Method Details
-
buildExportFiles
Builds export files given the passed in delivery record. The delivery record must have the following values set:
- setMyWorkPackage(WorkPackage
- setDeliveryManifest(DeliveryManifestType)
- setDeliveryMedium(DeliveryMediumType)
- setDeliveryOption(DeliveryOptionType)
- setDeliveryManifest(DeliveryManifestType)
-
if DeliveryOptionType is not DeliveryOptionType.FULL
- then the following must also be set:
- setBase(DeliveryRecord)
- then the following must also be set:
Extendable: false
- Specified by:
buildExportFilesin interfaceDeliveryExportDelegate- Parameters:
deliveryRecord-DeliveryRecordbeing exported- Returns:
- export result object, containing information about the export and export files
- Throws:
WTException- to be handled by caller
- setMyWorkPackage(WorkPackage
-
getExportFileName
Given the passed inDeliveryRecord, this method returns the file name for the export file, which should be used 'as is' for a single chunk export or be used as the 'base' name for a multiple-chunk export. This method attempt to provide a cross-platform filename, with characters that might be unsupported on any particular platform replaced with one which is supported uniformly across all platforms.- Parameters:
deliveryRecord- delivery record- Returns:
- filename for export file Supported API: true
- Throws:
WTException- the wT exception
-