Package com.ptc.windchill.wp.delivery
Class StandardDeliveryService
java.lang.Object
wt.services.StandardManager
com.ptc.windchill.wp.delivery.StandardDeliveryService
- All Implemented Interfaces:
DeliveryService,Serializable,wt.fc._NetFactor,NetFactor,wt.services.Manager
public class StandardDeliveryService
extends StandardManager
implements DeliveryService, Serializable
Use the newStandardDeliveryService static factory method(s), not the
StandardDeliveryService constructor, to construct instances of this class. Instances must be constructed
using the static factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateZip(DeliveryRecord deliveryRecord) Creates a zip for a previously locked package.voidcreateZip(DeliveryRecord deliveryRecord, WTContainerRef refContainer) Creates a zip for a previously locked package.getChangedMembersByDate(DeliveryRecord baseDelivery) Returns set of package members exported in the given base delivery and have modify date later than the zip attachment associated with the base delivery.getDeliveredMembers(DeliveryRecord delivery) Returns set of package members delivered in the given delivery.Get all the delivery records for a package.Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
-
Method Details
-
getDeliveries
Get all the delivery records for a package.
Supported API: true- Specified by:
getDeliveriesin interfaceDeliveryService- Parameters:
wp- Package to retrieve deliveries for.- Returns:
- WTSet of DeliveryRecords (guaranteed non-null, may be empty).
- Throws:
WTException- the wT exception
-
createZip
Creates a zip for a previously locked package.
Supported API: true- Specified by:
createZipin interfaceDeliveryService- Parameters:
deliveryRecord- the delivery record- Throws:
WTException- the wT exception
-
createZip
public void createZip(DeliveryRecord deliveryRecord, WTContainerRef refContainer) throws WTException Creates a zip for a previously locked package. The container parameter records the user context from which the zip operation is being performed. For shared delivery records, this should be set to the context where the delivery is actually being zipped. If no context is passed, the delivery record's container will be used as the context of the export.Supported API: true
- Specified by:
createZipin interfaceDeliveryService- Parameters:
deliveryRecord- the delivery record to create zip ofrefContainer- reference to context where zip action was initiated- Throws:
WTException
-
getDeliveredMembers
Returns set of package members delivered in the given delivery.
Supported API: true.- Specified by:
getDeliveredMembersin interfaceDeliveryService- Parameters:
delivery- the delivery to check for delivered members.- Returns:
- Set of package members delivered in the given delivery. Empty set if none.
- Throws:
WTException
-
getChangedMembersByDate
Returns set of package members exported in the given base delivery and have modify date later than the zip attachment associated with the base delivery. NOTE:PersistedCollectionTombstoneare not included in the result.
Supported API: true- Specified by:
getChangedMembersByDatein interfaceDeliveryService- Parameters:
baseDelivery- The base delivery to check for delivered members.- Returns:
- Set of package members changed since base delivery zip creation. Empty set if none.
- Throws:
WTException
-