com.ibm.commerce.subscription.facade.server.helpers

Interface SubscriptionDetailsValidator

  • All Known Implementing Classes:
    SubscriptionDetailsValidatorImpl


    public interface SubscriptionDetailsValidator
    This helper provides services to validate the details in the Subscription noun.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copy right field.
      static java.lang.String NAME
      The name of this class
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.util.List validateChange(java.lang.Object aNoun)
      This method validates the subscription noun for a change operation.
      java.util.List validateCreate(java.lang.Object aNoun)
      This method checks if the logical Subscription noun can be created.
      java.util.List validateDelete(java.lang.Object aNoun)
      This method checks if the logical Subscription noun can be deleted.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copy right field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this class
    • Method Detail

      • validateCreate

        java.util.List validateCreate(java.lang.Object aNoun)
                               throws AbstractApplicationException
        This method checks if the logical Subscription noun can be created. This method validates the following,
      • SubscriptionTypeCode
      • The purchase details
      • The fulfillment schedule
      • The payment schedule
Parameters:
aNoun - The subscription noun.
Returns:
This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
Throws:
AbstractApplicationException
  • validateChange

    java.util.List validateChange(java.lang.Object aNoun)
                           throws AbstractApplicationException
    This method validates the subscription noun for a change operation.
    Parameters:
    aNoun - The logical noun to validate.
    Returns:
    This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
    Throws:
    AbstractApplicationException
  • validateDelete

    java.util.List validateDelete(java.lang.Object aNoun)
                           throws AbstractApplicationException
    This method checks if the logical Subscription noun can be deleted. If the noun cannot be deleted, the appropriate error exception is added to the list of exceptions to be returned to the caller.
    Parameters:
    aNoun - The logical subscription noun to validate.
    Returns:
    This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
    Throws:
    AbstractApplicationException