Class RegulatorySubmissionProcessorHelper

java.lang.Object
com.ptc.qualitymanagement.regmstr.impl.RegulatorySubmissionProcessorHelper

public class RegulatorySubmissionProcessorHelper extends Object
Methods to assist with customizing Regulatory Submission Processing.

Supported API: true

Extendable: false
  • Method Details

    • getRegulatorySubmissionProcessor

      public static RegulatorySubmissionProcessorInterface getRegulatorySubmissionProcessor(RegulatorySubmission regulatorySubmission) throws WTException
      Looks up the most specific implementation of the RegulatorySubmissionProcessorInterface based upon the parameter. If a specific implementation for the Type of regulatorySubmission is not found, parent types are searched recursively until an implementation is found.

      Implementations of RegulatorySubmissionProcessorInterface should always be created this way. It is an anti-pattern to call new ().

      Supported API: true

      Parameters:
      regulatorySubmission - the Regulatory Submission
      Returns:
      the most specific implementation based upon the Regulatory Submission
      Throws:
      WTException - if a registered RegulatorySubmissionProcessorInterface data populator in service xconf for given Regulatory Submission type could not be found
    • reviseRuleforAttributes

      public static void reviseRuleforAttributes(RegulatorySubmission regulatorySubmission, String preferenceKey) throws Exception
      Looks for preference setting for Tracking attributes in preference management Then applies all the rules as per the value
      Supported API: true

      Parameters:
      regulatorySubmission -
      trackingAttriPreference -
      regContentPreference -
      Throws:
      Exception
    • reviseRuleforRegContent

      public static void reviseRuleforRegContent(RegulatorySubmission regulatorySubmission, String contentKey) throws Exception
      Looks for preference setting for regulatory content in preference management Then applies all the rules as per the value
      Supported API: true

      Parameters:
      regulatorySubmission -
      contentKey -
      Throws:
      Exception
    • dispatchTransmissionStartedEvent

      public static void dispatchTransmissionStartedEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Transmission Started event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.TRANSMISSION_STARTED
    • dispatchTransmissionDelayedEvent

      public static void dispatchTransmissionDelayedEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Transmission Delayed event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.TRANSMISSION_DELAYED
    • dispatchTransmissionCompletedSuccessfulEvent

      public static void dispatchTransmissionCompletedSuccessfulEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Transmission Completed Successful event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.TRANSMISSION_COMPLETED_SUCCESSFUL
    • dispatchTransmissionCompletedWithErrorsEvent

      public static void dispatchTransmissionCompletedWithErrorsEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Transmission Completed With Errors event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.TRANSMISSION_COMPLETED_WITH_ERRORS
    • dispatchAcknowledgmentSuccessfulEvent

      public static void dispatchAcknowledgmentSuccessfulEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Acknowledgment Successful event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.ACKNOWLEDGEMENT_SUCCESSFUL
    • dispatchAcknowledgmentFailedEvent

      public static void dispatchAcknowledgmentFailedEvent(RegulatorySubmission regulatorySubmission) throws WTException
      Dispatch the Acknowledgment Failed event for the regulatory submission.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Throws:
      WTException
      See Also:
      • com.ptc.qualitymanagement.regmstr.RegulatoryMasterServiceEvent.ACKNOWLEDGEMENT_FAILED
    • generatePrimaryContent

      protected static RegulatorySubmission generatePrimaryContent(RegulatorySubmission regulatorySubmission) throws Exception
      This method generates a human readable version of the data represented by the Regulatory Submission and sets it as Primary Content.
      Supported API: true

      Parameters:
      regulatorySubmission -
      Returns:
      Throws:
      Exception