public interface BookableProductMgrIf
| Modifier and Type | Method and Description |
|---|---|
BookableProductIf |
getBookableProduct(int productId,
BookableProductOptionsIf options)
Gets a Bookable Product object for a product id
|
Product[] |
getBookableProductConflict(java.lang.String sessionId,
ProductIf bookableProd,
BookableProductOptionsIf options)
This method checks to see whether the bookable product passed in as a parameter conflicts
with any bookable products that the customer identified by the sessionId has already signed
up for.
If no conflicts are found, null is returned. |
Bookings |
getBookingsPerCustomer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
BookableProductOptionsIf options)
Get an array of bookings for a logged in customer.
|
Bookings |
getBookingsPerProduct(DataDescriptorIf dataDescriptor,
int productId,
BookableProductOptionsIf options)
Get an array of bookings for a product.
|
int |
insertBooking(BookingIf booking,
BookableProductOptionsIf options)
Inserts a Booking object into the database.
|
int |
insertBooking(java.lang.String sessionId,
BookingIf booking,
BookableProductOptionsIf options)
Inserts a Booking object into the database.
|
void |
refreshConfigs()
Get the config variables needed to setup the Bookable Product Mgr
|
Bookings getBookingsPerProduct(DataDescriptorIf dataDescriptor, int productId, BookableProductOptionsIf options) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, com.konakart.app.KKException
dataDescriptor - the dataDescriptorproductId - the productIdoptions - Not used at the moment. May be left null.com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionBookings getBookingsPerCustomer(java.lang.String sessionId, DataDescriptorIf dataDesc, BookableProductOptionsIf options) throws java.lang.Exception
dataDesc - the dataDescsessionId - the sessionIdoptions - Not used at the moment. May be left null.java.lang.Exception - an unexpected exceptionBookableProductIf getBookableProduct(int productId, BookableProductOptionsIf options) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, com.konakart.app.KKException
productId - the productIdoptions - Not used at the moment. May be left null.com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionint insertBooking(BookingIf booking, BookableProductOptionsIf options) throws java.lang.Exception
booking - A booking objectoptions - Options allowing an exception to be thrown for exceeding the maximum number of
bookingsjava.lang.Exception - an unexpected exceptionint insertBooking(java.lang.String sessionId,
BookingIf booking,
BookableProductOptionsIf options)
throws java.lang.Exception
sessionId - the sessionIdbooking - A booking objectoptions - Options allowing an exception to be thrown for exceeding the maximum number of
bookingsjava.lang.Exception - an unexpected exceptionProduct[] getBookableProductConflict(java.lang.String sessionId, ProductIf bookableProd, BookableProductOptionsIf options) throws java.lang.Exception
sessionId - the sessionIdbookableProd - the bookableProdoptions - Not used at the moment. May be left null.java.lang.Exception - an unexpected exceptionvoid refreshConfigs()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.