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

Class SubscriptionDetailsValidatorImpl

  • java.lang.Object
    • com.ibm.commerce.subscription.facade.server.helpers.SubscriptionDetailsValidatorImpl
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright field.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubscriptionDetailsValidatorImpl

        public SubscriptionDetailsValidatorImpl()
    • Method Detail

      • validateCreate

        public 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
Specified by:
validateCreate in interface SubscriptionDetailsValidator
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
  • validateDelete

    public 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.
    Specified by:
    validateDelete in interface SubscriptionDetailsValidator
    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