|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KKAdminIf
Contains all of the interfaces required to run a KonaKart Admin application.
Method Summary | |
---|---|
void |
addAddressesToProduct(java.lang.String sessionId,
AdminAddress[] addresses,
int productId)
Associate an array of addresses to a product. |
void |
addAllProductsToSearchEngine(java.lang.String sessionId,
boolean async)
Add all products in the KonaKart database to the search engine. |
void |
addApiCallsToRole(java.lang.String sessionId,
AdminApiCall[] apiCalls,
int roleId)
Adds the array of AdminApiCall objects to the role identified by the roleId parameter. |
void |
addCategoriesToPromotion(java.lang.String sessionId,
AdminCategory[] categories,
int promotionId,
int rule)
Add the array of categories to the promotion identified by promotionId. |
void |
addCategoriesToTagGroups(java.lang.String sessionId,
int tagGroupId,
int[] categories)
Add the array of categories to the tagGroup specified. |
void |
addCouponsToPromotion(java.lang.String sessionId,
AdminCoupon[] coupons,
int promotionId)
Add the array of coupons to the promotion identified by promotionId. |
void |
addCustomDataToSession(java.lang.String sessionId,
java.lang.String data,
int position)
A sessionId is created when a customer logs in to the KonaKart Admin App using the login() API call. |
void |
addCustomerGroupsToPromotion(java.lang.String sessionId,
int[] groupIds,
int promotionId,
int rule)
Add the array of customer groups (identified by the group ids) to the promotion identified by promotionId. |
void |
addCustomersToPromotion(java.lang.String sessionId,
AdminCustomer[] customers,
int promotionId,
int rule,
int maxUse)
Add the array of customers to the promotion identified by promotionId. |
void |
addCustomersToPromotionPerOrdersMade(java.lang.String sessionId,
java.util.Calendar lastOrderDate,
boolean havePlacedOrder,
int promotionId,
int rule,
int maxUse)
Add to the promotion identified by promotionId, the customers who have or haven't placed an order since the lastOrderDate passed in as a parameter. |
void |
addExpressionsToPromotion(java.lang.String sessionId,
AdminExpression[] expressions,
int promotionId)
Add the array of expressions to the promotion identified by promotionId. |
void |
addGiftCertificatesToPromotion(java.lang.String sessionId,
AdminProduct[] giftCertificates,
int promotionId)
Add the array of gift certificate products to the promotion. |
void |
addManufacturersToPromotion(java.lang.String sessionId,
AdminManufacturer[] manufacturers,
int promotionId,
int rule)
Add the array of manufacturers to the promotion identified by promotionId. |
void |
addPanelsToRole(java.lang.String sessionId,
AdminPanel[] panels,
int roleId)
Adds the array of AdminPanel objects to the role identified by the roleId parameter. |
int |
addPoints(java.lang.String sessionId,
int customerId,
int points,
java.lang.String code,
java.lang.String description)
Adds a number of reward points to the total for the customer identified by the customerId parameter. |
void |
addProdAttrDescsToTemplate(java.lang.String sessionId,
AdminProdAttrDesc[] attrDescs,
int templateId)
Add the array of AdminProdAttrDesc objects to the template. |
void |
addProductsToPromotion(java.lang.String sessionId,
AdminProduct[] products,
int promotionId,
int rule)
Add the array of products to the promotion. |
void |
addProductToSearchEngine(java.lang.String sessionId,
int productId)
Add the product referenced by productId to the search engine. |
void |
addPromotionsToCoupon(java.lang.String sessionId,
AdminPromotion[] promotions,
int couponId)
Add the array of promotions to the coupon identified by couponId. |
void |
addRelatedProducts(java.lang.String sessionId,
AdminProduct[] products,
int productId,
int relationType)
Add the array of products to the product defined by productId. |
void |
addRolesToUser(java.lang.String sessionId,
AdminRole[] roles,
int userId)
Adds the array of AdminRole objects to the user identified by the userId parameter. |
void |
addTagGroupsToCategory(java.lang.String sessionId,
AdminTagGroup[] tagGroups,
int categoryId)
Add the array of AdminTagGroups to the category identified by categoryId. |
void |
addTagsToProduct(java.lang.String sessionId,
AdminTag[] tags,
int productId)
Add the array of AdminTags to the product identified by productId. |
com.konakart.app.NameValue[] |
callPaymentModule(java.lang.String sessionId,
java.lang.String moduleClassName,
com.konakart.app.PaymentOptions options)
This method is used to call a payment module from the Admin App. |
void |
changePassword(java.lang.String sessionId,
java.lang.String currentPassword,
java.lang.String newPassword)
Ensures that the current password is correct, and then changes it to the new password. |
boolean |
checkDataIntegrity(java.lang.String sessionId,
AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of data in the specified area in the KonaKart database |
int |
checkSession(java.lang.String sessionId)
The given sessionId is checked to see whether it exists and whether it is has timed out. |
void |
cloneStore(java.lang.String sessionId,
AdminNewStoreOptions options,
java.lang.String storeToCloneId,
AdminStore newStore)
Insert a new store into the mall by cloning a specified store. |
int |
copyProductToStore(java.lang.String sessionId,
int productId,
java.lang.String storeIdFrom,
java.lang.String storeIdTo,
AdminCopyProductOptions options)
Copies a product from the store referenced by storeIdFrom to the store referenced by storeIdTo . |
java.lang.String |
custom(java.lang.String input1,
java.lang.String input2)
A custom interface that you have to provide an implementation for. |
java.lang.String |
customSecure(java.lang.String sessionId,
java.lang.String input1,
java.lang.String input2)
A custom interface that you have to provide an implementation for. |
void |
deleteAddress(java.lang.String sessionId,
int addressId)
Deletes an AdminAddress. |
int |
deleteAddressFormat(java.lang.String sessionId,
int id)
Delete an AdminAddressFormat object referenced by it's id. |
void |
deleteApiCall(java.lang.String sessionId,
int apiCallId)
Deletes the apiCall identified by the apiCallId parameter. |
void |
deleteAuditData(java.lang.String sessionId,
AdminAuditSearch delSearch)
Delete audit data from the database. |
void |
deleteBooking(java.lang.String sessionId,
int bookingId,
AdminBookableProductOptions options)
Delete the booking with the specified bookingId. |
void |
deleteCatalog(java.lang.String sessionId,
int catalogId)
Delete a Catalog definition from the database |
void |
deleteCategoryTree(java.lang.String sessionId,
int categoryId,
int options)
Delete the category referenced to by categoryId. |
int |
deleteCountry(java.lang.String sessionId,
int id)
Delete a Country. |
void |
deleteCoupon(java.lang.String sessionId,
int couponId)
Delete the coupon referenced by couponId. |
int |
deleteCurrency(java.lang.String sessionId,
int currId)
Delete a Currency. |
int |
deleteCustomer(java.lang.String sessionId,
int custId)
Delete a Customer. |
int |
deleteCustomerGroup(java.lang.String sessionId,
int custGroupId)
Delete a Customer Group. |
int |
deleteCustomerTag(java.lang.String sessionId,
int id)
Delete a Customer tag |
void |
deleteCustomerTagForCustomer(java.lang.String sessionId,
int customerId,
java.lang.String tagName)
Deletes the value of the customer tag referenced by tagName for the customer
referenced by customerId . |
int |
deleteExpiredSessions(java.lang.String sessionId)
Deletes all sessions that have expired. |
int |
deleteExpression(java.lang.String sessionId,
int id)
Deletes the Expression object referenced by id . |
int |
deleteExpressionVariable(java.lang.String sessionId,
int id)
Deletes the ExpressionVariable object referenced by id . |
void |
deleteExpressionVariablesForExpression(java.lang.String sessionId,
int expressionId)
Deletes all of the AdminExpressionVariable objects belonging to the AdminExpression referenced by expressionId . |
boolean |
deleteFile(java.lang.String sessionId,
java.lang.String fileName)
Delete the file. |
int |
deleteGeoZone(java.lang.String sessionId,
int id)
Delete a GeoZone. |
int |
deleteLanguage(java.lang.String sessionId,
int langId)
Delete a Language. |
void |
deleteMallStore(java.lang.String sessionId,
java.lang.String storeId)
Deletes an AdminStore object. |
void |
deleteManufacturer(java.lang.String sessionId,
int manufacturerId,
boolean deleteProducts)
Delete the manufacturer and manufacturer info records. |
void |
deleteMiscItem(java.lang.String sessionId,
int miTypeId)
Delete an AdminMiscItem. |
void |
deleteMiscItemType(java.lang.String sessionId,
int miTypeId,
boolean deleteChildren)
Delete an AdminMiscItemType. |
void |
deleteMsg(java.lang.String sessionId,
java.lang.String key,
int type,
java.lang.String locale)
Delete a Message from the database |
int |
deleteOrder(java.lang.String sessionId,
int ordId)
Deletes an order and all associated records (eg addresses, status history etc). |
void |
deleteOrderReturn(java.lang.String sessionId,
int orderRetId)
Delete the AdminOrderReturn object and any associated AdminOrderReturnProduct objects. |
int |
deleteOrderStatusName(java.lang.String sessionId,
int id)
Delete an OrderStatusName object. |
void |
deletePanel(java.lang.String sessionId,
int panelId)
Deletes the panel identified by the panelId parameter. |
int |
deletePaymentSchedule(java.lang.String sessionId,
int id)
Delete a Payment Schedule Object |
int |
deletePoints(java.lang.String sessionId,
int customerId,
int points,
java.lang.String code,
java.lang.String description)
Deletes a number of reward points from the total for the customer identified by the customerId parameter. |
int |
deleteProdAttrDesc(java.lang.String sessionId,
int id)
Delete an AdminProdAttrDesc |
int |
deleteProdAttrTemplate(java.lang.String sessionId,
int id)
Delete an AdminProdAttrTemplate object. |
void |
deleteProduct(java.lang.String sessionId,
int productId)
Delete the product referenced by the productId parameter. |
void |
deleteProductAttribute(java.lang.String sessionId,
int productAttributeId)
Delete the productAttribute. |
void |
deleteProductAttributesPerProduct(java.lang.String sessionId,
int productId)
Delete the productAttributes Per product. |
void |
deleteProductNotification(java.lang.String sessionId,
AdminProductNotification apn)
Delete a Product Notification record for the specified customer and product if it's found. |
void |
deleteProductOptions(java.lang.String sessionId,
int productOptionId)
Delete a product option record for all languages and all of its records in the options values to options table and all of its values. |
void |
deleteProductOptionValues(java.lang.String sessionId,
int productOptionValueId)
Delete a product option value record for all languages and all of its records in the options values to options table. |
void |
deletePromotion(java.lang.String sessionId,
int promotionId)
Delete the promotion referenced by promotionId. |
void |
deleteReview(java.lang.String sessionId,
int reviewId)
Delete the review and all entries in the reviews description table. |
void |
deleteRole(java.lang.String sessionId,
int roleId)
Deletes the role identified by the roleId parameter. |
void |
deleteSingleCategory(java.lang.String sessionId,
int categoryId)
Delete a single category and its descriptions. |
void |
deleteSpecial(java.lang.String sessionId,
int specialId)
Deletes the special referenced by the special id |
int |
deleteSubscription(java.lang.String sessionId,
int id)
Delete a Subscription Object |
int |
deleteSubZone(java.lang.String sessionId,
int id)
Delete a SubZone. |
void |
deleteTag(java.lang.String sessionId,
int id)
Delete a Tag object. |
void |
deleteTagGroup(java.lang.String sessionId,
int id)
Delete a TagGroup object |
int |
deleteTaxClass(java.lang.String sessionId,
int id)
Delete an AdminTaxClass object referenced by it's id. |
int |
deleteTaxRate(java.lang.String sessionId,
int id)
Delete an AdminTaxRate object referenced by it's id. |
void |
deleteWishList(java.lang.String sessionId,
int wishListId)
Delete a wish list and all of its wish list items. |
void |
deleteWishListItem(java.lang.String sessionId,
int wishListItemId)
Delete a wish list and all of its wish list items. |
int |
deleteZone(java.lang.String sessionId,
int id)
Delete an AdminZone object referenced by it's id. |
boolean |
doesCustomerExistForEmail(java.lang.String sessionId,
java.lang.String emailAddr)
Checks to see whether a customer already exists with this email address. |
boolean |
doesMallStoreExist(java.lang.String storeId)
Does the specified store exist? |
boolean |
doesProductExist(java.lang.String sessionId,
int productId)
Is there a product in the database with the specified productId |
void |
editApiCall(java.lang.String sessionId,
AdminApiCall apiCall)
Edit an ApiCall. |
void |
editCategory(java.lang.String sessionId,
AdminCategory cat)
The category is edited. |
void |
editCoupon(java.lang.String sessionId,
AdminCoupon coupon)
Edits the coupon, replacing existing data with data in the coupon parameter. |
void |
editManufacturer(java.lang.String sessionId,
AdminManufacturer manu)
Edits the manufacturer, replacing existing data with data in the manu parameter. |
void |
editOrder(java.lang.String sessionId,
AdminOrder order)
Edit an existing order. |
void |
editOrderReturn(java.lang.String sessionId,
AdminOrderReturn orderRet)
Edits the orderReturn, replacing existing data with data in the orderRet parameter. |
void |
editPanel(java.lang.String sessionId,
AdminPanel panel)
Edit a Panel. |
void |
editProduct(java.lang.String sessionId,
AdminProduct product)
Edits the product, replacing existing data with data in the product parameter. |
void |
editProductAttribute(java.lang.String sessionId,
AdminProductAttribute prodAttr)
Edits the product attribute, replacing existing data with data in the prodAttr parameter. |
void |
editProductOption(java.lang.String sessionId,
AdminProductOption productOption)
Edits the product option, replacing existing data with data in the productOption parameter. |
void |
editProductOptionValue(java.lang.String sessionId,
AdminProductOptionValue productOptionValue)
Edits the product option value, replacing existing data with data in the productOptionValue parameter. |
void |
editProductWithOptions(java.lang.String sessionId,
AdminProduct product,
AdminProductMgrOptions mgrOptions)
Edit a product and its product description objects. |
void |
editPromotion(java.lang.String sessionId,
AdminPromotion promotion)
Edits the promotion, replacing existing data with data in the promotion parameter. |
void |
editReview(java.lang.String sessionId,
AdminReview review)
Edits the review, replacing existing data with data in the review parameter. |
void |
editRole(java.lang.String sessionId,
AdminRole role)
Edit a Role. |
void |
editSpecial(java.lang.String sessionId,
AdminSpecial special)
Edits the special, replacing existing data with data in the special parameter. |
boolean |
evaluateExpression(java.lang.String sessionId,
int customerId,
int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the customer referenced by the customerId . |
java.lang.String |
execute(java.lang.String sessionId,
java.lang.String className,
java.lang.String methodName,
java.lang.String[] paramArray)
Executes a method with name methodName of a class with name className with the parameters of type String in paramArray. |
java.lang.String |
exportMsgs(int type,
java.lang.String locale)
Export Messages from the database |
com.konakart.app.ExportOrderResponse |
exportOrder(java.lang.String sessionId,
com.konakart.app.ExportOrderOptions options)
Exports the Order |
int |
forceRegisterCustomer(java.lang.String sessionId,
AdminCustomerRegistration custReg)
Register a new customer. |
AdminAddress |
getAddressById(java.lang.String sessionId,
int addressId)
Get Addresses defined by the search criteria |
AdminAddressSearchResult |
getAddresses(java.lang.String sessionId,
AdminAddressSearch search,
int offset,
int size)
Get Addresses defined by the search criteria |
AdminAddressFormatSearchResult |
getAddressFormats(AdminAddressFormatSearch search)
This returns an AdminAddressFormatSearchResult object. |
AdminAddressFormat[] |
getAllAddressFormats()
This returns an array of all the address formats |
AdminApiCall[] |
getAllApiCalls(java.lang.String sessionId)
Returns an array of all apiCalls in the database. |
AdminConfigurationGroup[] |
getAllConfigurationGroups(java.lang.String sessionId)
Returns an array of all the Configuration Group objects. |
KKConfiguration[] |
getAllConfigurations(java.lang.String sessionId)
Returns an array of all the Configuration objects. |
AdminCountry[] |
getAllCountriesFull()
Returns an array of all Country objects in the database. |
AdminGeoZone[] |
getAllGeoZones()
Returns an array of all GeoZones in the database. |
AdminLanguage[] |
getAllLanguages()
Get all of the languages in the database. |
AdminManufacturer[] |
getAllManufacturers()
Get all manufacturers ordered by name. |
AdminOrderStatusName[] |
getAllOrderStatuses(int languageId)
Returns an array of AdminOrderStatusNames for the specified languageId. |
AdminPanel[] |
getAllPanels(java.lang.String sessionId)
Returns an array of all panels in the database. |
AdminProductOption[] |
getAllProductOptions(int languageId)
Return all product options in the database for any given language. |
AdminProductOptionValue[] |
getAllProductOptionValues(java.lang.String sessionId,
int languageId)
Get an array of all the product option value objects for the specified language. |
AdminReviews |
getAllReviews(java.lang.String sessionId,
AdminDataDescriptor dataDesc)
Returns all reviews. |
AdminRole[] |
getAllRoles(java.lang.String sessionId)
Returns an array of all Roles in the database. |
AdminProducts |
getAllSpecials(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
int languageId)
Returns an AdminProducts object containing an array of product objects which are all specials. |
AdminTaxClass[] |
getAllTaxClassesFull()
Returns an array of all AdminTaxClass objects in the database. |
AdminTaxRateSearchResult |
getAllTaxRates()
This returns an AdminTaxRateSearchResult object. |
AdminApiCall |
getApiCall(java.lang.String sessionId,
int apiCallId)
Returns the AdminApiCall referenced by the apiCallId. |
AdminApiCall[] |
getApiCallsPerRole(java.lang.String sessionId,
int roleId)
Retrieves an array of AdminApiCall objects for the role identified by the roleId parameter. |
AdminAuditSearchResult |
getAuditData(java.lang.String sessionId,
AdminAuditSearch retSearch,
int offset,
int size)
Retrieve audit data from the database. |
AdminBookingSearchResult |
getBookings(java.lang.String sessionId,
AdminBookingSearch search,
int offset,
int size,
AdminBookableProductOptions options)
Search for bookings. |
AdminProduct |
getBundleProductDetails(java.lang.String sessionId,
int bundleId,
AdminProduct[] bundledProducts,
AdminDiscount discount)
This method is used to calculate some attributes of a bundle product based on the products that the bundle contains. |
AdminCatalog |
getCatalogById(java.lang.String sessionId,
int catalogId)
Fetch a catalog from the database referenced by the catalog id |
AdminCatalogSearchResult |
getCatalogs(java.lang.String sessionId,
AdminCatalogSearch search,
int offset,
int size)
Get an array of catalogs matching the search criteria from the database. |
AdminCategory[] |
getCategoriesPerPromotion(java.lang.String sessionId,
int promotionId,
int languageId)
Returns all of the categories for the promotion identified by promotionId. |
int[] |
getCategoriesPerTagGroup(java.lang.String sessionId,
int tagGroupId)
Return an array of Category Ids linked to the specified tag group. |
AdminCategoryToTagGroup[] |
getCategoriesToTagGroups(java.lang.String sessionId)
Return an array of all of the AdminCategoryToTagGroup records. |
AdminCategory |
getCategory(int categoryId,
boolean getChildren,
int languageId)
Returns either a single category object or a tree of category objects if getChildren is set to true. |
AdminCategory[] |
getCategoryTree(int languageId,
boolean getNumProducts)
Returns the complete category tree. |
AdminConfigData[] |
getConfigData(java.lang.String sessionId,
java.lang.String key)
Returns the AdminConfigData items with the specified key or all AdminConfigData items if the key is null |
AdminFile[] |
getConfigFiles(java.lang.String sessionId)
Gets the Config files defined in konakart_config_files.xml |
KKConfiguration |
getConfigurationByKey(java.lang.String sessionId,
java.lang.String key)
Returns a KKConfiguration object with the specified key. |
AdminConfigurationGroup[] |
getConfigurationGroupsByTitle(java.lang.String sessionId,
java.lang.String title)
Returns an array of AdminConfigurationGroup objects with the specified title. |
java.lang.String[] |
getConfigurationInfo(java.lang.String sessionId,
java.lang.String[] validationKeys)
Get the configuration values for the given keys. |
KKConfiguration[] |
getConfigurationsByGroup(java.lang.String sessionId,
int configGroup)
Get the configuration elements for the specified group |
AdminCountrySearchResult |
getCountries(AdminCountrySearch search,
int offset,
int size)
This returns an AdminCountrySearchResult object. |
AdminCouponSearchResult |
getCoupons(java.lang.String sessionId,
AdminCouponSearch search,
int offset,
int size)
This returns an AdminCouponSearchResult object containing an array of AdminCoupons. |
AdminCoupon[] |
getCouponsPerPromotion(java.lang.String sessionId,
int promotionId)
Returns an array of Admin Coupon objects associated with the promotion identified by the promotionId parameter. |
AdminCurrencySearchResult |
getCurrencies(AdminCurrencySearch search)
Returns an AdminCurrencySearchResult object. |
AdminCurrency |
getCurrency(java.lang.String currencyCode)
Return the currency object for the specified currency code. |
java.lang.String |
getCustomDataFromSession(java.lang.String sessionId,
int position)
A sessionId is created when a customer logs in to KonaKart Admin App using the login() API call. |
AdminCustomer |
getCustomerForEmail(java.lang.String sessionId,
java.lang.String emailAddress)
Find and return a customer with an email address matching the emailAddress parameter. |
AdminCustomer |
getCustomerForId(java.lang.String sessionId,
int customerId)
Returns the customer object for the customer defined by the given id. |
AdminCustomerGroupSearchResult |
getCustomerGroups(AdminCustomerGroupSearch search)
Return AdminCustomerGroups matching search criteria. |
AdminCustomerGroup[] |
getCustomerGroupsPerPromotion(java.lang.String sessionId,
int promotionId,
int languageId)
Returns all of the customer groups for the promotion identified by promotionId. |
AdminCustomerSearchResult |
getCustomers(java.lang.String sessionId,
AdminCustomerSearch search,
int offset,
int size)
Returns a set of Customers that match the search criteria. |
int |
getCustomersCount(java.lang.String sessionId,
AdminCustomerSearch search)
Returns a count of the number of Customers matching the specified search. |
int |
getCustomersCountWhoHaventPlacedAnOrderSince(java.lang.String sessionId,
java.util.Calendar lastOrderDate)
Return the count of the number of customers who haven't placed an order since the lastOrderDate passed in as a parameter. |
int |
getCustomersCountWhoHavePlacedAnOrderSince(java.lang.String sessionId,
java.util.Calendar lastOrderDate)
Return the count of the number of customers who have placed an order since the lastOrderDate passed in as a parameter. |
AdminCustomerSearchResult |
getCustomersLite(java.lang.String sessionId,
AdminCustomerSearch search,
int offset,
int size)
Returns a set of "Lite" Customers that match the search criteria. |
AdminCustomerTag |
getCustomerTag(java.lang.String sessionId,
int id)
Returns the AdminCustomerTag object for the id parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTag |
getCustomerTagForCustomer(java.lang.String sessionId,
int customerId,
java.lang.String tagName)
Returns the customer tag object for the tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTag |
getCustomerTagForName(java.lang.String sessionId,
java.lang.String tagName)
Returns the customer tag object for the tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTagSearchResult |
getCustomerTags(java.lang.String sessionId,
AdminCustomerTagSearch search,
int offset,
int size)
Returns an AdminCustomerTagSearchResult object. |
AdminCustomerTag[] |
getCustomerTagsForCustomer(java.lang.String sessionId,
int customerId)
This method fetches all of the customer tags for the customer referenced by the customerId parameter. |
AdminCustomValidatorSet |
getCustomValidatorSet()
Gets an AdminCustomValidatorSet. |
AdminCurrency |
getDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY. |
AdminLanguage |
getDefaultLanguage()
Returns the default language. |
AdminEngineConfig |
getEngConf()
Get the assigned KKAdmin Engine configuration. |
AdminExpression |
getExpression(java.lang.String sessionId,
int id)
Returns the AdminExpression object for the id parameter, or Null if the
AdminExpression doesn't exist in the DB. |
AdminExpression |
getExpressionForName(java.lang.String sessionId,
java.lang.String expName)
Returns the AdminExpression object for the expName parameter, or Null if the
AdminExpression doesn't exist in the DB. |
AdminExpressionSearchResult |
getExpressions(java.lang.String sessionId,
AdminExpressionSearch search,
int offset,
int size)
This returns an AdminExpressionSearchResult object. |
AdminExpression[] |
getExpressionsPerPromotion(java.lang.String sessionId,
int promotionId)
Fetch an array of Expression objects linked to the promotion referenced by promotionId |
AdminExpressionVariable |
getExpressionVariable(java.lang.String sessionId,
int id)
Returns the AdminExpressionVariable object for the id parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB. |
AdminExpressionVariable[] |
getExpressionVariablesForExpression(java.lang.String sessionId,
int expressionId)
Returns an array of AdminExpressionVariable objects for the AdminExpression identified by the id parameter. |
java.lang.String |
getFileContents(java.lang.String sessionId,
java.lang.String fileName)
Get the file contents. |
byte[] |
getFileContentsAsByteArray(java.lang.String sessionId,
java.lang.String fileName)
Get the file contents as a byte array. |
AdminFile[] |
getFiles(java.lang.String sessionId,
java.lang.String directory,
java.lang.String extension)
Returns an array of files found in the directory. |
AdminGeoZoneSearchResult |
getGeoZones(AdminGeoZoneSearch search,
int offset,
int size)
This returns an AdminGeoZoneSearchResult object. |
AdminProducts |
getGiftCertificatesPerPromotion(java.lang.String sessionId,
AdminProductSearch search,
int offset,
int size)
Get an array of Admin product gift certificate objects for a promotion. |
java.lang.String |
getHelpMsg(java.lang.String msgKey,
java.lang.String languageCode)
Return the help message for the specified language and the specified key. |
java.lang.String |
getHtml(java.lang.String sessionId,
int htmlType,
int id,
int languageId,
java.lang.String arg1)
Retrieve the HTML string for the specified HTML type, in the specified language. |
java.lang.String |
getKonakartAdminPropsFilePath()
Returns the full path name of the konakartadmin.properties file as a String. |
java.lang.String |
getKonaKartAdminVersion()
Return the version number of KonaKart Admin that is contained within the konakart.jar |
java.lang.String |
getKonakartPropertyValue(java.lang.String sessionId,
java.lang.String section,
java.lang.String propertyName)
Returns the property value from the properties file in the specified section |
AdminLanguage |
getLanguageByCode(java.lang.String code)
Returns the language referenced by the two letter lower case code (e.g. |
AdminLanguage |
getLanguageById(int id)
Returns the language referenced by language ID. |
AdminLanguage |
getLanguageForLocale(java.lang.String locale)
Retrieves the language for the locale |
int |
getLanguageIdForLocale(java.lang.String locale)
Retrieves the language Id for the locale |
AdminLanguageSearchResult |
getLanguages(AdminLanguageSearch search)
This returns an AdminLanguageSearchResult object. |
AdminStoreSearchResult |
getMallStores(AdminStoreSearch search,
int offset,
int size)
Get the stores in the mall supported by the server - Multi-Store Single DB only. |
AdminManufacturer |
getManufacturer(int manufacturerId)
Get a fully populated manufacturer |
AdminManufacturerSearchResult |
getManufacturers(java.lang.String sessionId,
AdminManufacturerSearch search,
int offset,
int size)
Returns an AdminManufacturerSearchResult object. |
AdminManufacturer[] |
getManufacturersPerPromotion(java.lang.String sessionId,
int promotionId)
Returns all of the manufacturers for the promotion identified by promotionId. |
AdminMiscItemSearchResult |
getMiscItems(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the AdminMiscItem objects defined by the search criteria. |
AdminMiscItemType[] |
getMiscItemTypes(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the AdminMiscItemType objects defined by the search criteria. |
KKModule[] |
getModules(java.lang.String sessionId,
int moduleType)
Get the available modules of the specified type. |
AdminMessageSet |
getMsgs(java.lang.String languageCode)
Return a set of admin application messages for the specified language. |
java.lang.String |
getMsgValue(java.lang.String key,
int type,
java.lang.String locale)
Get a Message Value from the database |
int |
getNextProductOptionId(java.lang.String sessionId)
Get the next id to use when inserting a ProductOption record. |
int |
getNextProductOptionValuesId(java.lang.String sessionId)
Get the next id to use when inserting a ProductOptionValue record. |
AdminOrder |
getOrderForOrderId(java.lang.String sessionId,
int orderId)
Retrieve an order for an orderId, using the default language |
AdminOrder |
getOrderForOrderIdAndLangId(java.lang.String sessionId,
int orderId,
int languageId)
Returns an order for an orderId and a languageId. |
AdminOrderReturnSearchResult |
getOrderReturns(java.lang.String sessionId,
AdminOrderReturnSearch retSearch,
int offset,
int size)
Search for OrderReturn objects with search criteria and order by criteria. |
AdminOrderSearchResult |
getOrders(java.lang.String sessionId,
AdminOrderSearch search,
int offset,
int size,
int languageId)
Returns a set of Orders that match the search criteria. |
int |
getOrdersCount(java.lang.String sessionId,
int orderStatus)
Returns a count of the Orders with the specified status. |
AdminOrder[] |
getOrdersCreatedSince(java.lang.String sessionId,
java.util.Calendar since,
int languageId)
Deprecated. From version 2.2.4.0 you should use getOrders(). |
AdminOrderSearchResult |
getOrdersLite(java.lang.String sessionId,
AdminOrderSearch search,
int offset,
int size,
int languageId)
Returns a set of Orders matching the specified search criteria. |
AdminOrderStatusNameSearchResult |
getOrderStatusNames(AdminOrderStatusNameSearch search)
Returns an AdminOrderStatusNameSearchResult object. |
AdminPanel |
getPanel(java.lang.String sessionId,
int panelId)
Returns the AdminPanel referenced by the panelId. |
AdminPanel[] |
getPanelsPerRole(java.lang.String sessionId,
int roleId)
Retrieves an array of AdminPanel objects for the role identified by the roleId parameter. |
AdminPaymentSchedule |
getPaymentSchedule(java.lang.String sessionId,
int id)
Returns the payment schedule object for the id parameter, or Null if the payment
schedule object doesn't exist in the DB. |
AdminPaymentScheduleSearchResult |
getPaymentSchedules(java.lang.String sessionId,
AdminPaymentScheduleSearch search,
int offset,
int size)
This returns an AdminPaymentScheduleSearchResult object. |
com.konakart.app.PdfResult |
getPdf(java.lang.String sessionId,
com.konakart.app.PdfOptions options)
Create the PDF document and return the URL, File name or bytes as defined by the input options. |
AdminProdAttrDesc |
getProdAttrDesc(java.lang.String sessionId,
int id)
Returns the AdminProdAttrDesc object for the id parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB. |
AdminProdAttrDescSearchResult |
getProdAttrDescs(java.lang.String sessionId,
AdminProdAttrDescSearch search,
int offset,
int size)
This returns an AdminProdAttrDescSearchResult object that contains an array of AdminProdAttrDesc objects. |
AdminProdAttrDesc[] |
getProdAttrDescsForTemplate(java.lang.String sessionId,
int templateId)
This method fetches all of the AdminProdAttrDesc objects for the template referenced by the templateId parameter. |
AdminProdAttrTemplate |
getProdAttrTemplate(java.lang.String sessionId,
int id)
Returns the AdminProdAttrTemplate object for the id parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. |
AdminProdAttrTemplateSearchResult |
getProdAttrTemplates(java.lang.String sessionId,
AdminProdAttrTemplateSearch search,
int offset,
int size)
This returns an AdminProdAttrTemplateSearchResult object containing an array of AdminProdAttrTemplate objects. |
AdminProduct |
getProduct(java.lang.String sessionId,
int productId)
Get the product referenced by this product id, from the database. |
AdminProductAttribute[] |
getProductAttributesPerProduct(java.lang.String sessionId,
int productId)
Gets all of the product attributes for the product. |
java.util.Calendar |
getProductAvailability(java.lang.String sessionId,
java.lang.String sku,
int id)
A method that directly returns the date when a product will be available. |
java.util.Calendar |
getProductAvailabilityWithOptions(java.lang.String sessionId,
java.lang.String sku,
int id,
AdminProductMgrOptions mgrOptions)
A method that directly returns the date when a product will be available. |
int |
getProductCountPerAddress(java.lang.String sessionId,
int addressId)
Returns the number of products using the address identified by addressId. |
int |
getProductCountPerProdAttrDesc(java.lang.String sessionId,
int attrDescId)
Returns the number of products using the product attribute descriptor. |
int |
getProductCountPerTemplate(java.lang.String sessionId,
int templateId)
Returns the number of products using the custom product attribute template. |
AdminProductNotification[] |
getProductNotificationsForCustomer(java.lang.String sessionId,
int customerId)
Get an array of product notifications for the customer. |
AdminProductOptionSearchResult |
getProductOptions(java.lang.String sessionId,
AdminProductOptionSearch search,
int offset,
int size)
This returns an AdminProductOptionSearchResult object. |
AdminProductOption[] |
getProductOptionsPerId(java.lang.String sessionId,
int productOptionId)
Returns an array of AdminProductOption objects. |
AdminProductOption[] |
getProductOptionsPerName(java.lang.String sessionId,
java.lang.String name,
int langId)
Returns an array of productOptions with the specified name and languageId. |
AdminProductOptionValue[] |
getProductOptionValuesPerId(java.lang.String sessionId,
int productOptionValueId)
Returns an array of productOptionValues. |
AdminProductOptionValue[] |
getProductOptionValuesPerName(java.lang.String sessionId,
java.lang.String name,
int languageId)
Get an array of product option value objects with the specified name and language. |
AdminProductOptionValue[] |
getProductOptionValuesPerOption(int productOptionId,
int languageId)
Return an array of product option value objects for a product option object |
AdminProdOptionValToProdOption[] |
getProductOptionValueToProductOptions(java.lang.String sessionId,
AdminProdOptionValToProdOption prodOptValToProdOpt)
Gets an array of AdminProdOptionValToProdOption objects that have the specified optionId and OptionValueId. |
int |
getProductQuantity(java.lang.String sessionId,
java.lang.String sku,
int id)
A method that allows you to directly retrieve the quantity of a product. |
int |
getProductQuantityWithOptions(java.lang.String sessionId,
java.lang.String sku,
int id,
AdminProductMgrOptions mgrOptions)
A method that allows you to directly retrieve the quantity of a product. |
AdminProducts |
getProductsPerPromotion(java.lang.String sessionId,
AdminProductSearch search,
int offset,
int size)
Get an array of Admin product objects for a promotion. |
AdminProductToStore[] |
getProductsToStores(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
AdminSearch search)
Returns an array of AdminProductToStore objects for the specified store |
AdminProducts |
getProductsToSynchronize(java.lang.String sessionId,
java.lang.String storeIdFrom,
java.lang.String storeIdTo,
AdminDataDescriptor dataDesc,
int languageId,
AdminSynchProductsOptions options,
AdminProductMgrOptions mgrOptions)
This API call is used to get a list of products that are out of sync between two stores. |
AdminProduct |
getProductWithOptions(java.lang.String sessionId,
int productId,
AdminProductMgrOptions mgrOptions)
Get the product referenced by this product id, from the database. |
AdminPromotion |
getPromotion(java.lang.String sessionId,
int id,
boolean includeCoupons,
boolean includeStats)
Get a promotion object and an array of associated coupon objects when applicable. |
AdminPromotionSearchResult |
getPromotions(java.lang.String sessionId,
AdminPromotionSearch search,
int offset,
int size)
This returns an AdminPromotionSearchResult object containing an array of AdminPromotions. |
int |
getPromotionsCount(java.lang.String sessionId,
AdminPromotionSearch search)
Returns a count of the number of AdminPromotions. |
AdminPromotion[] |
getPromotionsPerCoupon(java.lang.String sessionId,
int couponId)
Get an array of Admin promotion objects for a coupon. |
AdminProducts |
getRelatedProducts(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
int productId,
int relationType,
int languageId)
Find products related to the product defined by the productId parameter. |
AdminProducts |
getRelatedProductsWithOptions(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
int productId,
int relationType,
int languageId,
AdminProductMgrOptions mgrOptions)
Find products related to the product defined by the productId parameter. |
AdminReport[] |
getReports(java.lang.String sessionId)
Retrieves the reports as an array of AdminReport objects that define the set of reports currently defined on the system. |
AdminReview |
getReview(java.lang.String sessionId,
int reviewId)
Returns the review referenced by the review Id |
AdminReviews |
getReviews(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
AdminReviewSearch revSearch)
Returns the reviews for the given search criteria. |
AdminReviews |
getReviewsPerProduct(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
int productId)
Returns the reviews for a product. |
AdminRewardPointSearchResult |
getRewardPoints(java.lang.String sessionId,
AdminRewardPointSearch search,
int offset,
int size)
The Reward Point transactions can be filtered by the creation dates and sorted by: AdminDataDescriptor.ORDER_BY_DATE_ADDED_ASCENDING AdminDataDescriptor.ORDER_BY_DATE_ADDED_DESCENDING |
AdminRole |
getRole(java.lang.String sessionId,
int roleId)
Returns the AdminRole referenced by the roleId. |
AdminRole[] |
getRolesPerSessionId(java.lang.String sessionId)
Retrieves an array of AdminRole objects for the user logged in with the session id. |
AdminRole[] |
getRolesPerUser(java.lang.String sessionId,
int userId)
Retrieves an array of AdminRole objects for the user identified by the userId parameter. |
AdminSearchRule[] |
getSearchRules()
Reads the search rules from a properties file and returns them as an array. |
java.lang.String |
getSku(java.lang.String sessionId,
AdminOrderProduct orderProd)
Get the SKU for an orderProduct object. |
java.lang.String[] |
getSkus(java.lang.String sessionId,
AdminOrderProduct[] orderProds)
Get the SKUs for an array AdminOrderProduct objects. |
AdminSpecial |
getSpecial(java.lang.String sessionId,
int specialId)
Returns a special referenced by the id parameter |
AdminProducts |
getSpecialsPerCategory(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
Returns an AdminProducts object containing an array of specials for a category. |
AdminStore[] |
getStores()
Get the stores supported by the server. |
AdminSubscription |
getSubscription(java.lang.String sessionId,
int id)
Returns the subscription object for the id parameter, or Null if the
subscription object doesn't exist in the DB. |
AdminSubscriptionSearchResult |
getSubscriptions(java.lang.String sessionId,
AdminSubscriptionSearch search,
int offset,
int size)
This returns an AdminSubscriptionSearchResult object. |
AdminSubZoneSearchResult |
getSubZones(AdminSubZoneSearch search,
int offset,
int size)
This returns an AdminSubZoneSearchResult object. |
AdminTagGroupSearchResult |
getTagGroups(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the TagGroup objects defined by the search criteria. |
AdminTagGroup[] |
getTagGroupsPerCategory(java.lang.String sessionId,
int categoryId,
int languageId)
Return an array of AdminTagGroup objects for a category. |
AdminTagGroupToTag[] |
getTagGroupToTags(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the TagGroupToTag objects defined by the search criteria. |
AdminTagSearchResult |
getTags(java.lang.String sessionId,
AdminSearch search,
int offset,
int size)
Return the Tag objects defined by the search criteria. |
AdminTag[] |
getTagsPerProduct(java.lang.String sessionId,
int productId,
int languageId)
Fetches all of the tags associated with a product. |
AdminTaxClassSearchResult |
getTaxClasses(AdminTaxClassSearch search)
This returns an AdminTaxClassSearchResult object. |
AdminTaxRateSearchResult |
getTaxRates(AdminTaxRateSearch search,
int offset,
int size)
This returns an AdminTaxRateSearchResult object. |
int |
getTemplateCountPerProdAttrDesc(java.lang.String sessionId,
int attrDescId)
Returns the number of templates using the product attribute descriptor. |
AdminCategory[] |
getTopLevelCategories(int languageId,
AdminDataDescriptor dataDesc)
Returns all of the top level categories which are those that have a parentId = 0. |
AdminWishLists |
getWishLists(java.lang.String sessionId,
AdminWishListSearch search,
int offset,
int size)
Return the WishList objects defined by the search criteria. |
AdminZoneSearchResult |
getZones(AdminZoneSearch search,
int offset,
int size)
This returns an AdminZoneSearchResult object. |
AdminZone[] |
getZonesById(int countryId)
Returns an array of fully-populated AdminZones for the specified countryId. |
int |
importAudit(java.lang.String sessionId,
AdminAudit audit)
Imports an audit object. |
int |
importDigitalDownload(java.lang.String sessionId,
AdminDigitalDownload digDownload)
Import a new digital download record. |
void |
importMsgs(java.lang.String sessionId,
int type,
java.lang.String locale,
java.lang.String msgString,
boolean replace)
Import Messages into the database |
int |
insertAddress(java.lang.String sessionId,
AdminAddress address)
Insert an AdminAddress. |
int |
insertAddressFormat(java.lang.String sessionId,
AdminAddressFormat insertObj)
Insert an AdminAddressFormat object |
int |
insertApiCall(java.lang.String sessionId,
AdminApiCall apiCall)
Insert a new ApiCall. |
int |
insertBooking(java.lang.String sessionId,
AdminBooking booking,
AdminBookableProductOptions options)
Insert a new booking. |
int |
insertCatalog(java.lang.String sessionId,
AdminCatalog catalog)
Insert a new catalog |
int |
insertCategory(java.lang.String sessionId,
AdminCategory cat)
Inserts a new category into the database. |
void |
insertConfigs(java.lang.String sessionId,
KKConfiguration[] config)
Insert one or more new configuration parameters |
int |
insertConfiguration(java.lang.String sessionId,
KKConfiguration config)
Insert a configuration object. |
int |
insertConfigurationGroup(java.lang.String sessionId,
AdminConfigurationGroup configGroup)
Insert a configuration group. |
int |
insertCountry(java.lang.String sessionId,
AdminCountry country)
Insert an AdminCountry object. |
int |
insertCoupon(java.lang.String sessionId,
AdminCoupon coupon)
Inserts a coupon. |
int |
insertCouponForPromotion(java.lang.String sessionId,
AdminCoupon coupon,
int promotionId)
Inserts a coupon and also a record in the promotion_to_coupon table to associate the coupon to a promotion. |
int |
insertCurrency(java.lang.String sessionId,
AdminCurrency curr)
Insert a Currency. |
int |
insertCustomerGroup(java.lang.String sessionId,
AdminCustomerGroup custGroup)
Insert a Customer Group. |
int |
insertCustomerGroups(java.lang.String sessionId,
AdminCustomerGroup[] custGroups)
Insert an array of AdminCustomerGroup objects. |
int |
insertCustomerTag(java.lang.String sessionId,
AdminCustomerTag tag)
Inserts an AdminCustomerTag object into the database. |
void |
insertCustomerTagForCustomer(java.lang.String sessionId,
int customerId,
AdminCustomerTag tag)
Assigns a customer tag to the customer referenced by the customerId . |
void |
insertDigitalDownload(java.lang.String sessionId,
int customerId,
int productId)
Create and insert a digital download record for the product identified by the productId and the customer identified by the sessionId . |
int |
insertExpression(java.lang.String sessionId,
AdminExpression exp)
Inserts an AdminExpression object. |
int |
insertExpressionVariables(java.lang.String sessionId,
AdminExpressionVariable[] expVarArray)
Inserts an array of ExpressionVariable objects that should all belong to the same expression. |
int |
insertGeoZone(java.lang.String sessionId,
AdminGeoZone insertObj)
Insert an AdminGeoZone object. |
int |
insertIpnHistory(java.lang.String sessionId,
AdminIpnHistory ipnHistory)
Save the AdminIpnHistory object in the database. |
int |
insertLanguage(java.lang.String sessionId,
AdminLanguage lang)
Insert a Language. |
void |
insertMallStore(java.lang.String sessionId,
AdminStore store)
Insert a new store into the mall. |
int |
insertManufacturer(java.lang.String sessionId,
AdminManufacturer manu)
Insert a manufacturer |
int |
insertMiscItems(java.lang.String sessionId,
AdminMiscItem[] mItems)
Insert an array of AdminMiscItem objects |
int |
insertMiscItemType(java.lang.String sessionId,
AdminMiscItemType[] miTypes)
Insert an array of AdminMiscItemType objects |
void |
insertMsg(java.lang.String sessionId,
java.lang.String key,
int type,
java.lang.String locale,
java.lang.String value)
Insert a Message into the database |
int |
insertOrder(java.lang.String sessionId,
AdminOrder order)
Insert an order. |
int |
insertOrderReturn(java.lang.String sessionId,
AdminOrderReturn orderRet)
Insert an AdminOrderReturn object and its array of AdminOrderReturnProduct objects |
int |
insertOrderStatusName(java.lang.String sessionId,
AdminOrderStatusName obj)
Insert an OrderStatusName object. |
int |
insertOrderStatusNames(java.lang.String sessionId,
AdminOrderStatusName[] ordStats)
Insert an array of AdminOrderStatusName objects. |
int |
insertPanel(java.lang.String sessionId,
AdminPanel panel)
Insert a new Panel. |
int |
insertPaymentSchedule(java.lang.String sessionId,
AdminPaymentSchedule ps)
An AdminPaymentSchedule object is inserted into the database. |
int |
insertProdAttrDesc(java.lang.String sessionId,
AdminProdAttrDesc attrDesc)
An AdminProdAttrDesc object is inserted into the database. |
int |
insertProdAttrTemplate(java.lang.String sessionId,
AdminProdAttrTemplate template)
An AdminProdAttrTemplate object is inserted into the database. |
int |
insertProduct(java.lang.String sessionId,
AdminProduct product)
Insert the product. |
int |
insertProductAttribute(java.lang.String sessionId,
AdminProductAttribute prodAttr)
Inserts the product attribute. |
void |
insertProductNotification(java.lang.String sessionId,
AdminProductNotification apn)
Insert a Product Notification record for the specified customer and product. |
void |
insertProductOption(java.lang.String sessionId,
AdminProductOption productOption)
Insert a product option. |
int |
insertProductOptions(java.lang.String sessionId,
AdminProductOption[] productOptions)
The array of product options will all be inserted with the same id which is calculated by the system. |
void |
insertProductOptionValue(java.lang.String sessionId,
AdminProductOptionValue productOptionValue,
int productOptionId)
Insert a product option value for a product option |
int |
insertProductOptionValues(java.lang.String sessionId,
AdminProductOptionValue[] productOptionValues,
int productOptionId)
The array of product option values will all be inserted with the same id which is calculated by the system. |
int |
insertProductsOptionsValuesToProductsOptions(java.lang.String sessionId,
AdminProdOptionValToProdOption prodOptValToProdOpt)
Insert a product option value to product option record. |
void |
insertProductsToStores(java.lang.String sessionId,
AdminProductToStore[] productToStores)
Inserts an array of AdminProductToStore objects |
int |
insertProductWithOptions(java.lang.String sessionId,
AdminProduct product,
AdminProductMgrOptions mgrOptions)
Insert the product. |
int |
insertPromotion(java.lang.String sessionId,
AdminPromotion prom)
Inserts a promotion. |
int |
insertReview(java.lang.String sessionId,
AdminReview review)
A new review is inserted |
int |
insertRole(java.lang.String sessionId,
AdminRole role)
Insert a new Role. |
int |
insertSpecial(java.lang.String sessionId,
AdminSpecial special)
Inserts a new special |
int |
insertSubscription(java.lang.String sessionId,
AdminSubscription subscription)
An AdminSubscription object is inserted into the database. |
int |
insertSubZone(java.lang.String sessionId,
AdminSubZone insertObj)
Insert an AdminSubZone object. |
int |
insertTag(java.lang.String sessionId,
AdminTag tag)
Insert a new Tag object |
int |
insertTagGroup(java.lang.String sessionId,
AdminTagGroup tagGroup)
Insert a new TagGroup object |
int |
insertTagGroups(java.lang.String sessionId,
AdminTagGroup[] tagGroups)
Insert an array of TagGroup objects - provide a TagGroup object for each language |
void |
insertTagGroupToTags(java.lang.String sessionId,
AdminTagGroupToTag tagGroupToTag)
Insert an AdminTagGroupToTag record |
int |
insertTags(java.lang.String sessionId,
AdminTag[] tags)
Insert an array of Tag objects - provide a Tag record for each supported language. |
int |
insertTaxClass(java.lang.String sessionId,
AdminTaxClass insertObj)
Insert an AdminTaxClass object |
int |
insertTaxRate(java.lang.String sessionId,
AdminTaxRate insertObj)
Insert an AdminTaxRate object |
int |
insertWishList(java.lang.String sessionId,
AdminWishList wishList)
Insert a wish list and any attached wish list items. |
int |
insertWishListItem(java.lang.String sessionId,
AdminWishListItem wishListItem)
Insert an AdminWishListItem. |
int |
insertZone(java.lang.String sessionId,
AdminZone insertObj)
Insert an AdminZone object |
java.lang.String |
login(java.lang.String user,
java.lang.String password)
Used to log into the Admin application and get a session Id. |
void |
logMsg(int level,
java.lang.String message)
For debugging the client - it writes out the String that's sent if we are logging at the specified level or above |
void |
logout(java.lang.String sessionId)
Used to logout the user with the specified sessionId. |
void |
moveCategory(java.lang.String sessionId,
int categoryId,
int newParentId)
The category referenced by categoryId is moved to a new parent referenced by newParentId. |
int |
pointsAvailable(java.lang.String sessionId,
int customerId)
Calculates the number of reward points available for the customer identified by the customerId parameter. |
void |
publishProducts(java.lang.String sessionId,
AdminPublishConfig adminPublishConfig)
Publish Products to the Data Feed. |
java.lang.String |
readFromUrl(java.lang.String sessionId,
java.lang.String url)
Reads the resource at the given URL and returns it as a string. |
int |
registerCustomer(java.lang.String sessionId,
AdminCustomerRegistration custReg)
Register a new customer. |
void |
reloadReports(java.lang.String sessionId)
Reloads the reports |
void |
removeAddressFromProduct(java.lang.String sessionId,
int addressId,
int productId)
Remove the relationship between the address and the product. |
void |
removeAllProductsFromSearchEngine(java.lang.String sessionId,
boolean async)
Remove all products from the search engine. |
void |
removeApiCallsFromRole(java.lang.String sessionId,
AdminApiCall[] apiCalls,
int roleId)
Removes the array of AdminApiCall objects from the role identified by the roleId parameter. |
void |
removeCategoriesFromPromotion(java.lang.String sessionId,
AdminCategory[] categories,
int promotionId)
Remove an array of categories from the promotion identified by the promotionId parameter. |
void |
removeConfigs(java.lang.String sessionId,
java.lang.String[] configKeys)
Remove one or more configuration parameters |
void |
removeCouponsFromPromotion(java.lang.String sessionId,
AdminCoupon[] coupons,
int promotionId)
Remove an array of coupons from the promotion identified by the promotionId parameter. |
void |
removeCustomerGroupsFromPromotion(java.lang.String sessionId,
int[] groupIds,
int promotionId)
Remove an array of customer groups from the promotion identified by the promotionId parameter. |
void |
removeCustomersFromPromotion(java.lang.String sessionId,
AdminCustomer[] customers,
int promotionId)
Remove an array of customers from the promotion identified by the promotionId parameter. |
void |
removeExpressionsFromPromotion(java.lang.String sessionId,
AdminExpression[] expressions,
int promotionId)
Remove an array of expressions from the promotion identified by the promotionId parameter. |
void |
removeGiftCertificatesFromPromotion(java.lang.String sessionId,
AdminProduct[] giftCertificates,
int promotionId)
Remove an array of gift certificate products from the promotion identified by the promotionId parameter. |
void |
removeManufacturersFromPromotion(java.lang.String sessionId,
AdminManufacturer[] manufacturers,
int promotionId)
Remove an array of manufacturers from the promotion identified by the promotionId parameter. |
void |
removePanelsFromRole(java.lang.String sessionId,
AdminPanel[] panels,
int roleId)
Removes the array of AdminPanel objects from the role identified by the roleId parameter. |
void |
removeProdAttrDescsFromTemplate(java.lang.String sessionId,
AdminProdAttrDesc[] attrDescs,
int templateId)
Remove an array of ProdAttrDesc objects from the template. |
void |
removeProductFromSearchEngine(java.lang.String sessionId,
int productId)
Remove the product referenced by productId from the search engine. |
void |
removeProductsFromPromotion(java.lang.String sessionId,
AdminProduct[] products,
int promotionId)
Remove an array of products from the promotion identified by the promotionId parameter. |
void |
removeProductsToStores(java.lang.String sessionId,
AdminProductToStore[] productToStores)
Removes an array of AdminProductToStore objects |
void |
removePromotionsFromCoupon(java.lang.String sessionId,
AdminPromotion[] promotions,
int couponId)
Remove an array of promotions from the coupon identified by the couponId parameter. |
void |
removeRelatedProducts(java.lang.String sessionId,
int productId,
int relationType)
Removes related products from the product defined by productId. |
void |
removeRolesFromUser(java.lang.String sessionId,
AdminRole[] roles,
int userId)
Removes the array of AdminRole objects from the user identified by the userId parameter. |
void |
removeTagGroupsFromCategory(java.lang.String sessionId,
AdminTagGroup[] tagGroups,
int categoryId)
If associations exist between the AdminTagGroups and the category identified by categoryId, then they are removed. |
void |
removeTagsFromProduct(java.lang.String sessionId,
AdminTag[] tags,
int productId)
If associations exist between the AdminTags and the product identified by productId, then they are removed. |
void |
resetCustomerPassword(java.lang.String sessionId,
int custId)
Reset a customer's password. |
void |
resetCustomerPasswordSpecifyingEmail(java.lang.String sessionId,
int custId,
java.lang.String eMailAddress)
Reset a customer's password using the eMail address specified. |
void |
saveConfigs(java.lang.String sessionId,
KKConfiguration[] configs,
KKConfiguration[] origConfigs)
Saves an array of KKConfiguration objects to the database. |
void |
saveFileContents(java.lang.String sessionId,
java.lang.String fileName,
java.lang.String fileContents)
Writes the specified file contents into the specified file. |
AdminDigitalDownloadSearchResult |
searchDigitalDownloads(java.lang.String sessionId,
AdminDigitalDownloadSearch search,
int offset,
int size)
Retrieve the Digital Download records matching the search criteria |
AdminIpnHistories |
searchForIpnHistory(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
AdminIpnSearch ipnSearch)
Search for IpnHistory records with search criteria and order by criteria. |
AdminProducts |
searchForProducts(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
AdminProductSearch prodSearch,
int languageId)
Search for products. |
AdminProducts |
searchForProductsWithOptions(java.lang.String sessionId,
AdminDataDescriptor dataDesc,
AdminProductSearch prodSearch,
int languageId,
AdminProductMgrOptions mgrOptions)
Search for products. |
AdminKkMsgSearchResult |
searchMsg(AdminKkMsgSearch search,
int groupSize,
int offset)
Retrieve all the messages from the database that match the specified search criteria |
boolean |
sendEmail(java.lang.String sessionId,
AdminEmail adminEmailData)
Send an email as defined in the specified AdminEmail object. |
void |
sendTemplateEmailToCustomers(java.lang.String sessionId,
AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.Object obj1,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5,
int numEmailThreads)
An email is sent to the customers which are found based on the selection criteria set in the AdminCustomerSearch object. |
void |
sendTemplateEmailToCustomers1(java.lang.String sessionId,
AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.String message,
AdminProduct[] products,
AdminOrder[] orders,
AdminManufacturer[] manufacturers,
AdminCategory[] categories,
int numEmailThreads)
An email is sent to the customers which are found based on the selection criteria set in the AdminCustomerSearch object. |
void |
sendTemplateEmailToCustomers1WithOptions(java.lang.String sessionId,
AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.String message,
AdminProduct[] products,
AdminOrder[] orders,
AdminManufacturer[] manufacturers,
AdminCategory[] categories,
int numEmailThreads,
AdminEmailOptions options)
This method has the same functionality as sendTemplateEmailToCustomers1() except that it includes an extra options object to enhance the available functionality. |
void |
sendTemplateEmailToCustomersWithOptions(java.lang.String sessionId,
AdminCustomerSearch custSearch,
java.lang.String templateName,
java.lang.Object obj1,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5,
int numEmailThreads,
AdminEmailOptions options)
This method has the same functionality as sendTemplateEmailToCustomers() except that it includes an extra options object to enhance the available functionality. |
boolean |
setConfigurationValue(java.lang.String sessionId,
java.lang.String key,
java.lang.String value)
Sets a Configuration Value for the specified key |
void |
setCreditCardDetailsOnOrder(java.lang.String sessionId,
AdminCreditCard creditCard)
Set Credit Card details on an existing order. |
void |
setCustomerPassword(java.lang.String sessionId,
int custId,
java.lang.String newPassword)
Set a customer's password. |
void |
setEndpoint(java.lang.String wsEndpoint)
Set the Web Service endpoint for the engine. |
void |
setProductAvailability(java.lang.String sessionId,
java.lang.String sku,
int id,
java.util.Calendar dateAvailable)
A method that allows you to modify the date when a product will be available, through the API without needing to fetch the complete product and edit it. |
void |
setProductAvailabilityWithOptions(java.lang.String sessionId,
java.lang.String sku,
int id,
java.util.Calendar dateAvailable,
AdminProductMgrOptions mgrOptions)
A method that allows you to modify the date when a product will be available, through the API without needing to fetch the complete product and edit it. |
void |
setProductQuantity(java.lang.String sessionId,
java.lang.String sku,
int id,
int quantity,
int operation)
A method that allows you to modify the quantity of a product through the API without needing to fetch the complete product and edit it. |
void |
setProductQuantityWithOptions(java.lang.String sessionId,
java.lang.String sku,
int id,
int quantity,
int operation,
AdminProductMgrOptions mgrOptions)
A method that allows you to modify the quantity of a product through the API without needing to fetch the complete product and edit it. |
AdminDBConnector |
testDB(AdminDBConnector connector)
The connector parameter isn't currently used. |
void |
updateAddress(java.lang.String sessionId,
AdminAddress address)
Updates an AdminAddress. |
int |
updateAddressFormat(java.lang.String sessionId,
AdminAddressFormat updateObj)
Update an AdminAddressFormat object |
void |
updateBooking(java.lang.String sessionId,
AdminBooking booking,
AdminBookableProductOptions options)
Update the booking |
void |
updateCachedConfigurations(java.lang.String sessionId)
Wherever in the engine any configurations have been cached, they are refreshed when this method is called. |
void |
updateCatalog(java.lang.String sessionId,
AdminCatalog catalog)
Update an existing catalog |
void |
updateConfiguration(java.lang.String sessionId,
KKConfiguration newConf)
Updates a KKConfiguration object. |
void |
updateConfigurationGroup(java.lang.String sessionId,
AdminConfigurationGroup newConf)
Updates an AdminConfigurationGroup object. |
int |
updateCountry(java.lang.String sessionId,
AdminCountry country)
Update an AdminCountry object. |
int |
updateCurrency(java.lang.String sessionId,
AdminCurrency curr)
Update a Currency. |
void |
updateCustomer(java.lang.String sessionId,
AdminCustomer customer)
Update a Customer. |
int |
updateCustomerGroup(java.lang.String sessionId,
AdminCustomerGroup custGroup)
Update a customer group. |
int |
updateCustomerTag(java.lang.String sessionId,
AdminCustomerTag tag)
Update an AdminCustomerTag object. |
int |
updateExpression(java.lang.String sessionId,
AdminExpression exp)
Updates the expression. |
int |
updateExpressionVariable(java.lang.String sessionId,
AdminExpressionVariable expVar)
Updates the ExpressionVariable object passed in as a parameter. |
int |
updateGeoZone(java.lang.String sessionId,
AdminGeoZone updateObj)
Update an AdminGeoZone object. |
int |
updateLanguage(java.lang.String sessionId,
AdminLanguage lang)
Update a Language. |
void |
updateMallStore(java.lang.String sessionId,
AdminStore store)
Updates an AdminStore object. |
void |
updateMiscItems(java.lang.String sessionId,
AdminMiscItem[] mItems)
Update an array of AdminMiscItem objects. |
void |
updateMiscItemType(java.lang.String sessionId,
AdminMiscItemType[] miTypes)
Update an array of AdminMiscItemType objects. |
void |
updateMsg(java.lang.String sessionId,
java.lang.String key,
int type,
java.lang.String locale,
java.lang.String value)
Update a Message in the database. |
void |
updateOrder(java.lang.String sessionId,
int orderId,
int orderStatus,
java.lang.String comments,
boolean notifyCustomer,
AdminOrderUpdate updateOrder)
Update the order status with optional comments. |
void |
updateOrderStatus(java.lang.String sessionId,
int orderId,
int orderStatus,
java.lang.String comments,
boolean notifyCustomer)
Deprecated. From version 6.2.0.0 you should use updateOrder(java.lang.String, int, int, java.lang.String, boolean, com.konakartadmin.app.AdminOrderUpdate) instead. |
int |
updateOrderStatusName(java.lang.String sessionId,
AdminOrderStatusName obj)
Update an OrderStatusName object |
int |
updatePaymentSchedule(java.lang.String sessionId,
AdminPaymentSchedule ps)
Update an AdminPaymentSchedule object. |
int |
updateProdAttrDesc(java.lang.String sessionId,
AdminProdAttrDesc attrDesc)
Update an AdminProdAttrDesc object. |
int |
updateProdAttrTemplate(java.lang.String sessionId,
AdminProdAttrTemplate template)
Update an AdminProdAttrTemplate object. |
int |
updateProductsUsingProdAttrDesc(java.lang.String sessionId,
int attrDescId)
When custom attributes are converted to an XML string and saved within the product object, some metadata fields of the custom attribute are saved along with the value of the attribute itself. |
int |
updateProductsUsingTemplates(java.lang.String sessionId,
int[] templateIds)
When custom attributes are converted to an XML string and saved within the product object, some metadata fields of the custom attribute are saved along with the value of the attribute itself. |
int |
updateSubscription(java.lang.String sessionId,
AdminSubscription subscription)
Update an AdminSubscription object. |
int |
updateSubZone(java.lang.String sessionId,
AdminSubZone updateObj)
Update an AdminSubZone object. |
int |
updateTag(java.lang.String sessionId,
AdminTag tag)
Update an existing Tag object - only the Name and the SortOrder can be updated |
int |
updateTagGroup(java.lang.String sessionId,
AdminTagGroup tagGroup)
Update an existing TagGroup object - You can update the name, description and the set of tags associated to the tag group |
int |
updateTaxClass(java.lang.String sessionId,
AdminTaxClass updateObj)
Update an AdminTaxClass object |
int |
updateTaxRate(java.lang.String sessionId,
AdminTaxRate updateObj)
Update an AdminTaxRate object |
int |
updateZone(java.lang.String sessionId,
AdminZone updateObj)
Update an AdminZone object |
Method Detail |
---|
AdminEngineConfig getEngConf() throws KKAdminException
KKAdminException
AdminStore[] getStores() throws KKAdminException
KKAdminException
AdminStoreSearchResult getMallStores(AdminStoreSearch search, int offset, int size) throws KKAdminException
search
- search definition for storesoffset
- offset in results (for paging)size
- maximum number of records to return from the offset (for paging)
KKAdminException
void cloneStore(java.lang.String sessionId, AdminNewStoreOptions options, java.lang.String storeToCloneId, AdminStore newStore) throws KKAdminException
Multi-Store Single DB only.
sessionId
- The session Id of the logged in useroptions
- Some options for defining how to execute the clonestoreToCloneId
- the store the will be cloned to make the new storenewStore
- the new store
KKAdminException
void insertMallStore(java.lang.String sessionId, AdminStore store) throws KKAdminException
Multi-Store Single DB only
sessionId
- The session Id of the logged in userstore
- a new Store object to insert (all attributes should be filled in, including
storeId)
KKAdminException
boolean doesMallStoreExist(java.lang.String storeId) throws KKAdminException
Multi-Store Single DB only
storeId
- The StoreId of the store to check
KKAdminException
void deleteMallStore(java.lang.String sessionId, java.lang.String storeId) throws KKAdminException
Multi-Store Single DB only
sessionId
- The session Id of the logged in userstoreId
- the StoreId of the store to delete
KKAdminException
void updateMallStore(java.lang.String sessionId, AdminStore store) throws KKAdminException
Multi-Store Single DB only
sessionId
- The session Id of the logged in userstore
- The AdminStore object to update
KKAdminException
java.lang.String getKonakartAdminPropsFilePath() throws KKAdminException
KKAdminException
java.lang.String getKonakartPropertyValue(java.lang.String sessionId, java.lang.String section, java.lang.String propertyName) throws KKAdminException
sessionId
- The session Id of the logged in usersection
- Properties file section e.g. the first part of the property name ("konakart" or
"torque"). Use constants in KonakartAdminConstants, eg.
KonakartAdminConstants.PROPERTY_FILE_SECTION_KONAKART
or
KonakartAdminConstants.PROPERTY_FILE_SECTION_TORQUE
etcpropertyName
- property name
KKAdminException
void logMsg(int level, java.lang.String message) throws KKAdminException
level
- the logging level (0=OFF,1=SEVERE,2=ERROR,4=WARNING,6=INFO,8=DEBUG)message
- the message to log
KKAdminException
AdminLanguage getDefaultLanguage() throws KKAdminException
KKAdminException
AdminLanguage getLanguageByCode(java.lang.String code) throws KKAdminException
code
- the language code
KKAdminException
AdminLanguage getLanguageById(int id) throws KKAdminException
id
- the language id
KKAdminException
AdminLanguage getLanguageForLocale(java.lang.String locale) throws KKAdminException
locale
- a 2 or 4 character locale (eg. en, de, es)
KKAdminException
int getLanguageIdForLocale(java.lang.String locale) throws KKAdminException
locale
- a 2 or 4 character locale (eg. en, de, es)
KKAdminException
AdminLanguage[] getAllLanguages() throws KKAdminException
KKAdminException
AdminLanguageSearchResult getLanguages(AdminLanguageSearch search) throws KKAdminException
search
- the search object that defines the search parameters and sort order
KKAdminException
int insertLanguage(java.lang.String sessionId, AdminLanguage lang) throws KKAdminException
sessionId
- The session Id of the logged in userlang
- A Language object
KKAdminException
int deleteLanguage(java.lang.String sessionId, int langId) throws KKAdminException
sessionId
- The session Id of the logged in userlangId
- A Language id
KKAdminException
int updateLanguage(java.lang.String sessionId, AdminLanguage lang) throws KKAdminException
sessionId
- The session Id of the logged in userlang
- A Language object
KKAdminException
AdminCurrency getDefaultCurrency() throws KKAdminException
KKAdminException
AdminCurrency getCurrency(java.lang.String currencyCode) throws KKAdminException
currencyCode
- the currency Code to look up
KKAdminException
AdminCurrencySearchResult getCurrencies(AdminCurrencySearch search) throws KKAdminException
search
- the search object that defines the search parameters and sort order
KKAdminException
int deleteCurrency(java.lang.String sessionId, int currId) throws KKAdminException
sessionId
- The session Id of the logged in usercurrId
- A currency id
KKAdminException
int insertCurrency(java.lang.String sessionId, AdminCurrency curr) throws KKAdminException
sessionId
- The session Id of the logged in usercurr
- A currency object
KKAdminException
int updateCurrency(java.lang.String sessionId, AdminCurrency curr) throws KKAdminException
sessionId
- The session Id of the logged in usercurr
- A currency object
KKAdminException
AdminOrderStatusNameSearchResult getOrderStatusNames(AdminOrderStatusNameSearch search) throws KKAdminException
AdminOrderStatusNameSearchResult
object.
search
- the search object that defines the search parameters and sort order. If
languageId
is not set (or set to
AdminLanguageMgr.DEFAULT_LANG
) the default language is used. If the
languageId
is set to AdminLanguageMgr.ALL_LANGUAGES
all
languages are returned.
AdminOrderStatusNameSearchResult
KKAdminException
int deleteOrderStatusName(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- An OrderStatus id
KKAdminException
int insertOrderStatusName(java.lang.String sessionId, AdminOrderStatusName obj) throws KKAdminException
sessionId
- The session Id of the logged in userobj
- An OrderStatusName object
KKAdminException
int insertOrderStatusNames(java.lang.String sessionId, AdminOrderStatusName[] ordStats) throws KKAdminException
sessionId
- The session Id of the logged in userordStats
- An AdminOrderStatusName array object
KKAdminException
int updateOrderStatusName(java.lang.String sessionId, AdminOrderStatusName obj) throws KKAdminException
sessionId
- The session Id of the logged in userobj
- An OrderStatusName object
KKAdminException
AdminCountrySearchResult getCountries(AdminCountrySearch search, int offset, int size) throws KKAdminException
search
- an AdminCountrySearch objectoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int deleteCountry(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A Country id
KKAdminException
int insertCountry(java.lang.String sessionId, AdminCountry country) throws KKAdminException
sessionId
- The session Id of the logged in usercountry
- An AdminCountry object
KKAdminException
int updateCountry(java.lang.String sessionId, AdminCountry country) throws KKAdminException
sessionId
- The session Id of the logged in usercountry
- An AdminCountry object
KKAdminException
boolean sendEmail(java.lang.String sessionId, AdminEmail adminEmailData) throws KKAdminException
sessionId
- The session Id of the logged in useradminEmailData
- the Email object to fill out to define the email to send
KKAdminException
- typically when the email could not be sentint getOrdersCount(java.lang.String sessionId, int orderStatus) throws KKAdminException
sessionId
- The session Id of the logged in userorderStatus
- the order status Id
KKAdminException
AdminOrderSearchResult getOrdersLite(java.lang.String sessionId, AdminOrderSearch search, int offset, int size, int languageId) throws KKAdminException
The orders returned are sparsely-populated with:
The returned orders may be sorted by:
sessionId
- The session Id of the logged in usersearch
- the Orders search criteria object (String sessionId, can be null)offset
- offset in the databasesize
- max number of records to return from the offsetlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminOrderSearchResult getOrders(java.lang.String sessionId, AdminOrderSearch search, int offset, int size, int languageId) throws KKAdminException
The returned orders may be sorted by:
sessionId
- The session Id of the logged in usersearch
- the definition of the search for orders - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offsetlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
@Deprecated AdminOrder[] getOrdersCreatedSince(java.lang.String sessionId, java.util.Calendar since, int languageId) throws KKAdminException
sessionId
- The session Id of the logged in usersince
- the date to use to define the range of orders to returnlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
void updateOrder(java.lang.String sessionId, int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer, AdminOrderUpdate updateOrder) throws KKAdminException
sessionId
- The session Id of the logged in userorderId
- the order idorderStatus
- the new Order Statuscomments
- if not null, these comments are addednotifyCustomer
- if true the customer will be notified by emailupdateOrder
- contains order update data such as who updated the order
KKAdminException
@Deprecated void updateOrderStatus(java.lang.String sessionId, int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer) throws KKAdminException
updateOrder(java.lang.String, int, int, java.lang.String, boolean, com.konakartadmin.app.AdminOrderUpdate)
instead.
sessionId
- The session Id of the logged in userorderId
- the order idorderStatus
- the new Order Statuscomments
- if not null, these comments are addednotifyCustomer
- if true the customer will be notified by email
KKAdminException
AdminOrderStatusName[] getAllOrderStatuses(int languageId) throws KKAdminException
languageId
-
KKAdminException
AdminAddressFormat[] getAllAddressFormats() throws KKAdminException
KKAdminException
java.lang.String getHtml(java.lang.String sessionId, int htmlType, int id, int languageId, java.lang.String arg1) throws KKAdminException
"HTML types" can be one of:
sessionId
- The session Id of the logged in userhtmlType
- the HTML type eg. KonakartAdminConstants.HTML_ORDER_DETAILid
- a record Id the use is dependent on the htmlTypelanguageId
- the languageId for the language that the HTML should be inarg1
- an argument whose use is dependent on the htmlType
KKAdminException
com.konakart.app.PdfResult getPdf(java.lang.String sessionId, com.konakart.app.PdfOptions options) throws KKAdminException
sessionId
- The session Id of the logged in useroptions
- the options that define the PDF report to be produced and what is returned from
this interface.
KKAdminException
AdminCustomerSearchResult getCustomers(java.lang.String sessionId, AdminCustomerSearch search, int offset, int size) throws KKAdminException
sessionId
- The session Id of the logged in usersearch
- the definition of the search for customers - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
AdminCustomerSearchResult getCustomersLite(java.lang.String sessionId, AdminCustomerSearch search, int offset, int size) throws KKAdminException
sessionId
- The session Id of the logged in usersearch
- the definition of the search for customers - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
AdminCustomer getCustomerForId(java.lang.String sessionId, int customerId) throws KKAdminException
sessionId
- The session Id of the logged in usercustomerId
- The numeric id of the customer
KKAdminException
AdminProductNotification[] getProductNotificationsForCustomer(java.lang.String sessionId, int customerId) throws KKAdminException
sessionId
- session IdcustomerId
- Id of the customer whose product notifications will be returned
KKAdminException
void updateCustomer(java.lang.String sessionId, AdminCustomer customer) throws KKAdminException
sessionId
- The session Id of the logged in usercustomer
- A customer
KKAdminException
int deleteCustomer(java.lang.String sessionId, int custId) throws KKAdminException
sessionId
- The session Id of the logged in usercustId
- A customer id
KKAdminException
int deleteOrder(java.lang.String sessionId, int ordId) throws KKAdminException
sessionId
- The session Id of the logged in userordId
- Order id of the order to delete
KKAdminException
int getCustomersCount(java.lang.String sessionId, AdminCustomerSearch search) throws KKAdminException
sessionId
- The session Id of the logged in usersearch
- the definition of the search for customers - can be null
KKAdminException
int getCustomersCountWhoHaventPlacedAnOrderSince(java.lang.String sessionId, java.util.Calendar lastOrderDate) throws KKAdminException
sessionId
- The session id of the logged in userlastOrderDate
- The date when the last order was placed
KKAdminException
int getCustomersCountWhoHavePlacedAnOrderSince(java.lang.String sessionId, java.util.Calendar lastOrderDate) throws KKAdminException
sessionId
- The session id of the logged in userlastOrderDate
- The date when the last order was placed
KKAdminException
AdminCountry[] getAllCountriesFull() throws KKAdminException
KKAdminException
AdminTaxClass[] getAllTaxClassesFull() throws KKAdminException
KKAdminException
AdminZone[] getZonesById(int countryId) throws KKAdminException
countryId
- the countryId
KKAdminException
AdminGeoZone[] getAllGeoZones() throws KKAdminException
KKAdminException
AdminGeoZoneSearchResult getGeoZones(AdminGeoZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int deleteGeoZone(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A GeoZone id
KKAdminException
int insertGeoZone(java.lang.String sessionId, AdminGeoZone insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminGeoZone object
KKAdminException
int updateGeoZone(java.lang.String sessionId, AdminGeoZone updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminGeoZone object
KKAdminException
AdminSubZoneSearchResult getSubZones(AdminSubZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int deleteSubZone(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A SubZone id
KKAdminException
int insertSubZone(java.lang.String sessionId, AdminSubZone insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminSubZone object
KKAdminException
int updateSubZone(java.lang.String sessionId, AdminSubZone updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminSubZone object
KKAdminException
java.lang.String[] getConfigurationInfo(java.lang.String sessionId, java.lang.String[] validationKeys) throws KKAdminException
sessionId
- The session Id of the logged in uservalidationKeys
- an array of configuration keys
KKAdminException
KKConfiguration[] getAllConfigurations(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
AdminConfigurationGroup[] getAllConfigurationGroups(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
int insertConfigurationGroup(java.lang.String sessionId, AdminConfigurationGroup configGroup) throws KKAdminException
sessionId
- The session Id of the logged in userconfigGroup
- an AdminConfigurationGroup object to insert
KKAdminException
int insertConfiguration(java.lang.String sessionId, KKConfiguration config) throws KKAdminException
sessionId
- The session Id of the logged in userconfig
- a KKConfiguration object to insert
KKAdminException
void updateConfiguration(java.lang.String sessionId, KKConfiguration newConf) throws KKAdminException
sessionId
- The session Id of the logged in usernewConf
- the KKConfiguration to update
KKAdminException
void updateConfigurationGroup(java.lang.String sessionId, AdminConfigurationGroup newConf) throws KKAdminException
sessionId
- The session Id of the logged in usernewConf
- the AdminConfigurationGroup to update
KKAdminException
AdminConfigurationGroup[] getConfigurationGroupsByTitle(java.lang.String sessionId, java.lang.String title) throws KKAdminException
sessionId
- The session Id of the logged in usertitle
-
KKAdminException
KKConfiguration getConfigurationByKey(java.lang.String sessionId, java.lang.String key) throws KKAdminException
sessionId
- The session Id of the logged in userkey
- the Configuration key to search for
KKAdminException
int registerCustomer(java.lang.String sessionId, AdminCustomerRegistration custReg) throws KKAdminException
sessionId
- The session Id of the logged in usercustReg
- Customer Registration details.
KKAdminException
- If an admin user or registered customer already exists with the same eMail
addressint forceRegisterCustomer(java.lang.String sessionId, AdminCustomerRegistration custReg) throws KKAdminException
This method is intended to be used when interfacing to a SSO system for logging in admin users. The idea is that admin users are registered within KonaKart if the SSO system determines that they have adequate privileges. Once registered they are given a role and then logged in by calling other API calls. The information as to which role(s) they should be allocated is also determined from information retrieved from the SSO system. When the KonaKart session expires, the process is repeated and so the admin user has to be re-registered probably using very similar information. The registerCustomer() API call would throw an exception, whereas this API call deletes the existing admin user and registers a new one.
sessionId
- The session Id of the logged in usercustReg
- Customer Registration details
KKAdminException
- if a registered customer already exists with the same eMail addressvoid resetCustomerPassword(java.lang.String sessionId, int custId) throws KKAdminException
sessionId
- The session Id of the logged in usercustId
- Customer Id
KKAdminException
- if the customer is not found, or problems resetting the password or sending the
email.void resetCustomerPasswordSpecifyingEmail(java.lang.String sessionId, int custId, java.lang.String eMailAddress) throws KKAdminException
This API call should only be used when the emailAddress attribute of the AdminCustomer doesn't specify where the eMail should be sent.
sessionId
- custId
- Customer IdeMailAddress
- The eMail address to override the one from the customer object
KKAdminException
- if the customer is not found, or problems resetting the password or sending the
email.void setCustomerPassword(java.lang.String sessionId, int custId, java.lang.String newPassword) throws KKAdminException
sessionId
- The session Id of the logged in usercustId
- Customer IdnewPassword
- New password (as entered by the user)
KKAdminException
void changePassword(java.lang.String sessionId, java.lang.String currentPassword, java.lang.String newPassword) throws KKAdminException
sessionId
- The session Id of the logged in usercurrentPassword
- current PasswordnewPassword
- new Password
KKAdminException
- if the current password doesn't matchKKConfiguration[] getConfigurationsByGroup(java.lang.String sessionId, int configGroup) throws KKAdminException
sessionId
- The session Id of the logged in userconfigGroup
- the Configuration Group Id
KKAdminException
void saveConfigs(java.lang.String sessionId, KKConfiguration[] configs, KKConfiguration[] origConfigs) throws KKAdminException
sessionId
- The session Id of the logged in userconfigs
- Configuration array to saveorigConfigs
- Original Configuration array to compare against
KKAdminException
void insertConfigs(java.lang.String sessionId, KKConfiguration[] config) throws KKAdminException
sessionId
- The session Id of the logged in userconfig
- an array of KKConfiguration objects to insert
KKAdminException
void removeConfigs(java.lang.String sessionId, java.lang.String[] configKeys) throws KKAdminException
sessionId
- The session Id of the logged in userconfigKeys
- an array of configuration key Strings to remove
KKAdminException
KKModule[] getModules(java.lang.String sessionId, int moduleType) throws KKAdminException
Valid types are:
sessionId
- The session Id of the logged in usermoduleType
- the Configuration Group Id
KKAdminException
int insertProduct(java.lang.String sessionId, AdminProduct product) throws KKAdminException
sessionId
- The session Id of the logged in userproduct
- An AdminProduct object
KKAdminException
int insertProductWithOptions(java.lang.String sessionId, AdminProduct product, AdminProductMgrOptions mgrOptions) throws KKAdminException
sessionId
- The session Id of the logged in userproduct
- An AdminProduct objectmgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
KKAdminException
boolean doesProductExist(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The id of the product
KKAdminException
AdminProduct getProduct(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
AdminProduct getProductWithOptions(java.lang.String sessionId, int productId, AdminProductMgrOptions mgrOptions) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The numeric id of the productmgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId.
KKAdminException
AdminProducts searchForProducts(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId) throws KKAdminException
The AdminDataDescriptor allows you to:
showInvisible
to trueshowInactive
to trueThe AdminProductSearch product allows you to enter additional search parameters.
The Products may be sorted by :
sessionId
- The session id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderprodSearch
- An object containing the search criterialanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminProducts searchForProductsWithOptions(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId, AdminProductMgrOptions mgrOptions) throws KKAdminException
The AdminDataDescriptor allows you to:
showInvisible
to trueshowInactive
to trueThe AdminProductSearch product allows you to enter additional search parameters.
The Products may be sorted by :
The MgrOptions object defines whether to use prices and quantity for the catalog defined by the catalogId.
sessionId
- The session id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderprodSearch
- An object containing the search criterialanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languagemgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId.
KKAdminException
void editProduct(java.lang.String sessionId, AdminProduct product) throws KKAdminException
sessionId
- The session Id of the logged in userproduct
- AdminProduct object
KKAdminException
void editProductWithOptions(java.lang.String sessionId, AdminProduct product, AdminProductMgrOptions mgrOptions) throws KKAdminException
sessionId
- The session Id of the logged in userproduct
- AdminProduct objectmgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
KKAdminException
void deleteProduct(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
void deleteCategoryTree(java.lang.String sessionId, int categoryId, int options) throws KKAdminException
The options can be set to AdminCategoryMgr.DELETE_CHILDREN or AdminCategoryMgr.ATTACH_CHILDREN_TO_PARENT . In the first case, the category and all of its children (String sessionId, categories and products) are deleted. In the second case, only the category referenced by categoryId is deleted and all of its children are attached to its parent. However, if the category is a top level category, then the products directly associated with that category will be deleted since there is no parent category to attach them to.
sessionId
- The session Id of the logged in usercategoryId
- The numeric id of the categoryoptions
- Can be set to AdminCategoryMgr.DELETE_CHILDREN or
AdminCategoryMgr.ATTACH_CHILDREN_TO_PARENT
KKAdminException
void deleteSingleCategory(java.lang.String sessionId, int categoryId) throws KKAdminException
sessionId
- The session Id of the logged in usercategoryId
- The numeric id of the category
KKAdminException
AdminCategory getCategory(int categoryId, boolean getChildren, int languageId) throws KKAdminException
categoryId
- The numeric id of the categorygetChildren
- languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminCategory[] getCategoryTree(int languageId, boolean getNumProducts) throws KKAdminException
languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languagegetNumProducts
-
KKAdminException
int insertCategory(java.lang.String sessionId, AdminCategory cat) throws KKAdminException
sessionId
- The session Id of the logged in usercat
- An AdminCategory object
KKAdminException
void moveCategory(java.lang.String sessionId, int categoryId, int newParentId) throws KKAdminException
sessionId
- The session Id of the logged in usercategoryId
- The numeric id of the categorynewParentId
-
KKAdminException
void editCategory(java.lang.String sessionId, AdminCategory cat) throws KKAdminException
sessionId
- The session Id of the logged in usercat
- An AdminCategory object
KKAdminException
void deleteManufacturer(java.lang.String sessionId, int manufacturerId, boolean deleteProducts) throws KKAdminException
sessionId
- The session Id of the logged in usermanufacturerId
- The numeric id of the manufacturerdeleteProducts
- Set to true to delete all of the products associated with the manufacturer
KKAdminException
void editManufacturer(java.lang.String sessionId, AdminManufacturer manu) throws KKAdminException
manu
parameter.
sessionId
- The session Id of the logged in usermanu
- AdminManufacturer object
KKAdminException
AdminManufacturer[] getAllManufacturers() throws KKAdminException
KKAdminException
AdminManufacturer getManufacturer(int manufacturerId) throws KKAdminException
manufacturerId
- The numeric id of the manufacturer
KKAdminException
int insertManufacturer(java.lang.String sessionId, AdminManufacturer manu) throws KKAdminException
sessionId
- The session Id of the logged in usermanu
- An AdminManufacturer object
KKAdminException
void deleteReview(java.lang.String sessionId, int reviewId) throws KKAdminException
sessionId
- The session Id of the logged in userreviewId
- NUmeric id of the review
KKAdminException
void editReview(java.lang.String sessionId, AdminReview review) throws KKAdminException
sessionId
- The session Id of the logged in userreview
- AdminReview object
KKAdminException
AdminReviews getAllReviews(java.lang.String sessionId, AdminDataDescriptor dataDesc) throws KKAdminException
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort order
KKAdminException
AdminReview getReview(java.lang.String sessionId, int reviewId) throws KKAdminException
sessionId
- The session Id of the logged in userreviewId
- The numeric id of the AdminReview object
KKAdminException
AdminReviews getReviewsPerProduct(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderproductId
- The numeric id of the product
KKAdminException
AdminReviews getReviews(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminReviewSearch revSearch) throws KKAdminException
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderrevSearch
- The search criteria
KKAdminException
int insertReview(java.lang.String sessionId, AdminReview review) throws KKAdminException
sessionId
- The session Id of the logged in userreview
- The AdminReview object
KKAdminException
int insertSpecial(java.lang.String sessionId, AdminSpecial special) throws KKAdminException
sessionId
- The session Id of the logged in userspecial
- The AdminSpecial object
KKAdminException
AdminSpecial getSpecial(java.lang.String sessionId, int specialId) throws KKAdminException
sessionId
- The session Id of the logged in userspecialId
- The numeric id of the AdminSpecial object
KKAdminException
void deleteSpecial(java.lang.String sessionId, int specialId) throws KKAdminException
sessionId
- The session Id of the logged in userspecialId
- The numeric id of the special
KKAdminException
void editSpecial(java.lang.String sessionId, AdminSpecial special) throws KKAdminException
sessionId
- The session Id of the logged in userspecial
- AdminSpecial object
KKAdminException
AdminProducts getAllSpecials(java.lang.String sessionId, AdminDataDescriptor dataDesc, int languageId) throws KKAdminException
The Specials may be sorted by :
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminProducts getSpecialsPerCategory(java.lang.String sessionId, AdminDataDescriptor dataDesc, int categoryId, boolean searchInSubCats, int languageId) throws KKAdminException
The Specials may be sorted by :
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort ordercategoryId
- The numeric id of the categorysearchInSubCats
- Determines whether products are searched for in the sub-categories of the
specified categorylanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminProductOption[] getAllProductOptions(int languageId) throws KKAdminException
languageId
- specifies that the product options should be returned for this language. Can
specify com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to specify the default
language, or specify com.konakartadmin.bl.AdminLanguageMgr.ALL_LANGUAGES to
specify all languages
KKAdminException
AdminProductOptionSearchResult getProductOptions(java.lang.String sessionId, AdminProductOptionSearch search, int offset, int size) throws KKAdminException
sessionId
- The session Id of the logged in usersearch
- The search parameters. The languageId determines in which language the product
options are returned. It can be set to AdminLanguageMgr.DEFAULT_LANG to specify
the default language, or to AdminLanguageMgr.ALL_LANGUAGES to specify all
languages.offset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
AdminProductOptionValue[] getProductOptionValuesPerOption(int productOptionId, int languageId) throws KKAdminException
productOptionId
- languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language or
specify com.konakartadmin.bl.AdminLanguageMgr.ALL_LANGUAGES to specify all
languages
KKAdminException
void deleteProductOptions(java.lang.String sessionId, int productOptionId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionId
- The numeric id of the productOption
KKAdminException
void deleteProductOptionValues(java.lang.String sessionId, int productOptionValueId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionValueId
- The numeric id of the productOptionValue
KKAdminException
AdminProductOption[] getProductOptionsPerId(java.lang.String sessionId, int productOptionId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionId
- The numeric id of the AdminProductOption
KKAdminException
AdminProductOption[] getProductOptionsPerName(java.lang.String sessionId, java.lang.String name, int langId) throws KKAdminException
sessionId
- The session Id of the logged in username
- Product Option NamelangId
- Language Id specifies that the product option values should be returned for this
language. Can specify AdminLanguageMgr.DEFAULT_LANG to specify the default
language.
KKAdminException
AdminProductOptionValue[] getAllProductOptionValues(java.lang.String sessionId, int languageId) throws KKAdminException
sessionId
- The session Id of the logged in userlanguageId
- specifies that the product option values should be returned for this language. Can
specify AdminLanguageMgr.DEFAULT_LANG to specify the default language, or specify
AdminLanguageMgr.ALL_LANGUAGES to specify all languages
KKAdminException
AdminProductOptionValue[] getProductOptionValuesPerId(java.lang.String sessionId, int productOptionValueId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionValueId
-
KKAdminException
AdminProductOptionValue[] getProductOptionValuesPerName(java.lang.String sessionId, java.lang.String name, int languageId) throws KKAdminException
sessionId
- The session Id of the logged in username
- product option value namelanguageId
- language id (can use AdminLanguageMgr.DEFAULT_LANG to get the default language)
KKAdminException
AdminProdOptionValToProdOption[] getProductOptionValueToProductOptions(java.lang.String sessionId, AdminProdOptionValToProdOption prodOptValToProdOpt) throws KKAdminException
sessionId
- The session Id of the logged in userprodOptValToProdOpt
- the AdminProdOptionValToProdOption to look up. Only uses the optionId and
OptionValueId in this object
KKAdminException
int insertProductsOptionsValuesToProductsOptions(java.lang.String sessionId, AdminProdOptionValToProdOption prodOptValToProdOpt) throws KKAdminException
sessionId
- The session Id of the logged in userprodOptValToProdOpt
- a AdminProdOptionValToProdOption object to insert. The optionId and optionValueId
defined in the object must be valid otherwise an exception is thrown.
KKAdminException
void insertProductOption(java.lang.String sessionId, AdminProductOption productOption) throws KKAdminException
sessionId
- The session Id of the logged in userproductOption
- An AdminProductOption object
KKAdminException
void editProductOption(java.lang.String sessionId, AdminProductOption productOption) throws KKAdminException
sessionId
- The session Id of the logged in userproductOption
- AdminProductOption object
KKAdminException
void insertProductOptionValue(java.lang.String sessionId, AdminProductOptionValue productOptionValue, int productOptionId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionValue
- An AdminProductOptionValue objectproductOptionId
- The product option id for inserting a record into the
Products_Options_Values_To_Products_Options table. If this is set to -1, no such
join record is inserted.
KKAdminException
void editProductOptionValue(java.lang.String sessionId, AdminProductOptionValue productOptionValue) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionValue
- AdminProductOptionValue object
KKAdminException
int getNextProductOptionId(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
int getNextProductOptionValuesId(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
AdminProductAttribute[] getProductAttributesPerProduct(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
void deleteProductAttribute(java.lang.String sessionId, int productAttributeId) throws KKAdminException
sessionId
- The session Id of the logged in userproductAttributeId
- The numeric id of the product attribute
KKAdminException
void deleteProductAttributesPerProduct(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
void editProductAttribute(java.lang.String sessionId, AdminProductAttribute prodAttr) throws KKAdminException
sessionId
- The session Id of the logged in userprodAttr
- AdminProductAttribute object
KKAdminException
int insertProductAttribute(java.lang.String sessionId, AdminProductAttribute prodAttr) throws KKAdminException
sessionId
- The session Id of the logged in userprodAttr
- An AdminProductAttribute object
KKAdminException
int insertProductOptions(java.lang.String sessionId, AdminProductOption[] productOptions) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptions
- An array of AdminProductOption objects
KKAdminException
int insertProductOptionValues(java.lang.String sessionId, AdminProductOptionValue[] productOptionValues, int productOptionId) throws KKAdminException
sessionId
- The session Id of the logged in userproductOptionValues
- An array of AdminProductOptionValue objectsproductOptionId
- The numeric id of the AdminProductOption object
KKAdminException
int checkSession(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
- Thrown if the session is invalidjava.lang.String login(java.lang.String user, java.lang.String password) throws KKAdminException
user
- Admin usernamepassword
- Admin password
KKAdminException
void logout(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
AdminTaxRateSearchResult getAllTaxRates() throws KKAdminException
KKAdminException
AdminTaxRateSearchResult getTaxRates(AdminTaxRateSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int deleteTaxRate(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A TaxRate id
KKAdminException
int insertTaxRate(java.lang.String sessionId, AdminTaxRate insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminTaxRate object
KKAdminException
int updateTaxRate(java.lang.String sessionId, AdminTaxRate updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminTaxRate object
KKAdminException
AdminZoneSearchResult getZones(AdminZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int deleteZone(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A Zone id
KKAdminException
int insertZone(java.lang.String sessionId, AdminZone insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminZone object
KKAdminException
int updateZone(java.lang.String sessionId, AdminZone updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminZone object
KKAdminException
AdminTaxClassSearchResult getTaxClasses(AdminTaxClassSearch search) throws KKAdminException
search
- the definition of the search - can be null
KKAdminException
int deleteTaxClass(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A TaxClass id
KKAdminException
int insertTaxClass(java.lang.String sessionId, AdminTaxClass insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminTaxClass object
KKAdminException
int updateTaxClass(java.lang.String sessionId, AdminTaxClass updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminTaxClass object
KKAdminException
AdminAddressFormatSearchResult getAddressFormats(AdminAddressFormatSearch search) throws KKAdminException
search
- the definition of the search - can be null
KKAdminException
int deleteAddressFormat(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session Id of the logged in userid
- A AddressFormat id
KKAdminException
int insertAddressFormat(java.lang.String sessionId, AdminAddressFormat insertObj) throws KKAdminException
sessionId
- The session Id of the logged in userinsertObj
- An AdminAddressFormat object
KKAdminException
int updateAddressFormat(java.lang.String sessionId, AdminAddressFormat updateObj) throws KKAdminException
sessionId
- The session Id of the logged in userupdateObj
- An AdminAddressFormat object
KKAdminException
AdminIpnHistories searchForIpnHistory(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminIpnSearch ipnSearch) throws KKAdminException
sessionId
- The session Id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderipnSearch
- An object containing the search criteria
KKAdminException
int insertIpnHistory(java.lang.String sessionId, AdminIpnHistory ipnHistory) throws KKAdminException
sessionId
- The session Id of the logged in useripnHistory
- the AdminIpnHistory record to insert into the database
KKAdminException
int deleteExpiredSessions(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
AdminDBConnector testDB(AdminDBConnector connector) throws KKAdminException
connector
-
KKAdminException
boolean setConfigurationValue(java.lang.String sessionId, java.lang.String key, java.lang.String value) throws KKAdminException
sessionId
- The session Id of the logged in userkey
- key whose value will be setvalue
- value to set
KKAdminException
AdminFile[] getConfigFiles(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
AdminReport[] getReports(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
void reloadReports(java.lang.String sessionId) throws KKAdminException
sessionId
- The session Id of the logged in user
KKAdminException
java.lang.String getFileContents(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
sessionId
- The session Id of the logged in userfileName
- the filename in the server's context
KKAdminException
- if the file's not present or can't be read, or it's not a text filebyte[] getFileContentsAsByteArray(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
sessionId
- The session Id of the logged in userfileName
- the filename in the server's context
KKAdminException
- if the file's not present or can't be readvoid saveFileContents(java.lang.String sessionId, java.lang.String fileName, java.lang.String fileContents) throws KKAdminException
sessionId
- The session Id of the logged in userfileName
- the filename in the server's contextfileContents
- the file contents to write
KKAdminException
- on any Security or IO problems that prevent us from saving the data to the file.boolean deleteFile(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
sessionId
- The session Id of the logged in userfileName
- the filename in the server's context
KKAdminException
- if the file's not present or can't be deletedvoid addCategoriesToPromotion(java.lang.String sessionId, AdminCategory[] categories, int promotionId, int rule) throws KKAdminException
sessionId
- The session id of the logged in usercategories
- An array of Admin category objectspromotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the categories
KKAdminException
void addCouponsToPromotion(java.lang.String sessionId, AdminCoupon[] coupons, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usercoupons
- An array of AdminCoupon objectspromotionId
- The numeric id of the promotion
KKAdminException
void addPromotionsToCoupon(java.lang.String sessionId, AdminPromotion[] promotions, int couponId) throws KKAdminException
sessionId
- The session id of the logged in userpromotions
- An array of AdminPromotion objectscouponId
- The numeric id of the coupon
KKAdminException
void addCustomersToPromotion(java.lang.String sessionId, AdminCustomer[] customers, int promotionId, int rule, int maxUse) throws KKAdminException
sessionId
- The session id of the logged in usercustomers
- An array of AdminCustomer objectspromotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the customersmaxUse
- -1 for unlimited use
KKAdminException
void addCustomerGroupsToPromotion(java.lang.String sessionId, int[] groupIds, int promotionId, int rule) throws KKAdminException
sessionId
- The session id of the logged in usergroupIds
- An array of integers containing the group idspromotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the customers
KKAdminException
void addCustomersToPromotionPerOrdersMade(java.lang.String sessionId, java.util.Calendar lastOrderDate, boolean havePlacedOrder, int promotionId, int rule, int maxUse) throws KKAdminException
sessionId
- The session id of the logged in userlastOrderDate
- The last time a customer placed an orderhavePlacedOrder
- If true we add customers that have placed an order. Otherwise, those that haven't.promotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the customersmaxUse
- -1 for unlimited use
KKAdminException
void addManufacturersToPromotion(java.lang.String sessionId, AdminManufacturer[] manufacturers, int promotionId, int rule) throws KKAdminException
sessionId
- The session id of the logged in usermanufacturers
- An array of AdminManufacturer objectspromotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the manufacturers
KKAdminException
void addExpressionsToPromotion(java.lang.String sessionId, AdminExpression[] expressions, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userexpressions
- An array of AdminExpression objectspromotionId
- The numeric id of the promotion
KKAdminException
void addProductsToPromotion(java.lang.String sessionId, AdminProduct[] products, int promotionId, int rule) throws KKAdminException
sessionId
- The session id of the logged in userproducts
- An array of AdminProduct objectspromotionId
- The numeric id of the promotionrule
- An integer defining the rule for adding the products
KKAdminException
void addGiftCertificatesToPromotion(java.lang.String sessionId, AdminProduct[] giftCertificates, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usergiftCertificates
- An array of AdminProduct gift certificate objectspromotionId
- The numeric id of the promotion
KKAdminException
void deletePromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
void deleteCoupon(java.lang.String sessionId, int couponId) throws KKAdminException
sessionId
- The session id of the logged in usercouponId
- The numeric id of the coupon
KKAdminException
void editCoupon(java.lang.String sessionId, AdminCoupon coupon) throws KKAdminException
sessionId
- The session id of the logged in usercoupon
- An Admin coupon object
KKAdminException
void editPromotion(java.lang.String sessionId, AdminPromotion promotion) throws KKAdminException
sessionId
- The session id of the logged in userpromotion
- AdminPromotion object
KKAdminException
AdminCoupon[] getCouponsPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
AdminCouponSearchResult getCoupons(java.lang.String sessionId, AdminCouponSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort orderoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
AdminProducts getProductsPerPromotion(java.lang.String sessionId, AdminProductSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort orderoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
AdminProducts getGiftCertificatesPerPromotion(java.lang.String sessionId, AdminProductSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort orderoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
AdminPromotion getPromotion(java.lang.String sessionId, int id, boolean includeCoupons, boolean includeStats) throws KKAdminException
sessionId
- The session id of the logged in userid
- The numeric id of the AdminPromotion objectincludeCoupons
- If true we add a coupon array to the promotion if any coupons existincludeStats
- If true we calculate how many manufacturers, products, categories, customers,
expressions and coupons are included or excluded from the promotion
KKAdminException
AdminPromotionSearchResult getPromotions(java.lang.String sessionId, AdminPromotionSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort orderoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int getPromotionsCount(java.lang.String sessionId, AdminPromotionSearch search) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort order
KKAdminException
AdminPromotion[] getPromotionsPerCoupon(java.lang.String sessionId, int couponId) throws KKAdminException
sessionId
- The session id of the logged in usercouponId
- The numeric id of the coupon
KKAdminException
int insertCouponForPromotion(java.lang.String sessionId, AdminCoupon coupon, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usercoupon
- An AdminCoupon objectpromotionId
- The numeric id of the promotion
KKAdminException
int insertCoupon(java.lang.String sessionId, AdminCoupon coupon) throws KKAdminException
sessionId
- The session id of the logged in usercoupon
- An AdminCoupon object
KKAdminException
int insertPromotion(java.lang.String sessionId, AdminPromotion prom) throws KKAdminException
sessionId
- The session id of the logged in userprom
- The AdminPromotion object
KKAdminException
void removeCategoriesFromPromotion(java.lang.String sessionId, AdminCategory[] categories, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usercategories
- An array of AdminCategory objectspromotionId
- The numeric id of the promotion
KKAdminException
void removeCouponsFromPromotion(java.lang.String sessionId, AdminCoupon[] coupons, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usercoupons
- An array of AdminCoupon objectspromotionId
- The numeric id of the promotion
KKAdminException
void removePromotionsFromCoupon(java.lang.String sessionId, AdminPromotion[] promotions, int couponId) throws KKAdminException
sessionId
- The session id of the logged in userpromotions
- An array of AdminPromotion objectscouponId
- The numeric id of the coupon
KKAdminException
void removeCustomersFromPromotion(java.lang.String sessionId, AdminCustomer[] customers, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usercustomers
- An array of AdminCustomer objectspromotionId
- The numeric id of the promotion
KKAdminException
void removeCustomerGroupsFromPromotion(java.lang.String sessionId, int[] groupIds, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usergroupIds
- An array of customer group idspromotionId
- The numeric id of the promotion
KKAdminException
void removeManufacturersFromPromotion(java.lang.String sessionId, AdminManufacturer[] manufacturers, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usermanufacturers
- An array of AdminManufacturer objectspromotionId
- The numeric id of the promotion
KKAdminException
void removeExpressionsFromPromotion(java.lang.String sessionId, AdminExpression[] expressions, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userexpressions
- An array of AdminExpression objectspromotionId
- The numeric id of the promotion
KKAdminException
void removeProductsFromPromotion(java.lang.String sessionId, AdminProduct[] products, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userproducts
- An array of AdminProduct objectspromotionId
- The numeric id of the promotion
KKAdminException
void removeGiftCertificatesFromPromotion(java.lang.String sessionId, AdminProduct[] giftCertificates, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in usergiftCertificates
- An array of AdminProduct objectspromotionId
- The numeric id of the promotion
KKAdminException
AdminCategory[] getCategoriesPerPromotion(java.lang.String sessionId, int promotionId, int languageId) throws KKAdminException
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotionlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminCustomerGroup[] getCustomerGroupsPerPromotion(java.lang.String sessionId, int promotionId, int languageId) throws KKAdminException
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotionlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminManufacturer[] getManufacturersPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
AdminProducts getRelatedProducts(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId, int relationType, int languageId) throws KKAdminException
Valid values for relationType are:
sessionId
- The session id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderproductId
- The numeric id of the productrelationType
- languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
AdminProducts getRelatedProductsWithOptions(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId, int relationType, int languageId, AdminProductMgrOptions mgrOptions) throws KKAdminException
Valid values for relationType are:
sessionId
- The session id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort orderproductId
- The numeric id of the productrelationType
- languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languagemgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
KKAdminException
void removeRelatedProducts(java.lang.String sessionId, int productId, int relationType) throws KKAdminException
Valid values for relationType are:
sessionId
- The session id of the logged in userproductId
- The numeric id of the productrelationType
-
KKAdminException
void addRelatedProducts(java.lang.String sessionId, AdminProduct[] products, int productId, int relationType) throws KKAdminException
sessionId
- The session id of the logged in userproducts
- An array of AdminProduct objectsproductId
- The numeric id of the productrelationType
- The type of relationship that the the array of AdminProducts has with the product
identified by productId
KKAdminException
AdminOrder getOrderForOrderId(java.lang.String sessionId, int orderId) throws KKAdminException
sessionId
- The session id of the logged in userorderId
- The numeric id of the AdminOrder object
KKAdminException
AdminOrder getOrderForOrderIdAndLangId(java.lang.String sessionId, int orderId, int languageId) throws KKAdminException
sessionId
- The session id of the logged in userorderId
- The numeric id of the AdminOrder objectlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
java.lang.String readFromUrl(java.lang.String sessionId, java.lang.String url) throws KKAdminException
sessionId
- The session id of the logged in userurl
- The url
KKAdminException
void editOrderReturn(java.lang.String sessionId, AdminOrderReturn orderRet) throws KKAdminException
sessionId
- The session id of the logged in userorderRet
- AdminOrderReturn object
KKAdminException
int insertOrderReturn(java.lang.String sessionId, AdminOrderReturn orderRet) throws KKAdminException
sessionId
- The session id of the logged in userorderRet
- An AdminOrderReturn object
KKAdminException
void deleteOrderReturn(java.lang.String sessionId, int orderRetId) throws KKAdminException
sessionId
- The session id of the logged in userorderRetId
- The id of the AdminOrderReturn object
KKAdminException
AdminOrderReturnSearchResult getOrderReturns(java.lang.String sessionId, AdminOrderReturnSearch retSearch, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in userretSearch
- An object that defines the search parametersoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
void setEndpoint(java.lang.String wsEndpoint) throws KKAdminException
The effect will be to set the web service endpoint for the proxy to the KonaKart engine.
wsEndpoint
- A String representing the web service endpoint
KKAdminException
AdminMessageSet getMsgs(java.lang.String languageCode) throws KKAdminException
For file-based messages (where the configuration parameter USE_DB_FOR_MESSAGES = false) the messages are retrieved from a message properties file on the classpath that best-matches the specified language parameter. The name of the file starts with 'AdminMessages' and may have a language code or locale specification appended to it, and '.properties' added to the end. An example of such a file would be AdminMessages_de.properties. It first tries to find a file that matches the language_code exactly (this could be a full locale description such as 'de_DE' or 'pt_BR') and if no such file is found it tries to find one that matches just the first two characters (in this case 'de' and 'pt' respectively). When the specified language code is 'en' a file without any language or locale specification is used instead.
For database-based messages the language code specified must be the locale specified in the database. By default these will be the full locale names (eg. en_GB, de_DE, pt_BR etc). file for the locale or language code.
languageCode
- See above... Either specify the full language locale or the 2-character language
code. If null, the language code of the default language will be used.
KKAdminException
AdminCustomValidatorSet getCustomValidatorSet() throws KKAdminException
KKAdminException
java.lang.String getHelpMsg(java.lang.String msgKey, java.lang.String languageCode) throws KKAdminException
For file-based messages (where the configuration parameter USE_DB_FOR_MESSAGES = false) the message is retrieved from a message properties file on the classpath that best-matches the specified language parameter. The name of the file starts with 'AdminHelpMessages' and may have a language code or locale specification appended to it, and '.properties' added to the end. An example of such a file would be AdminHelpMessages_de.properties. It first tries to find a file that matches the language_code exactly (this could be a full locale description such as 'de_DE' or 'pt_BR') and if no such file is found it tries to find one that matches just the first two characters (in this case 'de' and 'pt' respectively). When the specified language code is 'en' a file without any language or locale specification is used instead.
For database-based messages the language code specified must be the locale specified in the database. By default these will be the full locale names (eg. en_GB, de_DE, pt_BR etc). file for the locale or language code.
For properties in the 'AdminHelpMessages' properties files that contain substitution definitions, this call will translate these into their substituted values.
msgKey
- the key of the help message in the properties file. If null, a null help message
is returned.languageCode
- the language code (if null it uses the current default language)
KKAdminException
java.lang.String getSku(java.lang.String sessionId, AdminOrderProduct orderProd) throws KKAdminException
sessionId
- The session id of the logged in userorderProd
- An AdminOrderProduct object
KKAdminException
java.lang.String[] getSkus(java.lang.String sessionId, AdminOrderProduct[] orderProds) throws KKAdminException
sessionId
- The session id of the logged in userorderProds
- An array of AdminOrderProduct objects
KKAdminException
boolean doesCustomerExistForEmail(java.lang.String sessionId, java.lang.String emailAddr) throws KKAdminException
sessionId
- The session id of the logged in useremailAddr
- The email address of the customer
KKAdminException
AdminAuditSearchResult getAuditData(java.lang.String sessionId, AdminAuditSearch retSearch, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in userretSearch
- An object that defines the search parametersoffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
int importAudit(java.lang.String sessionId, AdminAudit audit) throws KKAdminException
sessionId
- The session id of the logged in useraudit
-
KKAdminException
void deleteAuditData(java.lang.String sessionId, AdminAuditSearch delSearch) throws KKAdminException
sessionId
- The session id of the logged in userdelSearch
- AdminAuditSearch object to filter the datato be deleted
KKAdminException
AdminRole[] getRolesPerSessionId(java.lang.String sessionId) throws KKAdminException
sessionId
- The session id of the logged in user
KKAdminException
AdminRole[] getRolesPerUser(java.lang.String sessionId, int userId) throws KKAdminException
sessionId
- The session id of the logged in useruserId
- The numeric id of the user
KKAdminException
void addRolesToUser(java.lang.String sessionId, AdminRole[] roles, int userId) throws KKAdminException
sessionId
- The session id of the logged in userroles
- An array of AdminRole objectsuserId
- The numeric id of the user
KKAdminException
void removeRolesFromUser(java.lang.String sessionId, AdminRole[] roles, int userId) throws KKAdminException
sessionId
- The session id of the logged in userroles
- An array of AdminRole objectsuserId
- The numeric user id
KKAdminException
void removePanelsFromRole(java.lang.String sessionId, AdminPanel[] panels, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userpanels
- An array of AdminPanel objectsroleId
- The id of the Role
KKAdminException
void removeApiCallsFromRole(java.lang.String sessionId, AdminApiCall[] apiCalls, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userapiCalls
- An array of AdminApiCall objectsroleId
- The id of the Role
KKAdminException
void addPanelsToRole(java.lang.String sessionId, AdminPanel[] panels, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userpanels
- An array of AdminPanel objectsroleId
- The numeric id of the Role
KKAdminException
void addApiCallsToRole(java.lang.String sessionId, AdminApiCall[] apiCalls, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userapiCalls
- An array of AdminApiCall objectsroleId
- The id of the Role
KKAdminException
AdminPanel[] getPanelsPerRole(java.lang.String sessionId, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
AdminApiCall[] getApiCallsPerRole(java.lang.String sessionId, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
AdminPanel[] getAllPanels(java.lang.String sessionId) throws KKAdminException
sessionId
- The session id of the logged in user
KKAdminException
AdminApiCall[] getAllApiCalls(java.lang.String sessionId) throws KKAdminException
sessionId
- The session id of the logged in user
KKAdminException
AdminRole[] getAllRoles(java.lang.String sessionId) throws KKAdminException
sessionId
- The session id of the logged in user
KKAdminException
void editRole(java.lang.String sessionId, AdminRole role) throws KKAdminException
sessionId
- The session id of the logged in userrole
- AdminRole object
KKAdminException
int insertRole(java.lang.String sessionId, AdminRole role) throws KKAdminException
sessionId
- The session id of the logged in userrole
- The AdminRole object
KKAdminException
void deleteRole(java.lang.String sessionId, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
void deletePanel(java.lang.String sessionId, int panelId) throws KKAdminException
sessionId
- The session id of the logged in userpanelId
- The numeric id of the panel
KKAdminException
void deleteApiCall(java.lang.String sessionId, int apiCallId) throws KKAdminException
sessionId
- The session id of the logged in userapiCallId
- The numeric id of the ApiCall
KKAdminException
void editPanel(java.lang.String sessionId, AdminPanel panel) throws KKAdminException
sessionId
- The session id of the logged in userpanel
- AdminPanel object
KKAdminException
void editApiCall(java.lang.String sessionId, AdminApiCall apiCall) throws KKAdminException
sessionId
- The session id of the logged in userapiCall
- An AdminApiCall object
KKAdminException
AdminPanel getPanel(java.lang.String sessionId, int panelId) throws KKAdminException
sessionId
- The session id of the logged in userpanelId
- The numeric id of the AdminPanel object
KKAdminException
AdminApiCall getApiCall(java.lang.String sessionId, int apiCallId) throws KKAdminException
sessionId
- The session id of the logged in userapiCallId
- The numeric id of the AdminApiCall object
KKAdminException
AdminRole getRole(java.lang.String sessionId, int roleId) throws KKAdminException
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
int insertPanel(java.lang.String sessionId, AdminPanel panel) throws KKAdminException
sessionId
- The session id of the logged in userpanel
- An AdminPanel object
KKAdminException
int insertApiCall(java.lang.String sessionId, AdminApiCall apiCall) throws KKAdminException
sessionId
- The session id of the logged in userapiCall
- An AdminApiCall object
KKAdminException
void insertDigitalDownload(java.lang.String sessionId, int customerId, int productId) throws KKAdminException
productId
and the customer identified by the sessionId
.
If the digital download already exists, then we overwrite it with the new one.
The attributes of the digital download product such as the maximum number of days that it is valid and how many times it can be downloaded, are retrieved from configuration variables.
sessionId
- The session id of the logged in usercustomerId
- The numeric id of the customerproductId
- The numeric id of the product
KKAdminException
void sendTemplateEmailToCustomers(java.lang.String sessionId, AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5, int numEmailThreads) throws KKAdminException
The email is generated by the template called templateName and the objects obj1-obj5 are passed to the template. The current AdminCustomer object is also passed to the Velocity template with the name "cust". The subject of the eMail is picked up from the first line of the template. obj1-obj5 can be any object that you wish to extract data from to place into the eMail. For example you could look up a number of special offers from the database and set obj1 to an array of products containing these special offers.
The individual emails are sent using a thread pool with a maximum number of threads that is defined by numEmailThreads.
Note that this method is not available via the SOAP Web Service interface because of problems with the serialization of parameters of type object. Please use sendTemplateEmailToCustomers1() instead.
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sessionId
- The session id of the logged in usercustSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The "country code" and ".vm" will be appended
automatically. i.e. If the template name is newsletter and the country code is en,
then we will look for a file called newsletter_en.vm. This file should be in the
classpath.obj1
- This object will be passed to the velocity template with the name "obj1".obj2
- This object will be passed to the velocity template with the name "obj2".obj3
- This object will be passed to the velocity template with the name "obj3".obj4
- This object will be passed to the velocity template with the name "obj4".obj5
- This object will be passed to the velocity template with the name "obj5".numEmailThreads
- The maximum number of concurrent threads used by the thread pool to send the
eMails. If set to 0 or to a negative value, it is ignored.
KKAdminException
void sendTemplateEmailToCustomersWithOptions(java.lang.String sessionId, AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5, int numEmailThreads, AdminEmailOptions options) throws KKAdminException
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sessionId
- The session id of the logged in usercustSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The "country code" and ".vm" will be appended
automatically. i.e. If the template name is newsletter and the country code is en,
then we will look for a file called newsletter_en.vm. This file should be in the
classpath.obj1
- This object will be passed to the velocity template with the name "obj1".obj2
- This object will be passed to the velocity template with the name "obj2".obj3
- This object will be passed to the velocity template with the name "obj3".obj4
- This object will be passed to the velocity template with the name "obj4".obj5
- This object will be passed to the velocity template with the name "obj5".numEmailThreads
- The maximum number of concurrent threads used by the thread pool to send the
eMails. If set to 0 or to a negative value, it is ignored.options
- An object used to configure options used when sending eMails from the AdminApp
KKAdminException
void sendTemplateEmailToCustomers1(java.lang.String sessionId, AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.String message, AdminProduct[] products, AdminOrder[] orders, AdminManufacturer[] manufacturers, AdminCategory[] categories, int numEmailThreads) throws KKAdminException
sendTemplateEmailToCustomers()
and is just a more specific implementation where
arrays of defined objects are passed to the Velocity template rather than java.lang.Object
which cannot be serialized for use in a Web Service interface.
The email is generated by the template called templateName and the message, arrays of products, orders, manufacturers and categories are passed to the template. The current AdminCustomer object is also passed to the Velocity template with the name "cust". The subject of the eMail is picked up from the first line of the template. The message and arrays passed to the template can be set to null if not required.
The individual emails are sent using a thread pool with a maximum number of threads that is defined by numEmailThreads.
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sessionId
- The session id of the logged in usercustSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The "country code" and ".vm" will be appended
automatically. i.e. If the template name is newsletter and the country code is en,
then we will look for a file called newsletter_en.vm. This file should be in the
classpath.message
- This message will be passed to the velocity template with the name "obj1".products
- This products will be passed to the velocity template with the name "obj2".orders
- This orders will be passed to the velocity template with the name "obj3".manufacturers
- This manufacturers will be passed to the velocity template with the name "obj4".categories
- This categories will be passed to the velocity template with the name "obj5".numEmailThreads
- The maximum number of concurrent threads used by the thread pool to send the
eMails. If set to 0 or to a negative value, it is ignored.
KKAdminException
void sendTemplateEmailToCustomers1WithOptions(java.lang.String sessionId, AdminCustomerSearch custSearch, java.lang.String templateName, java.lang.String message, AdminProduct[] products, AdminOrder[] orders, AdminManufacturer[] manufacturers, AdminCategory[] categories, int numEmailThreads, AdminEmailOptions options) throws KKAdminException
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sessionId
- The session id of the logged in usercustSearch
- The AdminCustomerSearch object which determines the customers that are selected.templateName
- The name of the template. The "country code" and ".vm" will be appended
automatically. i.e. If the template name is newsletter and the country code is en,
then we will look for a file called newsletter_en.vm. This file should be in the
classpath.message
- This message will be passed to the velocity template with the name "obj1".products
- This products will be passed to the velocity template with the name "obj2".orders
- This orders will be passed to the velocity template with the name "obj3".manufacturers
- This manufacturers will be passed to the velocity template with the name "obj4".categories
- This categories will be passed to the velocity template with the name "obj5".numEmailThreads
- The maximum number of concurrent threads used by the thread pool to send the
eMails. If set to 0 or to a negative value, it is ignored.options
- An object used to configure options used when sending eMails from the AdminApp
KKAdminException
void insertProductNotification(java.lang.String sessionId, AdminProductNotification apn) throws KKAdminException
sessionId
- The session id of the logged in userapn
- An AdminProductNotification object
KKAdminException
void deleteProductNotification(java.lang.String sessionId, AdminProductNotification apn) throws KKAdminException
sessionId
- The session id of the logged in userapn
- An AdminProductNotification object
KKAdminException
AdminCustomer getCustomerForEmail(java.lang.String sessionId, java.lang.String emailAddress) throws KKAdminException
sessionId
- The session id of the logged in useremailAddress
- The eMail address of the customer
KKAdminException
int insertCustomerGroup(java.lang.String sessionId, AdminCustomerGroup custGroup) throws KKAdminException
sessionId
- The session Id of the logged in usercustGroup
- A Customer Group object
KKAdminException
int insertCustomerGroups(java.lang.String sessionId, AdminCustomerGroup[] custGroups) throws KKAdminException
sessionId
- custGroups
- An array of AdminCustomerGroup objects
KKAdminException
int updateCustomerGroup(java.lang.String sessionId, AdminCustomerGroup custGroup) throws KKAdminException
sessionId
- The session Id of the logged in usercustGroup
- A customer group object
KKAdminException
int deleteCustomerGroup(java.lang.String sessionId, int custGroupId) throws KKAdminException
sessionId
- The session Id of the logged in usercustGroupId
- The id of a customer group object
KKAdminException
AdminCustomerGroupSearchResult getCustomerGroups(AdminCustomerGroupSearch search) throws KKAdminException
search
- An AdminCustomerGroupSearch object containing the search criteria
KKAdminException
void editOrder(java.lang.String sessionId, AdminOrder order) throws KKAdminException
This method only allows you to edit certain attributes of an order. In order to change the
order status you must use updateOrderStatus()
.
The attributes that can be modified are:
Attributes containing null values will be ignored. In order to clear a String attribute, you must set it to an empty string.
sessionId
- The session Id of the logged in userorder
- The AdminOrder object to be edited
KKAdminException
void setCreditCardDetailsOnOrder(java.lang.String sessionId, AdminCreditCard creditCard) throws KKAdminException
This method only allows you to update the credit card details on an order. In order to change
the order status you must use updateOrderStatus()
.
The Credit Card details are only saved if the ability to save credit card details is enabled in the configuration of the store.
The orderId must be specified as the id on the AdminCreditCard object.
The following Credit Card attributes can be saved (on the CreditCard object):
sessionId
- The session Id of the logged in usercreditCard
- An AdminCreditCard object containing all of the credit card details
KKAdminException
AdminCategory[] getTopLevelCategories(int languageId, AdminDataDescriptor dataDesc) throws KKAdminException
languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languagedataDesc
- Used to control the data offset, limit the number of categories returned and to
set constraints on the custom fields. May be set to null;
KKAdminException
java.lang.String custom(java.lang.String input1, java.lang.String input2) throws KKAdminException
There are two versions, one that requires a valid sessionId (customSecure) and one that does not (custom).
You are free to use the two input String parameters in any way you choose, for example you may wish to use one to indicate which of your custom functions to run, and the other might contain XML to give you a great deal of flexibility - but it's up to you!
input1
- The first input String - can be anything you chooseinput2
- The second input String - can be anything you choose
KKAdminException
java.lang.String customSecure(java.lang.String sessionId, java.lang.String input1, java.lang.String input2) throws KKAdminException
There are two versions, one that requires a valid sessionId (customSecure) and one that does not (custom).
You are free to use the two input String parameters in any way you choose, for example you may wish to use one to indicate which of your custom functions to run, and the other might contain XML to give you a great deal of flexibility - but it's up to you!
sessionId
- The session id of the logged in userinput1
- The first input String - can be anything you chooseinput2
- The second input String - can be anything you choose
KKAdminException
AdminProduct getBundleProductDetails(java.lang.String sessionId, int bundleId, AdminProduct[] bundledProducts, AdminDiscount discount) throws KKAdminException
sessionId
- The session id of the logged in userbundleId
- If set to a positive value, we search for all of the products in the bundle,
starting from this id of the bundle product.bundledProducts
- If bundleId is less than zero, we use the products in this array otherwise it is
ignored. Each product should have the bundledProdQuantity attribute set to the
number of times that it appears in the bundle. If a product in the bundle has a
certain configuration (i.e. Size = small, color = red) then the
encodedOptionValues attribute should contain the encoded option values. The format
of the encodeOptionValues is 1{2}3{4} where the first optionId / valueId pair have
ids of 1,2 and the 2nd optionId / valueId pair have ids of 3,4.discount
- The discount to apply which can be an amount or a percentage
KKAdminException
AdminTagSearchResult getTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag objects to search for. If
null we use the default AdminSearch object.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
AdminTagGroupSearchResult getTagGroups(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag group objects to search for.
If null we use the default AdminSearch objectoffset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
AdminTagGroupToTag[] getTagGroupToTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the tag objects to search for. If
null we use the default AdminSearch object. If id is not -1 this is used to define
the tag Group Id. If id2 is not -1 this is used to define the tag Id.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
int insertTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
sessionId
- session Id of logged in Admin usertag
- the new AdminTag object to insert - do not fill out the Id as this will be created
KKAdminException
int insertTags(java.lang.String sessionId, AdminTag[] tags) throws KKAdminException
sessionId
- session Id of logged in Admin usertags
- the array of AdminTag objects to insert - do not fill out the Id on these as this
will be created. It is assumed that all of these tags will have the same ID, and
there will be one for each language.
KKAdminException
int insertTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroup
- the new AdminTagGroup object to insert - do not fill out the Id as this will be
created
KKAdminException
int insertTagGroups(java.lang.String sessionId, AdminTagGroup[] tagGroups) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroups
- the new AdminTagGroup object to insert - do not fill out the Id on these as this
will be created. It is assumed that all of these tagGroups will have the same ID,
and there will be one for each language.
KKAdminException
void insertTagGroupToTags(java.lang.String sessionId, AdminTagGroupToTag tagGroupToTag) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroupToTag
-
KKAdminException
int updateTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
sessionId
- session Id of logged in Admin usertag
- the AdminTag object to update
KKAdminException
int updateTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroup
- the AdminTagGroup object to update
KKAdminException
void deleteTag(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTag to delete
KKAdminException
void deleteTagGroup(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- session Id of logged in Admin userid
- the id of the AdminTagGroup to delete
KKAdminException
AdminTagGroup[] getTagGroupsPerCategory(java.lang.String sessionId, int categoryId, int languageId) throws KKAdminException
sessionId
- session Id of logged in Admin usercategoryId
- The id of the categorylanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
int[] getCategoriesPerTagGroup(java.lang.String sessionId, int tagGroupId) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroupId
- The id of the tag Group
KKAdminException
AdminCategoryToTagGroup[] getCategoriesToTagGroups(java.lang.String sessionId) throws KKAdminException
sessionId
- session Id of logged in Admin user
KKAdminException
void addTagGroupsToCategory(java.lang.String sessionId, AdminTagGroup[] tagGroups, int categoryId) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroups
- Array of AdminTagGroup objectscategoryId
- The id of the category
KKAdminException
void addCategoriesToTagGroups(java.lang.String sessionId, int tagGroupId, int[] categories) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroupId
- the tag group Id to link to the categoriescategories
- an array of category Ids to link to the Tag Group
KKAdminException
void removeTagGroupsFromCategory(java.lang.String sessionId, AdminTagGroup[] tagGroups, int categoryId) throws KKAdminException
sessionId
- session Id of logged in Admin usertagGroups
- Array of AdminTagGroup objectscategoryId
- The id of the category
KKAdminException
AdminTag[] getTagsPerProduct(java.lang.String sessionId, int productId, int languageId) throws KKAdminException
sessionId
- session Id of logged in Admin userproductId
- The id of the productlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
void addTagsToProduct(java.lang.String sessionId, AdminTag[] tags, int productId) throws KKAdminException
sessionId
- session Id of logged in Admin usertags
- Array of AdminTag objectsproductId
- The id of the product
KKAdminException
void removeTagsFromProduct(java.lang.String sessionId, AdminTag[] tags, int productId) throws KKAdminException
sessionId
- session Id of logged in Admin usertags
- Array of AdminTag objectsproductId
- The id of the product
KKAdminException
void updateCachedConfigurations(java.lang.String sessionId) throws KKAdminException
sessionId
- session Id of logged in Admin user
KKAdminException
void publishProducts(java.lang.String sessionId, AdminPublishConfig adminPublishConfig) throws KKAdminException
sessionId
- Session IdadminPublishConfig
- Defines the data feed parameters
KKAdminException
void addAllProductsToSearchEngine(java.lang.String sessionId, boolean async) throws KKAdminException
async
- When set to true, control is immediately returned to the caller and the operation
proceeds asynchronously.sessionId
- Session Id
KKAdminException
void addProductToSearchEngine(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- Session IdproductId
- The numeric id of the product
KKAdminException
void removeAllProductsFromSearchEngine(java.lang.String sessionId, boolean async) throws KKAdminException
sessionId
- Session Idasync
- When set to true, control is immediately returned to the caller and the operation
proceeds asynchronously on the search engine.
KKAdminException
void removeProductFromSearchEngine(java.lang.String sessionId, int productId) throws KKAdminException
sessionId
- Session IdproductId
- The numeric id of the product
KKAdminException
void setProductQuantity(java.lang.String sessionId, java.lang.String sku, int id, int quantity, int operation) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
The quantity
parameter may be used to set the new quantity, to reduce the
quantity by its value or to increase the quantity by its value. In other words it can replace
the current quantity, be subtracted or added to the current quantity. The
operation
parameter determines which operation is performed.
Valid values are:
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.quantity
- The new quantityoperation
- Determines whether to set, add or subtract the quantity. See above for valid
values.
KKAdminException
void setProductQuantityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, int quantity, int operation, AdminProductMgrOptions mgrOptions) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
The quantity
parameter may be used to set the new quantity, to reduce the
quantity by its value or to increase the quantity by its value. In other words it can replace
the current quantity, be subtracted or added to the current quantity. The
operation
parameter determines which operation is performed.
Valid values are:
The mgrOptions object allows you to define whether the quantity can have different values depending on the catalogId. It may be set to null.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.quantity
- The new quantityoperation
- Determines whether to set, add or subtract the quantity. See above for valid
values.mgrOptions
- Allows you to define whether the quantity can have different values depending on
the catalogId. May be set to null.
KKAdminException
int getProductQuantity(java.lang.String sessionId, java.lang.String sku, int id) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.
KKAdminException
int getProductQuantityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
The mgrOptions object allows you to define whether the quantity can have different values depending on the catalogId. It may be set to null.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.mgrOptions
- Allows you to define whether the quantity can have different values depending on
the catalogId. May be set to null.
KKAdminException
void setProductAvailability(java.lang.String sessionId, java.lang.String sku, int id, java.util.Calendar dateAvailable) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.dateAvailable
- The date when the product will be available
KKAdminException
void setProductAvailabilityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, java.util.Calendar dateAvailable, AdminProductMgrOptions mgrOptions) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
The mgrOptions object allows you to define whether the availability date can have different values depending on the catalogId. It may be set to null.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.dateAvailable
- The date when the product will be availablemgrOptions
- Allows you to define whether the availability date can have different values
depending on the catalogId. May be set to null.
KKAdminException
java.util.Calendar getProductAvailability(java.lang.String sessionId, java.lang.String sku, int id) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.
KKAdminException
java.util.Calendar getProductAvailabilityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws KKAdminException
The product may be identified by the product id or the SKU. When set to a valid value, the SKU is used and the product id is ignored. When the SKU is set to null, the product id is used to identify the product. Note that the SKU should always be used in cases where a single product has many variations such as color and size.
The mgrOptions object allows you to define whether the availability date can have different values depending on the catalogId. It may be set to null.
sessionId
- Session Idsku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.mgrOptions
- Allows you to define whether the availability date can have different values
depending on the catalogId. May be set to null.
KKAdminException
void addCustomDataToSession(java.lang.String sessionId, java.lang.String data, int position) throws KKAdminException
sessionId
- The sessionIddata
- The data to be savedposition
- This must be in the range of 1-5 to identify custom1 to custom5
KKAdminException
java.lang.String getCustomDataFromSession(java.lang.String sessionId, int position) throws KKAdminException
sessionId
- The sessionIdposition
- This must be in the range of 1-5 to identify custom1 to custom5
KKAdminException
java.lang.String execute(java.lang.String sessionId, java.lang.String className, java.lang.String methodName, java.lang.String[] paramArray) throws KKAdminException
The purpose of this API call is to run batch jobs which may be easily run from a scheduler such as Quartz. The java class is instantiated through reflection. This means that it lends itself nicely to custom batch jobs created by KonaKart administrators. Note that if the class has a constructor with a single parameter of type KKAdminIf then this constructor will be called and will be passed an instantiated Admin Eng object.
For example:
public AdminOrderBatchMgr(KKAdminIf eng) throws Exception { super.init(eng); }
sessionId
- The sessionIdclassName
- The fully qualified classNamemethodName
- The name of the method to be executedparamArray
- The parameters passed to the method
KKAdminException
AdminProductToStore[] getProductsToStores(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminSearch search) throws KKAdminException
sessionId
- The session id of the logged in userdataDesc
- Used to control the data offset, limit the number of items returned and set the
sort order Used to control the data offset, limit the number of items returned and
set the sort order. You can specify any two of the following to define the sort
order: AdminDataDescriptor.ORDER_BY_STOREID_ASCENDING,
AdminDataDescriptor.ORDER_BY_STOREID_DESCENDING,
AdminDataDescriptor.ORDER_BY_ID_ASCENDING,
AdminDataDescriptor.ORDER_BY_ID_DESCENDINGsearch
- Defines the records to be returned. Populate the id with the productId (or set to
KonaKartAdminConstant.NOT_SET to get all products) and the name with the storeId
(or leave null for all stores).
KKAdminException
void insertProductsToStores(java.lang.String sessionId, AdminProductToStore[] productToStores) throws KKAdminException
sessionId
- The session id of the logged in userproductToStores
- an array of AdminProductToStore objects to insert into the database
KKAdminException
void removeProductsToStores(java.lang.String sessionId, AdminProductToStore[] productToStores) throws KKAdminException
sessionId
- The session id of the logged in userproductToStores
- an array of AdminProductToStore objects to delete from the database
KKAdminException
int insertOrder(java.lang.String sessionId, AdminOrder order) throws KKAdminException
sessionId
- The session id of the logged in userorder
- The order to be inserted
KKAdminException
AdminWishLists getWishLists(java.lang.String sessionId, AdminWishListSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the AdminWishListSearch object that defines the wish list objects to search for.
If null we use the default AdminWishListSearch object.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
int insertWishList(java.lang.String sessionId, AdminWishList wishList) throws KKAdminException
sessionId
- The session id of the logged in userwishList
- The wish list
KKAdminException
void deleteWishList(java.lang.String sessionId, int wishListId) throws KKAdminException
sessionId
- The session id of the logged in userwishListId
- Id of the wish list item
KKAdminException
int insertWishListItem(java.lang.String sessionId, AdminWishListItem wishListItem) throws KKAdminException
sessionId
- The session id of the logged in userwishListItem
- The wish list item
KKAdminException
void deleteWishListItem(java.lang.String sessionId, int wishListItemId) throws KKAdminException
sessionId
- The session id of the logged in userwishListItemId
- Id of the wish list item
KKAdminException
AdminAddressSearchResult getAddresses(java.lang.String sessionId, AdminAddressSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the search criteriaoffset
- the offset in the record set to start fromsize
- the maximum number of records to return
KKAdminException
AdminAddress getAddressById(java.lang.String sessionId, int addressId) throws KKAdminException
sessionId
- session Id of logged in Admin useraddressId
- the id of the address to retrieve
KKAdminException
int insertAddress(java.lang.String sessionId, AdminAddress address) throws KKAdminException
sessionId
- session Id of logged in Admin useraddress
- an AdminAddress object
KKAdminException
void updateAddress(java.lang.String sessionId, AdminAddress address) throws KKAdminException
sessionId
- session Id of logged in Admin useraddress
- the AdminAddress object to update
KKAdminException
void deleteAddress(java.lang.String sessionId, int addressId) throws KKAdminException
sessionId
- session Id of logged in Admin useraddressId
- the id of the address to delete
KKAdminException
int insertCustomerTag(java.lang.String sessionId, AdminCustomerTag tag) throws KKAdminException
The following customer tag attributes are compulsory:
The id of the new object is returned.
sessionId
- The session id of the logged in usertag
- The AdminCustomerTag object to be inserted
KKAdminException
AdminCustomerTagSearchResult getCustomerTags(java.lang.String sessionId, AdminCustomerTagSearch search, int offset, int size) throws KKAdminException
Constraints may be added for:
The returned objects may be ordered by:
sessionId
- The session id of the logged in usersearch
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offset
KKAdminException
int updateCustomerTag(java.lang.String sessionId, AdminCustomerTag tag) throws KKAdminException
sessionId
- The session id of the logged in usertag
- The AdminCustomerTag object used for the update
KKAdminException
int deleteCustomerTag(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session id of the logged in userid
- The id of the deleted customer tag
KKAdminException
AdminCustomerTag getCustomerTag(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
customer tag doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the AdminCustomerTag object
KKAdminException
void deleteCustomerTagForCustomer(java.lang.String sessionId, int customerId, java.lang.String tagName) throws KKAdminException
tagName
for the customer
referenced by customerId
.
sessionId
- The session id of the logged in usercustomerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
AdminCustomerTag getCustomerTagForCustomer(java.lang.String sessionId, int customerId, java.lang.String tagName) throws KKAdminException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB. The value
attribute of the customer tag
contains the value for the customer referenced by customerId
.
sessionId
- The session id of the logged in usercustomerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
AdminCustomerTag getCustomerTagForName(java.lang.String sessionId, java.lang.String tagName) throws KKAdminException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB.
sessionId
- The session id of the logged in usertagName
- The name of the customer tag
KKAdminException
AdminCustomerTag[] getCustomerTagsForCustomer(java.lang.String sessionId, int customerId) throws KKAdminException
customerId
parameter. The value
attribute of the customer tags
contains the value for the customer referenced by customerId
.
An empty array is returned if no tags exist.
sessionId
- The session id of the logged in usercustomerId
- The id of the customer
KKAdminException
void insertCustomerTagForCustomer(java.lang.String sessionId, int customerId, AdminCustomerTag tag) throws KKAdminException
customerId
. If a tag
already exists with this name, then the value is replaced with the new value.
The compulsory tag fields are:
Note that a customer tag with name tag.getName()
must exist in the database
since it is used to validate tag.getValue()
.
sessionId
- The session id of the logged in usercustomerId
- The id of the customertag
- The customer tag object
KKAdminException
int insertExpression(java.lang.String sessionId, AdminExpression exp) throws KKAdminException
name
attribute of the
AdminExpression is required.
sessionId
- The session id of the logged in userexp
- The AdminExpression object to be inserted
KKAdminException
int updateExpression(java.lang.String sessionId, AdminExpression exp) throws KKAdminException
sessionId
- The session id of the logged in userexp
- The AdminExpression object to be updated
KKAdminException
int deleteExpression(java.lang.String sessionId, int id) throws KKAdminException
id
.
sessionId
- The session id of the logged in userid
- The id of the AdminExpression object to be deleted
KKAdminException
AdminExpression getExpression(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
AdminExpression doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the AdminExpression object
KKAdminException
AdminExpressionVariable getExpressionVariable(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the AdminExpressionVariable object
KKAdminException
AdminExpressionVariable[] getExpressionVariablesForExpression(java.lang.String sessionId, int expressionId) throws KKAdminException
id
parameter. An empty array is returned if no objects are found.
sessionId
- The session id of the logged in userexpressionId
- The AdminExpression id for the AdminExpressionVariable objects
KKAdminException
AdminExpression getExpressionForName(java.lang.String sessionId, java.lang.String expName) throws KKAdminException
expName
parameter, or Null if the
AdminExpression doesn't exist in the DB.
sessionId
- The session id of the logged in userexpName
- The name of the AdminExpression object
KKAdminException
AdminExpressionSearchResult getExpressions(java.lang.String sessionId, AdminExpressionSearch search, int offset, int size) throws KKAdminException
Constraints may be added for:
The returned objects may be ordered by:
sessionId
- The session id of the logged in usersearch
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offset
KKAdminException
int insertExpressionVariables(java.lang.String sessionId, AdminExpressionVariable[] expVarArray) throws KKAdminException
sessionId
- The session id of the logged in userexpVarArray
- The AdminExpressionVariable array of objects to be inserted
KKAdminException
int updateExpressionVariable(java.lang.String sessionId, AdminExpressionVariable expVar) throws KKAdminException
sessionId
- The session id of the logged in userexpVar
- The AdminExpressionVariable object to be updated
KKAdminException
int deleteExpressionVariable(java.lang.String sessionId, int id) throws KKAdminException
id
.
sessionId
- The session id of the logged in userid
- The id of the AdminExpressionVariable object to be deleted
KKAdminException
void deleteExpressionVariablesForExpression(java.lang.String sessionId, int expressionId) throws KKAdminException
expressionId
.
sessionId
- The session id of the logged in userexpressionId
- The id of the AdminExpression object
KKAdminException
AdminExpression[] getExpressionsPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
promotionId
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
boolean evaluateExpression(java.lang.String sessionId, int customerId, int expressionId, java.lang.String expressionName) throws KKAdminException
customerId
. If the expressionName
parameter is not set to
null, then the Expression is searched for by name. Otherwise it is searched for by the id
contained in the expressionId
parameter.
sessionId
- The session id of the logged in usercustomerId
- The id of the customerexpressionId
- expressionName
-
KKAdminException
AdminDigitalDownloadSearchResult searchDigitalDownloads(java.lang.String sessionId, AdminDigitalDownloadSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- search definition for digital downloadsoffset
- offset in results (for paging)size
- maximum number of records to return from the offset (for paging)
KKAdminException
int importDigitalDownload(java.lang.String sessionId, AdminDigitalDownload digDownload) throws KKAdminException
customerId
and productId
) the record is updated.
Before inserting, the record is validated to ensure that the product referred to by the
productId
is indeed a Digital Download or Gift Certificate product.
sessionId
- The session id of the logged in userdigDownload
- the Digital Download object to import
KKAdminException
- if the digital download record specified is invalid or there are database
problemsAdminRewardPointSearchResult getRewardPoints(java.lang.String sessionId, AdminRewardPointSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- Object containing search constraints and sort order detailsoffset
- offset in results (for paging)size
- maximum number of records to return from the offset (for paging)
KKAdminException
int pointsAvailable(java.lang.String sessionId, int customerId) throws KKAdminException
customerId
parameter.
sessionId
- The session id of the logged in usercustomerId
- The id of the customer
KKAdminException
int deletePoints(java.lang.String sessionId, int customerId, int points, java.lang.String code, java.lang.String description) throws KKAdminException
customerId
parameter.
sessionId
- The session id of the logged in usercustomerId
- The id of the customerpoints
- The number of points to be deletedcode
- An optional code to categorize the reason for redeeming the pointsdescription
- An optional description describing how the points were redeemed
KKAdminException
int addPoints(java.lang.String sessionId, int customerId, int points, java.lang.String code, java.lang.String description) throws KKAdminException
customerId
parameter.
sessionId
- The session id of the logged in usercustomerId
- The id of the customerpoints
- The number of points to be addedcode
- An optional code to categorize the reason for awarding the pointsdescription
- An optional description describing why the points were awarded
KKAdminException
AdminFile[] getFiles(java.lang.String sessionId, java.lang.String directory, java.lang.String extension) throws KKAdminException
sessionId
- The session id of the logged in userdirectory
- The directory containing the filesextension
- The extension of the files. If null, all files are returned.
KKAdminException
AdminSearchRule[] getSearchRules() throws KKAdminException
KKAdminException
int deletePaymentSchedule(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session id of the logged in userid
- The id of the payment schedule object to delete
KKAdminException
AdminPaymentSchedule getPaymentSchedule(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the payment
schedule object doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the payment schedule object
KKAdminException
AdminPaymentScheduleSearchResult getPaymentSchedules(java.lang.String sessionId, AdminPaymentScheduleSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- The object containing the search constraintsoffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int insertPaymentSchedule(java.lang.String sessionId, AdminPaymentSchedule ps) throws KKAdminException
sessionId
- The session id of the logged in userps
-
KKAdminException
int updatePaymentSchedule(java.lang.String sessionId, AdminPaymentSchedule ps) throws KKAdminException
sessionId
- The session id of the logged in userps
- An AdminPaymentSchedule object
KKAdminException
int deleteSubscription(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session id of the logged in userid
- The id of the subscription object to delete
KKAdminException
AdminSubscription getSubscription(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
subscription object doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the subscription object
KKAdminException
AdminSubscriptionSearchResult getSubscriptions(java.lang.String sessionId, AdminSubscriptionSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- The object containing the search constraintsoffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int insertSubscription(java.lang.String sessionId, AdminSubscription subscription) throws KKAdminException
sessionId
- The session id of the logged in usersubscription
-
KKAdminException
int updateSubscription(java.lang.String sessionId, AdminSubscription subscription) throws KKAdminException
sessionId
- The session id of the logged in usersubscription
- An AdminSubscription object
KKAdminException
boolean checkDataIntegrity(java.lang.String sessionId, AdminDataIntegrityOptions dataIntegrityOptions) throws KKAdminException
sessionId
- The session id of the logged in userdataIntegrityOptions
- Defines the options to use for the data integrity check
KKAdminException
com.konakart.app.ExportOrderResponse exportOrder(java.lang.String sessionId, com.konakart.app.ExportOrderOptions options) throws KKAdminException
sessionId
- The session id of the logged in useroptions
- Defines the options to use for the export of the Order
KKAdminException
AdminKkMsgSearchResult searchMsg(AdminKkMsgSearch search, int groupSize, int offset) throws KKAdminException
search
- the AdminKkMsgSearch object that defines the search criteriagroupSize
- a maximum of this many messages will be returned by each call (the group size)offset
- the offset in the record set that match the criteria from which records are
returned
KKAdminException
java.lang.String getMsgValue(java.lang.String key, int type, java.lang.String locale) throws KKAdminException
key
- the message keytype
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.
KKAdminException
void deleteMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale) throws KKAdminException
sessionId
- The session id of the logged in userkey
- the message keytype
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.
KKAdminException
void insertMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale, java.lang.String value) throws KKAdminException
sessionId
- The session id of the logged in userkey
- the message keytype
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.value
- the value of the message to be inserted
KKAdminException
void updateMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale, java.lang.String value) throws KKAdminException
sessionId
- The session id of the logged in userkey
- the message keytype
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.value
- the new value for the message
KKAdminException
void importMsgs(java.lang.String sessionId, int type, java.lang.String locale, java.lang.String msgString, boolean replace) throws KKAdminException
sessionId
- The session id of the logged in usertype
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.msgString
- A String containing the messages to import in the format of a java properties filereplace
- if true all the current messages for the specified type and locale are removed
before importing the new messages. If false the new messages are appended and if a
message key already exists it is replaced by the new message value being imported.
KKAdminException
java.lang.String exportMsgs(int type, java.lang.String locale) throws KKAdminException
type
- the message type (Use KKConstants.MSG_TYP_APPLICATION for application messages,
KKConstants.MSG_TYP_ADMIN_APP for Admin App messages,
KKConstants.MSG_TYP_Admin_HELP for Admin App Help messages)locale
- the message locale (eg. "en_GB"). If this is null the default locale for the store
is used.
KKAdminException
void addAddressesToProduct(java.lang.String sessionId, AdminAddress[] addresses, int productId) throws KKAdminException
sessionId
- The session id of the logged in useraddresses
- The array of address to be addedproductId
- The numeric id of the product
KKAdminException
void removeAddressFromProduct(java.lang.String sessionId, int addressId, int productId) throws KKAdminException
sessionId
- The session id of the logged in useraddressId
- The numeric id of the addressproductId
- The numeric id of the product
KKAdminException
int getProductCountPerAddress(java.lang.String sessionId, int addressId) throws KKAdminException
sessionId
- The session id of the logged in useraddressId
- The numeric id of the address
KKAdminException
AdminManufacturerSearchResult getManufacturers(java.lang.String sessionId, AdminManufacturerSearch search, int offset, int size) throws KKAdminException
Constraints may be added for:
The returned objects may be ordered by:
sessionId
- The session id of the logged in usersearch
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offset
KKAdminException
int insertProdAttrDesc(java.lang.String sessionId, AdminProdAttrDesc attrDesc) throws KKAdminException
sessionId
- The session id of the logged in userattrDesc
- The AdminProdAttrDesc to insert
KKAdminException
int updateProdAttrDesc(java.lang.String sessionId, AdminProdAttrDesc attrDesc) throws KKAdminException
sessionId
- The session id of the logged in userattrDesc
- The AdminProdAttrDesc to update
KKAdminException
int deleteProdAttrDesc(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrDesc object to be deleted
KKAdminException
AdminProdAttrDesc getProdAttrDesc(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB.
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrDesc to be fetched
KKAdminException
AdminProdAttrDesc[] getProdAttrDescsForTemplate(java.lang.String sessionId, int templateId) throws KKAdminException
templateId
parameter.
An empty array is returned if no AdminProdAttrDesc objects exist.
sessionId
- The session id of the logged in usertemplateId
- The id of the template
KKAdminException
AdminProdAttrDescSearchResult getProdAttrDescs(java.lang.String sessionId, AdminProdAttrDescSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- An AdminProdAttrDescSearch containing search criteriaoffset
- The offset in the dbsize
- The number of records from the specified offset
KKAdminException
int insertProdAttrTemplate(java.lang.String sessionId, AdminProdAttrTemplate template) throws KKAdminException
sessionId
- The session id of the logged in usertemplate
- The AdminProdAttrTemplate object to be insterted
KKAdminException
int updateProdAttrTemplate(java.lang.String sessionId, AdminProdAttrTemplate template) throws KKAdminException
sessionId
- The session id of the logged in usertemplate
- An AdminProdAttrTemplate object
KKAdminException
int deleteProdAttrTemplate(java.lang.String sessionId, int id) throws KKAdminException
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrTemplate object to be deleted
KKAdminException
AdminProdAttrTemplate getProdAttrTemplate(java.lang.String sessionId, int id) throws KKAdminException
id
parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. If the Template contains an array of
ProdAttrDesc objects, these are also fetched from the DB.
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrTemplate object to be fetched
KKAdminException
AdminProdAttrTemplateSearchResult getProdAttrTemplates(java.lang.String sessionId, AdminProdAttrTemplateSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- An AdminProdAttrTemplateSearch containing search criteriaoffset
- The offset in the dbsize
- The number of records from the specified offset
KKAdminException
void addProdAttrDescsToTemplate(java.lang.String sessionId, AdminProdAttrDesc[] attrDescs, int templateId) throws KKAdminException
sessionId
- The session id of the logged in userattrDescs
- Array of AdminProdAttrDesc objectstemplateId
- Id of the AdminProdAttrTemplate
KKAdminException
void removeProdAttrDescsFromTemplate(java.lang.String sessionId, AdminProdAttrDesc[] attrDescs, int templateId) throws KKAdminException
attrDescs
is set
to null, all ProdAttrDesc objects are removed from the template.
sessionId
- The session id of the logged in userattrDescs
- Array of AdminProdAttrDesc objectstemplateId
- Id of the AdminProdAttrTemplate
KKAdminException
int getTemplateCountPerProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
int getProductCountPerProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
int updateProductsUsingProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
When a Product Attribute Descriptor is modified, all of the products using the descriptor are not updated automatically. In order to update them, this API call must be called, passing in the id of the Product Attribute Descriptor that has been modified.
Depending on the number of products, the API call may take some time to complete.
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
int updateProductsUsingTemplates(java.lang.String sessionId, int[] templateIds) throws KKAdminException
When a Product Attribute Template is modified, all of the products using the template are not updated automatically. In order to update them, this API call must be called, passing in the id(s) of the templates that have been modified.
Depending on the number of products, the API call may take some time to complete.
sessionId
- The session id of the logged in usertemplateIds
- An array of template ids
KKAdminException
int getProductCountPerTemplate(java.lang.String sessionId, int templateId) throws KKAdminException
sessionId
- The session id of the logged in usertemplateId
- The id of the AdminProdAttrTemplate object
KKAdminException
com.konakart.app.NameValue[] callPaymentModule(java.lang.String sessionId, java.lang.String moduleClassName, com.konakart.app.PaymentOptions options) throws KKAdminException
com.konakartadmin.modules.AdminPaymentIf
interface, is
instantiated and the execute
method is called.
sessionId
- The session id of the logged in usermoduleClassName
- The full class name such as
com.konakartadmin.modules.payment.authorizenet.AdminPayment
options
- An object containing all of the parameters required for the transaction
KKAdminException
AdminBookingSearchResult getBookings(java.lang.String sessionId, AdminBookingSearch search, int offset, int size, AdminBookableProductOptions options) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- AdminBookingSearch object that defines the searchoffset
- offsetsize
- maximum number of records to return from the offset positionoptions
- AdminBookableProduct options
KKAdminException
void deleteBooking(java.lang.String sessionId, int bookingId, AdminBookableProductOptions options) throws KKAdminException
sessionId
- The session id of the logged in userbookingId
- bookingId of the booking to deleteoptions
- AdminBookableProduct options
KKAdminException
int insertBooking(java.lang.String sessionId, AdminBooking booking, AdminBookableProductOptions options) throws KKAdminException
sessionId
- The session id of the logged in userbooking
- The booking to insertoptions
- AdminBookableProduct options
KKAdminException
void updateBooking(java.lang.String sessionId, AdminBooking booking, AdminBookableProductOptions options) throws KKAdminException
sessionId
- The session id of the logged in userbooking
- The booking to updateoptions
- AdminBookableProduct options
KKAdminException
void deleteCatalog(java.lang.String sessionId, int catalogId) throws KKAdminException
sessionId
- The session id of the logged in usercatalogId
- The numeric id of the catalog
KKAdminException
AdminCatalogSearchResult getCatalogs(java.lang.String sessionId, AdminCatalogSearch search, int offset, int size) throws KKAdminException
sessionId
- The session id of the logged in usersearch
- AdminCatalogSearch object that defines the searchoffset
- offsetsize
- maximum number of records to return from the offset position
KKAdminException
int insertCatalog(java.lang.String sessionId, AdminCatalog catalog) throws KKAdminException
sessionId
- The session id of the logged in usercatalog
- The AdminCatalog object to be inserted
KKAdminException
void updateCatalog(java.lang.String sessionId, AdminCatalog catalog) throws KKAdminException
sessionId
- The session id of the logged in usercatalog
- The AdminCatalog object to be updated
KKAdminException
AdminCatalog getCatalogById(java.lang.String sessionId, int catalogId) throws KKAdminException
sessionId
- The session id of the logged in usercatalogId
- The numeric id of the catalog
KKAdminException
int insertMiscItemType(java.lang.String sessionId, AdminMiscItemType[] miTypes) throws KKAdminException
sessionId
- The session id of the logged in usermiTypes
- An array of AdminMiscItemType objects to insert. Typically you would insert one
AdminMiscItemType record for each language to maintain data integrity.
KKAdminException
void updateMiscItemType(java.lang.String sessionId, AdminMiscItemType[] miTypes) throws KKAdminException
sessionId
- The session id of the logged in usermiTypes
- An array of AdminMiscItemType objects to update.
KKAdminException
void deleteMiscItemType(java.lang.String sessionId, int miTypeId, boolean deleteChildren) throws KKAdminException
sessionId
- The session id of the logged in usermiTypeId
- the id of the miscellaneous item type object to deletedeleteChildren
- if true all children (miscellaneous items with this miscellaneous item type) will
also be deleted.
KKAdminException
AdminMiscItemType[] getMiscItemTypes(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object. If you specify the LanguageId in the search
object, only the MiscItemType for that specified language will be returned. If you
specify AdminLanguage.ALL_LANGUAGES for the languageId the search will be made on
the default language, and if MiscItemTypes are found, MiscItemTypes with these
MiscItemTypeIds for all of the languages are returned.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
int insertMiscItems(java.lang.String sessionId, AdminMiscItem[] mItems) throws KKAdminException
sessionId
- The session id of the logged in usermItems
- An array of AdminMiscItem objects to insert.
KKAdminException
void updateMiscItems(java.lang.String sessionId, AdminMiscItem[] mItems) throws KKAdminException
sessionId
- The session id of the logged in usermItems
- An array of AdminMiscItem objects to update.
KKAdminException
void deleteMiscItem(java.lang.String sessionId, int miTypeId) throws KKAdminException
sessionId
- The session id of the logged in usermiTypeId
- the id of the miscellaneous item object to delete
KKAdminException
AdminMiscItemSearchResult getMiscItems(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
sessionId
- session Id of logged in Admin usersearch
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object.
AdminSearch criteria usage:
AdminSearch order by options:
offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned
KKAdminException
int copyProductToStore(java.lang.String sessionId, int productId, java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminCopyProductOptions options) throws KKAdminException
sessionId
- session Id of logged in Admin userproductId
- The numeric id of the product to copystoreIdFrom
- The id of the source storestoreIdTo
- The id of the destination storeoptions
- Options to configure the copy operation
KKAdminException
AdminProducts getProductsToSynchronize(java.lang.String sessionId, java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminDataDescriptor dataDesc, int languageId, AdminSynchProductsOptions options, AdminProductMgrOptions mgrOptions) throws KKAdminException
sessionId
- session Id of logged in Admin userstoreIdFrom
- The id of the source storestoreIdTo
- The id of the destination storedataDesc
- Used to control the data offset, limit the number of items returned and set the
sort order. May be null.languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languageoptions
- Defines the type of search and constraints.mgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId. May be null.
KKAdminException
AdminConfigData[] getConfigData(java.lang.String sessionId, java.lang.String key) throws KKAdminException
sessionId
- Session Id of the user.key
- Only return the AdminConfigData items with this key (if null all AdminConfigData
items are returned)
KKAdminException
java.lang.String getKonaKartAdminVersion() throws KKAdminException
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |