com.konakartadmin.blif
Interface AdminManufacturerMgrIf

All Known Implementing Classes:
AdminManufacturerMgr

public interface AdminManufacturerMgrIf

AdminManufacturerMgrIf


Method Summary
 void deleteManufacturer(int manufacturerId, boolean deleteProducts)
          Delete the manufacturer referenced to by manufacturerId.
 boolean doesManufacturerExist(int manufacturerId)
          Return true if the manufacturer referenced by manufacturerId exists
 void editManufacturer(AdminManufacturer manu)
          Edit a manufacturer and its manufacturer info objects
 AdminManufacturer[] getAllManufacturers()
          Return an array containing all manufacturers.
 AdminManufacturer getManufacturer(int manufacturerId)
          Gets a manufacturer object with full details
 AdminManufacturerSearchResult getManufacturers(AdminManufacturerSearch search, int offset, int size)
          Returns an AdminManufacturerSearchResult object.
 AdminManufacturer[] getManufacturersPerPromotion(int promotionId)
          Return an array of all manufacturers active for a promotion.
 int insertManufacturer(AdminManufacturer manu)
          Insert a manufacturer
 

Method Detail

doesManufacturerExist

boolean doesManufacturerExist(int manufacturerId)
                              throws org.apache.torque.TorqueException,
                                     KKAdminException
Return true if the manufacturer referenced by manufacturerId exists

Parameters:
manufacturerId -
Returns:
The details of a manufacturer
Throws:
org.apache.torque.TorqueException
KKAdminException

getManufacturer

AdminManufacturer getManufacturer(int manufacturerId)
                                  throws java.lang.Exception
Gets a manufacturer object with full details

Parameters:
manufacturerId -
Returns:
A manufacturer object with full details
Throws:
java.lang.Exception

deleteManufacturer

void deleteManufacturer(int manufacturerId,
                        boolean deleteProducts)
                        throws java.lang.Exception
Delete the manufacturer referenced to by manufacturerId.

Parameters:
manufacturerId -
deleteProducts -
Throws:
java.lang.Exception

editManufacturer

void editManufacturer(AdminManufacturer manu)
                      throws java.lang.Exception
Edit a manufacturer and its manufacturer info objects

Parameters:
manu -
Throws:
java.lang.Exception

insertManufacturer

int insertManufacturer(AdminManufacturer manu)
                       throws java.lang.Exception
Insert a manufacturer

Parameters:
manu -
Returns:
Returns the manufacturer Id
Throws:
java.lang.Exception

getAllManufacturers

AdminManufacturer[] getAllManufacturers()
                                        throws com.workingdogs.village.DataSetException,
                                               org.apache.torque.TorqueException,
                                               KKAdminException
Return an array containing all manufacturers.

Returns:
An array of all manufacturers
Throws:
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException

getManufacturersPerPromotion

AdminManufacturer[] getManufacturersPerPromotion(int promotionId)
                                                 throws com.workingdogs.village.DataSetException,
                                                        org.apache.torque.TorqueException,
                                                        KKAdminException
Return an array of all manufacturers active for a promotion.

Parameters:
promotionId -
Returns:
An array of all manufacturers relevant to a promotion
Throws:
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException

getManufacturers

AdminManufacturerSearchResult getManufacturers(AdminManufacturerSearch search,
                                               int offset,
                                               int size)
                                               throws org.apache.torque.TorqueException,
                                                      com.workingdogs.village.DataSetException,
                                                      KKAdminException
Returns an AdminManufacturerSearchResult object.

Constraints may be added for:

The returned objects may be ordered by:

Parameters:
search - The search object that defines the search parameters and sort order
offset - The offset in the db
size - The number of records from the specified offset
Returns:
Returns an AdminManufacturerSearchResult object
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.