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:
  • Method Details

    • getDeliveries

      public WTSet getDeliveries(AbstractWorkPackage wp) throws WTException
      Get all the delivery records for a package.

      Supported API: true
      Specified by:
      getDeliveries in interface DeliveryService
      Parameters:
      wp - Package to retrieve deliveries for.
      Returns:
      WTSet of DeliveryRecords (guaranteed non-null, may be empty).
      Throws:
      WTException - the wT exception
    • createZip

      public void createZip(DeliveryRecord deliveryRecord) throws WTException
      Creates a zip for a previously locked package.

      Supported API: true
      Specified by:
      createZip in interface DeliveryService
      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:
      createZip in interface DeliveryService
      Parameters:
      deliveryRecord - the delivery record to create zip of
      refContainer - reference to context where zip action was initiated
      Throws:
      WTException
    • getDeliveredMembers

      public WTSet getDeliveredMembers(DeliveryRecord delivery) throws WTException
      Returns set of package members delivered in the given delivery.

      Supported API: true.
      Specified by:
      getDeliveredMembers in interface DeliveryService
      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

      public WTSet getChangedMembersByDate(DeliveryRecord baseDelivery) throws WTException
      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: PersistedCollectionTombstone are not included in the result.

      Supported API: true
      Specified by:
      getChangedMembersByDate in interface DeliveryService
      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