|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.KKAdminBase
com.konakartadmin.bl.KKAdmin
public class KKAdmin
This implements the server side of the KonaKart Admin Application. It contains an implementation of all of the methods defined in com.konakartadmin.appif.KKAdminIf
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KONAKARTADMIN_PROPERTIES_FILE_NAME
Default KonaKart Admin properties file name |
Fields inherited from class com.konakartadmin.bl.KKAdminBase |
---|
adminEng, allConfig, configFile, configFileURL, engConf, globalInit, kkCartInit, kkConfig, kkInstanceId, konakartAdminPropsFileName, konakartAdminPropsFilePath, log, log4jInit, logMgr, mgrFactory, mutex, torqueConfig, torqueInit |
Constructor Summary | |
---|---|
KKAdmin()
Deprecated. From version 2.2.7.0, you should use the constructor that receives an AdminEngineConfig object |
|
KKAdmin(AdminEngineConfig engConf)
Constructor with an EngineConfig object. |
|
KKAdmin(java.lang.String propertiesFileName)
Deprecated. From version 2.2.7.0, you should use the constructor that receives an AdminEngineConfig object |
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. |
protected void |
checkStoreStatus(int customerId)
Check that the store should continue to execute API functions. |
protected void |
checkStoreStatus(java.lang.String sessId)
Check that the store should continue to execute API functions. |
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 miId)
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 count)
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. |
protected AdminEngineConfig |
getDefaultAdminEngConfig()
|
AdminCurrency |
getDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY. |
AdminLanguage |
getDefaultLanguage()
Returns the default language. |
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 |
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. |
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[] configs)
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[] tagGroup)
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[] tag)
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. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.konakartadmin.appif.KKAdminIf |
---|
getEngConf, getKonakartAdminPropsFilePath |
Field Detail |
---|
public static final java.lang.String DEFAULT_KONAKARTADMIN_PROPERTIES_FILE_NAME
Constructor Detail |
---|
public KKAdmin(AdminEngineConfig engConf) throws KKAdminException
engConf
-
KKAdminException
@Deprecated public KKAdmin() throws KKAdminException
KKAdminException
@Deprecated public KKAdmin(java.lang.String propertiesFileName) throws KKAdminException
propertiesFileName
- name of the properties file that will be found on the classpath
KKAdminException
Method Detail |
---|
protected AdminEngineConfig getDefaultAdminEngConfig()
protected void checkStoreStatus(java.lang.String sessId) throws java.lang.Exception
sessId
- the sessionId of the user making the API call
java.lang.Exception
protected void checkStoreStatus(int customerId) throws KKAdminException
customerId
- the customerId of the user making the API call
KKAdminException
public AdminDBConnector testDB(AdminDBConnector connector) throws KKAdminException
KKAdminIf
testDB
in interface KKAdminIf
KKAdminException
public void logMsg(int level, java.lang.String message) throws KKAdminException
KKAdminIf
logMsg
in interface KKAdminIf
level
- the logging level (0=OFF,1=SEVERE,2=ERROR,4=WARNING,6=INFO,8=DEBUG)message
- the message to log
KKAdminException
public AdminLanguage getDefaultLanguage() throws KKAdminException
KKAdminIf
getDefaultLanguage
in interface KKAdminIf
KKAdminException
public AdminLanguage getLanguageByCode(java.lang.String code) throws KKAdminException
KKAdminIf
getLanguageByCode
in interface KKAdminIf
code
- the language code
KKAdminException
public AdminLanguage getLanguageById(int id) throws KKAdminException
KKAdminIf
getLanguageById
in interface KKAdminIf
id
- the language id
KKAdminException
public int getLanguageIdForLocale(java.lang.String locale) throws KKAdminException
KKAdminIf
getLanguageIdForLocale
in interface KKAdminIf
locale
- a 2 or 4 character locale (eg. en, de, es)
KKAdminException
public AdminLanguage getLanguageForLocale(java.lang.String locale) throws KKAdminException
KKAdminIf
getLanguageForLocale
in interface KKAdminIf
locale
- a 2 or 4 character locale (eg. en, de, es)
KKAdminException
public AdminLanguage[] getAllLanguages() throws KKAdminException
KKAdminIf
getAllLanguages
in interface KKAdminIf
KKAdminException
public AdminLanguageSearchResult getLanguages(AdminLanguageSearch search) throws KKAdminException
KKAdminIf
getLanguages
in interface KKAdminIf
search
- the search object that defines the search parameters and sort order
KKAdminException
public AdminAddressFormat[] getAllAddressFormats() throws KKAdminException
KKAdminIf
getAllAddressFormats
in interface KKAdminIf
KKAdminException
public AdminCurrency getDefaultCurrency() throws KKAdminException
KKAdminIf
getDefaultCurrency
in interface KKAdminIf
KKAdminException
public AdminCurrency getCurrency(java.lang.String currencyCode) throws KKAdminException
KKAdminIf
getCurrency
in interface KKAdminIf
currencyCode
- the currency Code to look up
KKAdminException
public AdminCurrencySearchResult getCurrencies(AdminCurrencySearch search) throws KKAdminException
KKAdminIf
getCurrencies
in interface KKAdminIf
search
- the search object that defines the search parameters and sort order
KKAdminException
public AdminOrderStatusNameSearchResult getOrderStatusNames(AdminOrderStatusNameSearch search) throws KKAdminException
KKAdminIf
AdminOrderStatusNameSearchResult
object.
getOrderStatusNames
in interface KKAdminIf
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
public AdminCustomerGroupSearchResult getCustomerGroups(AdminCustomerGroupSearch search) throws KKAdminException
KKAdminIf
getCustomerGroups
in interface KKAdminIf
search
- An AdminCustomerGroupSearch object containing the search criteria
KKAdminException
public AdminCountrySearchResult getCountries(AdminCountrySearch search, int offset, int count) throws KKAdminException
KKAdminIf
getCountries
in interface KKAdminIf
search
- an AdminCountrySearch objectoffset
- the offset in the databasecount
- the number of records from the specified offset
KKAdminException
public AdminOrderStatusName[] getAllOrderStatuses(int languageId) throws KKAdminException
KKAdminIf
getAllOrderStatuses
in interface KKAdminIf
KKAdminException
public AdminCountry[] getAllCountriesFull() throws KKAdminException
KKAdminIf
getAllCountriesFull
in interface KKAdminIf
KKAdminException
public AdminTaxClass[] getAllTaxClassesFull() throws KKAdminException
KKAdminIf
getAllTaxClassesFull
in interface KKAdminIf
KKAdminException
public AdminTaxRateSearchResult getTaxRates(AdminTaxRateSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getTaxRates
in interface KKAdminIf
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
public AdminTaxRateSearchResult getAllTaxRates() throws KKAdminException
KKAdminIf
getAllTaxRates
in interface KKAdminIf
KKAdminException
public AdminZoneSearchResult getZones(AdminZoneSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getZones
in interface KKAdminIf
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
public AdminTaxClassSearchResult getTaxClasses(AdminTaxClassSearch search) throws KKAdminException
KKAdminIf
getTaxClasses
in interface KKAdminIf
search
- the definition of the search - can be null
KKAdminException
public AdminAddressFormatSearchResult getAddressFormats(AdminAddressFormatSearch search) throws KKAdminException
KKAdminIf
getAddressFormats
in interface KKAdminIf
search
- the definition of the search - can be null
KKAdminException
public AdminZone[] getZonesById(int countryId) throws KKAdminException
KKAdminIf
getZonesById
in interface KKAdminIf
countryId
- the countryId
KKAdminException
public AdminGeoZone[] getAllGeoZones() throws KKAdminException
KKAdminIf
getAllGeoZones
in interface KKAdminIf
KKAdminException
public AdminGeoZoneSearchResult getGeoZones(AdminGeoZoneSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getGeoZones
in interface KKAdminIf
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
public AdminSubZoneSearchResult getSubZones(AdminSubZoneSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getSubZones
in interface KKAdminIf
search
- the definition of the search - can be nulloffset
- the offset in the databasesize
- the number of records from the specified offset
KKAdminException
public AdminCategory getCategory(int categoryId, boolean getChildren, int languageId) throws KKAdminException
KKAdminIf
getCategory
in interface KKAdminIf
categoryId
- The numeric id of the categorylanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
public AdminCategory[] getCategoryTree(int languageId, boolean getNumProducts) throws KKAdminException
KKAdminIf
getCategoryTree
in interface KKAdminIf
languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
public AdminCategory[] getTopLevelCategories(int languageId, AdminDataDescriptor dataDesc) throws KKAdminException
KKAdminIf
getTopLevelCategories
in interface KKAdminIf
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
public AdminManufacturer[] getAllManufacturers() throws KKAdminException
KKAdminIf
getAllManufacturers
in interface KKAdminIf
KKAdminException
public AdminManufacturer getManufacturer(int manufacturerId) throws KKAdminException
KKAdminIf
getManufacturer
in interface KKAdminIf
manufacturerId
- The numeric id of the manufacturer
KKAdminException
public AdminProductOption[] getAllProductOptions(int languageId) throws KKAdminException
KKAdminIf
getAllProductOptions
in interface KKAdminIf
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
public AdminProductOptionValue[] getProductOptionValuesPerOption(int productOptionId, int languageId) throws KKAdminException
KKAdminIf
getProductOptionValuesPerOption
in interface KKAdminIf
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
public AdminStore[] getStores() throws KKAdminException
KKAdminIf
getStores
in interface KKAdminIf
KKAdminException
public java.lang.String login(java.lang.String user, java.lang.String password) throws KKAdminException
KKAdminIf
login
in interface KKAdminIf
user
- Admin usernamepassword
- Admin password
KKAdminException
public void logout(java.lang.String sessionId) throws KKAdminException
KKAdminIf
logout
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public void setEndpoint(java.lang.String wsEndpoint) throws KKAdminException
KKAdminIf
The effect will be to set the web service endpoint for the proxy to the KonaKart engine.
setEndpoint
in interface KKAdminIf
wsEndpoint
- A String representing the web service endpoint
KKAdminException
public AdminMessageSet getMsgs(java.lang.String languageCode) throws KKAdminException
KKAdminIf
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.
getMsgs
in interface KKAdminIf
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
public java.lang.String getHelpMsg(java.lang.String msgKey, java.lang.String languageCode) throws KKAdminException
KKAdminIf
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.
getHelpMsg
in interface KKAdminIf
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
public AdminCustomValidatorSet getCustomValidatorSet() throws KKAdminException
KKAdminIf
getCustomValidatorSet
in interface KKAdminIf
KKAdminException
public AdminSearchRule[] getSearchRules() throws KKAdminException
KKAdminIf
getSearchRules
in interface KKAdminIf
KKAdminException
public int checkSession(java.lang.String sessionId) throws KKAdminException
KKAdminIf
checkSession
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
- Thrown if the session is invalidpublic boolean setConfigurationValue(java.lang.String sessionId, java.lang.String key, java.lang.String value) throws KKAdminException
KKAdminIf
setConfigurationValue
in interface KKAdminIf
sessionId
- The session Id of the logged in userkey
- key whose value will be setvalue
- value to set
KKAdminException
public int deleteCurrency(java.lang.String sessionId, int currId) throws KKAdminException
KKAdminIf
deleteCurrency
in interface KKAdminIf
sessionId
- The session Id of the logged in usercurrId
- A currency id
KKAdminException
public int insertCurrency(java.lang.String sessionId, AdminCurrency curr) throws KKAdminException
KKAdminIf
insertCurrency
in interface KKAdminIf
sessionId
- The session Id of the logged in usercurr
- A currency object
KKAdminException
public int updateCurrency(java.lang.String sessionId, AdminCurrency curr) throws KKAdminException
KKAdminIf
updateCurrency
in interface KKAdminIf
sessionId
- The session Id of the logged in usercurr
- A currency object
KKAdminException
public int deleteOrderStatusName(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteOrderStatusName
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- An OrderStatus id
KKAdminException
public int insertOrderStatusName(java.lang.String sessionId, AdminOrderStatusName obj) throws KKAdminException
KKAdminIf
insertOrderStatusName
in interface KKAdminIf
sessionId
- The session Id of the logged in userobj
- An OrderStatusName object
KKAdminException
public int insertOrderStatusNames(java.lang.String sessionId, AdminOrderStatusName[] ordStats) throws KKAdminException
KKAdminIf
insertOrderStatusNames
in interface KKAdminIf
sessionId
- The session Id of the logged in userordStats
- An AdminOrderStatusName array object
KKAdminException
public int updateOrderStatusName(java.lang.String sessionId, AdminOrderStatusName obj) throws KKAdminException
KKAdminIf
updateOrderStatusName
in interface KKAdminIf
sessionId
- The session Id of the logged in userobj
- An OrderStatusName object
KKAdminException
public int deleteCountry(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteCountry
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A Country id
KKAdminException
public int insertCountry(java.lang.String sessionId, AdminCountry country) throws KKAdminException
KKAdminIf
insertCountry
in interface KKAdminIf
sessionId
- The session Id of the logged in usercountry
- An AdminCountry object
KKAdminException
public int updateCountry(java.lang.String sessionId, AdminCountry country) throws KKAdminException
KKAdminIf
updateCountry
in interface KKAdminIf
sessionId
- The session Id of the logged in usercountry
- An AdminCountry object
KKAdminException
public int deleteLanguage(java.lang.String sessionId, int langId) throws KKAdminException
KKAdminIf
deleteLanguage
in interface KKAdminIf
sessionId
- The session Id of the logged in userlangId
- A Language id
KKAdminException
public int insertLanguage(java.lang.String sessionId, AdminLanguage lang) throws KKAdminException
KKAdminIf
insertLanguage
in interface KKAdminIf
sessionId
- The session Id of the logged in userlang
- A Language object
KKAdminException
public int insertCustomerGroup(java.lang.String sessionId, AdminCustomerGroup custGroup) throws KKAdminException
KKAdminIf
insertCustomerGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustGroup
- A Customer Group object
KKAdminException
public int insertCustomerGroups(java.lang.String sessionId, AdminCustomerGroup[] custGroups) throws KKAdminException
KKAdminIf
insertCustomerGroups
in interface KKAdminIf
custGroups
- An array of AdminCustomerGroup objects
KKAdminException
public int updateLanguage(java.lang.String sessionId, AdminLanguage lang) throws KKAdminException
KKAdminIf
updateLanguage
in interface KKAdminIf
sessionId
- The session Id of the logged in userlang
- A Language object
KKAdminException
public boolean sendEmail(java.lang.String sessionId, AdminEmail adminEmailData) throws KKAdminException
KKAdminIf
sendEmail
in interface KKAdminIf
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 sentpublic int getOrdersCount(java.lang.String sessionId, int orderStatus) throws KKAdminException
KKAdminIf
getOrdersCount
in interface KKAdminIf
sessionId
- The session Id of the logged in userorderStatus
- the order status Id
KKAdminException
public AdminOrderSearchResult getOrdersLite(java.lang.String sessionId, AdminOrderSearch search, int offset, int size, int languageId) throws KKAdminException
KKAdminIf
The orders returned are sparsely-populated with:
The returned orders may be sorted by:
getOrdersLite
in interface KKAdminIf
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
public AdminOrderSearchResult getOrders(java.lang.String sessionId, AdminOrderSearch search, int offset, int size, int languageId) throws KKAdminException
KKAdminIf
The returned orders may be sorted by:
getOrders
in interface KKAdminIf
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
public AdminOrder getOrderForOrderId(java.lang.String sessionId, int orderId) throws KKAdminException
KKAdminIf
getOrderForOrderId
in interface KKAdminIf
sessionId
- The session id of the logged in userorderId
- The numeric id of the AdminOrder object
KKAdminException
public AdminOrder getOrderForOrderIdAndLangId(java.lang.String sessionId, int orderId, int languageId) throws KKAdminException
KKAdminIf
getOrderForOrderIdAndLangId
in interface KKAdminIf
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
@Deprecated public AdminOrder[] getOrdersCreatedSince(java.lang.String sessionId, java.util.Calendar since, int languageId) throws KKAdminException
KKAdminIf
getOrdersCreatedSince
in interface KKAdminIf
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
public void updateOrder(java.lang.String sessionId, int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer, AdminOrderUpdate updateOrder) throws KKAdminException
KKAdminIf
updateOrder
in interface KKAdminIf
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 public void updateOrderStatus(java.lang.String sessionId, int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer) throws KKAdminException
KKAdminIf
updateOrderStatus
in interface KKAdminIf
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
public java.lang.String getHtml(java.lang.String sessionId, int htmlType, int id, int languageId, java.lang.String arg1) throws KKAdminException
KKAdminIf
"HTML types" can be one of:
getHtml
in interface KKAdminIf
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
public com.konakart.app.PdfResult getPdf(java.lang.String sessionId, com.konakart.app.PdfOptions options) throws KKAdminException
KKAdminIf
getPdf
in interface KKAdminIf
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
public int getCustomersCount(java.lang.String sessionId, AdminCustomerSearch search) throws KKAdminException
KKAdminIf
getCustomersCount
in interface KKAdminIf
sessionId
- The session Id of the logged in usersearch
- the definition of the search for customers - can be null
KKAdminException
public int getCustomersCountWhoHaventPlacedAnOrderSince(java.lang.String sessionId, java.util.Calendar lastOrderDate) throws KKAdminException
KKAdminIf
getCustomersCountWhoHaventPlacedAnOrderSince
in interface KKAdminIf
sessionId
- The session id of the logged in userlastOrderDate
- The date when the last order was placed
KKAdminException
public int getCustomersCountWhoHavePlacedAnOrderSince(java.lang.String sessionId, java.util.Calendar lastOrderDate) throws KKAdminException
KKAdminIf
getCustomersCountWhoHavePlacedAnOrderSince
in interface KKAdminIf
sessionId
- The session id of the logged in userlastOrderDate
- The date when the last order was placed
KKAdminException
public void updateCustomer(java.lang.String sessionId, AdminCustomer customer) throws KKAdminException
KKAdminIf
updateCustomer
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustomer
- A customer
KKAdminException
public int updateCustomerGroup(java.lang.String sessionId, AdminCustomerGroup custGroup) throws KKAdminException
KKAdminIf
updateCustomerGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustGroup
- A customer group object
KKAdminException
public int deleteCustomer(java.lang.String sessionId, int custId) throws KKAdminException
KKAdminIf
deleteCustomer
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustId
- A customer id
KKAdminException
public int deleteCustomerGroup(java.lang.String sessionId, int custGroupId) throws KKAdminException
KKAdminIf
deleteCustomerGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustGroupId
- The id of a customer group object
KKAdminException
public int deleteOrder(java.lang.String sessionId, int ordId) throws KKAdminException
KKAdminIf
deleteOrder
in interface KKAdminIf
sessionId
- The session Id of the logged in userordId
- Order id of the order to delete
KKAdminException
public AdminCustomerSearchResult getCustomers(java.lang.String sessionId, AdminCustomerSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getCustomers
in interface KKAdminIf
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
public AdminCustomerSearchResult getCustomersLite(java.lang.String sessionId, AdminCustomerSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getCustomersLite
in interface KKAdminIf
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
public AdminCustomer getCustomerForId(java.lang.String sessionId, int customerId) throws KKAdminException
KKAdminIf
getCustomerForId
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustomerId
- The numeric id of the customer
KKAdminException
public AdminProductNotification[] getProductNotificationsForCustomer(java.lang.String sessionId, int customerId) throws KKAdminException
KKAdminIf
getProductNotificationsForCustomer
in interface KKAdminIf
sessionId
- session IdcustomerId
- Id of the customer whose product notifications will be returned
KKAdminException
public int deleteTaxRate(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteTaxRate
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A TaxRate id
KKAdminException
public int insertTaxRate(java.lang.String sessionId, AdminTaxRate insertObj) throws KKAdminException
KKAdminIf
insertTaxRate
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminTaxRate object
KKAdminException
public int updateTaxRate(java.lang.String sessionId, AdminTaxRate updateObj) throws KKAdminException
KKAdminIf
updateTaxRate
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminTaxRate object
KKAdminException
public int deleteZone(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A Zone id
KKAdminException
public int insertZone(java.lang.String sessionId, AdminZone insertObj) throws KKAdminException
KKAdminIf
insertZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminZone object
KKAdminException
public int updateZone(java.lang.String sessionId, AdminZone updateObj) throws KKAdminException
KKAdminIf
updateZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminZone object
KKAdminException
public int deleteTaxClass(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteTaxClass
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A TaxClass id
KKAdminException
public int insertTaxClass(java.lang.String sessionId, AdminTaxClass insertObj) throws KKAdminException
KKAdminIf
insertTaxClass
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminTaxClass object
KKAdminException
public int updateTaxClass(java.lang.String sessionId, AdminTaxClass updateObj) throws KKAdminException
KKAdminIf
updateTaxClass
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminTaxClass object
KKAdminException
public int deleteAddressFormat(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteAddressFormat
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A AddressFormat id
KKAdminException
public int insertAddressFormat(java.lang.String sessionId, AdminAddressFormat insertObj) throws KKAdminException
KKAdminIf
insertAddressFormat
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminAddressFormat object
KKAdminException
public int updateAddressFormat(java.lang.String sessionId, AdminAddressFormat updateObj) throws KKAdminException
KKAdminIf
updateAddressFormat
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminAddressFormat object
KKAdminException
public int deleteGeoZone(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteGeoZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A GeoZone id
KKAdminException
public int insertGeoZone(java.lang.String sessionId, AdminGeoZone insertObj) throws KKAdminException
KKAdminIf
insertGeoZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminGeoZone object
KKAdminException
public int updateGeoZone(java.lang.String sessionId, AdminGeoZone updateObj) throws KKAdminException
KKAdminIf
updateGeoZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminGeoZone object
KKAdminException
public int deleteSubZone(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteSubZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userid
- A SubZone id
KKAdminException
public int insertSubZone(java.lang.String sessionId, AdminSubZone insertObj) throws KKAdminException
KKAdminIf
insertSubZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userinsertObj
- An AdminSubZone object
KKAdminException
public int updateSubZone(java.lang.String sessionId, AdminSubZone updateObj) throws KKAdminException
KKAdminIf
updateSubZone
in interface KKAdminIf
sessionId
- The session Id of the logged in userupdateObj
- An AdminSubZone object
KKAdminException
public java.lang.String[] getConfigurationInfo(java.lang.String sessionId, java.lang.String[] validationKeys) throws KKAdminException
KKAdminIf
getConfigurationInfo
in interface KKAdminIf
sessionId
- The session Id of the logged in uservalidationKeys
- an array of configuration keys
KKAdminException
public KKConfiguration[] getAllConfigurations(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getAllConfigurations
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public AdminConfigurationGroup[] getAllConfigurationGroups(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getAllConfigurationGroups
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public void updateConfiguration(java.lang.String sessionId, KKConfiguration newConf) throws KKAdminException
KKAdminIf
updateConfiguration
in interface KKAdminIf
sessionId
- The session Id of the logged in usernewConf
- the KKConfiguration to update
KKAdminException
public void updateConfigurationGroup(java.lang.String sessionId, AdminConfigurationGroup newConf) throws KKAdminException
KKAdminIf
updateConfigurationGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in usernewConf
- the AdminConfigurationGroup to update
KKAdminException
public AdminConfigurationGroup[] getConfigurationGroupsByTitle(java.lang.String sessionId, java.lang.String title) throws KKAdminException
KKAdminIf
getConfigurationGroupsByTitle
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public KKConfiguration getConfigurationByKey(java.lang.String sessionId, java.lang.String key) throws KKAdminException
KKAdminIf
getConfigurationByKey
in interface KKAdminIf
sessionId
- The session Id of the logged in userkey
- the Configuration key to search for
KKAdminException
public KKConfiguration[] getConfigurationsByGroup(java.lang.String sessionId, int configGroup) throws KKAdminException
KKAdminIf
getConfigurationsByGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfigGroup
- the Configuration Group Id
KKAdminException
public void saveConfigs(java.lang.String sessionId, KKConfiguration[] configs, KKConfiguration[] origConfigs) throws KKAdminException
KKAdminIf
saveConfigs
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfigs
- Configuration array to saveorigConfigs
- Original Configuration array to compare against
KKAdminException
public void insertConfigs(java.lang.String sessionId, KKConfiguration[] configs) throws KKAdminException
KKAdminIf
insertConfigs
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfigs
- an array of KKConfiguration objects to insert
KKAdminException
public void removeConfigs(java.lang.String sessionId, java.lang.String[] configKeys) throws KKAdminException
KKAdminIf
removeConfigs
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfigKeys
- an array of configuration key Strings to remove
KKAdminException
public AdminConfigData[] getConfigData(java.lang.String sessionId, java.lang.String key) throws KKAdminException
KKAdminIf
getConfigData
in interface KKAdminIf
sessionId
- Session Id of the user.key
- Only return the AdminConfigData items with this key (if null all AdminConfigData
items are returned)
KKAdminException
public KKModule[] getModules(java.lang.String sessionId, int moduleType) throws KKAdminException
KKAdminIf
Valid types are:
getModules
in interface KKAdminIf
sessionId
- The session Id of the logged in usermoduleType
- the Configuration Group Id
KKAdminException
public int registerCustomer(java.lang.String sessionId, AdminCustomerRegistration custReg) throws KKAdminException
KKAdminIf
registerCustomer
in interface KKAdminIf
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
addresspublic int forceRegisterCustomer(java.lang.String sessionId, AdminCustomerRegistration custReg) throws KKAdminException
KKAdminIf
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.
forceRegisterCustomer
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustReg
- Customer Registration details
KKAdminException
- if a registered customer already exists with the same eMail addresspublic void resetCustomerPassword(java.lang.String sessionId, int custId) throws KKAdminException
KKAdminIf
resetCustomerPassword
in interface KKAdminIf
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.public void resetCustomerPasswordSpecifyingEmail(java.lang.String sessionId, int custId, java.lang.String eMailAddress) throws KKAdminException
KKAdminIf
This API call should only be used when the emailAddress attribute of the AdminCustomer doesn't specify where the eMail should be sent.
resetCustomerPasswordSpecifyingEmail
in interface KKAdminIf
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.public void setCustomerPassword(java.lang.String sessionId, int custId, java.lang.String newPassword) throws KKAdminException
KKAdminIf
setCustomerPassword
in interface KKAdminIf
sessionId
- The session Id of the logged in usercustId
- Customer IdnewPassword
- New password (as entered by the user)
KKAdminException
public void changePassword(java.lang.String sessionId, java.lang.String currentPassword, java.lang.String newPassword) throws KKAdminException
KKAdminIf
changePassword
in interface KKAdminIf
sessionId
- The session Id of the logged in usercurrentPassword
- current PasswordnewPassword
- new Password
KKAdminException
- if the current password doesn't matchpublic int insertProduct(java.lang.String sessionId, AdminProduct product) throws KKAdminException
KKAdminIf
insertProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproduct
- An AdminProduct object
KKAdminException
public int insertProductWithOptions(java.lang.String sessionId, AdminProduct product, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
insertProductWithOptions
in interface KKAdminIf
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
public void editProduct(java.lang.String sessionId, AdminProduct product) throws KKAdminException
KKAdminIf
editProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproduct
- AdminProduct object
KKAdminException
public void editProductWithOptions(java.lang.String sessionId, AdminProduct product, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
editProductWithOptions
in interface KKAdminIf
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
public boolean doesProductExist(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
doesProductExist
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductId
- The id of the product
KKAdminException
public AdminProduct getProduct(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
getProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
public AdminProduct getProductWithOptions(java.lang.String sessionId, int productId, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
getProductWithOptions
in interface KKAdminIf
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
public AdminProducts searchForProducts(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId) throws KKAdminException
KKAdminIf
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 :
searchForProducts
in interface KKAdminIf
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
public AdminProducts searchForProductsWithOptions(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
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.
searchForProductsWithOptions
in interface KKAdminIf
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
public void deleteProduct(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
deleteProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
public void deleteCategoryTree(java.lang.String sessionId, int categoryId, int options) throws KKAdminException
KKAdminIf
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.
deleteCategoryTree
in interface KKAdminIf
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
public void deleteSingleCategory(java.lang.String sessionId, int categoryId) throws KKAdminException
KKAdminIf
deleteSingleCategory
in interface KKAdminIf
sessionId
- The session Id of the logged in usercategoryId
- The numeric id of the category
KKAdminException
public void editCategory(java.lang.String sessionId, AdminCategory cat) throws KKAdminException
KKAdminIf
editCategory
in interface KKAdminIf
sessionId
- The session Id of the logged in usercat
- An AdminCategory object
KKAdminException
public int insertCategory(java.lang.String sessionId, AdminCategory cat) throws KKAdminException
KKAdminIf
insertCategory
in interface KKAdminIf
sessionId
- The session Id of the logged in usercat
- An AdminCategory object
KKAdminException
public void moveCategory(java.lang.String sessionId, int categoryId, int newParentId) throws KKAdminException
KKAdminIf
moveCategory
in interface KKAdminIf
sessionId
- The session Id of the logged in usercategoryId
- The numeric id of the category
KKAdminException
public void deleteManufacturer(java.lang.String sessionId, int manufacturerId, boolean deleteProducts) throws KKAdminException
KKAdminIf
deleteManufacturer
in interface KKAdminIf
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
public void editManufacturer(java.lang.String sessionId, AdminManufacturer manu) throws KKAdminException
KKAdminIf
manu
parameter.
editManufacturer
in interface KKAdminIf
sessionId
- The session Id of the logged in usermanu
- AdminManufacturer object
KKAdminException
public int insertManufacturer(java.lang.String sessionId, AdminManufacturer manu) throws KKAdminException
KKAdminIf
insertManufacturer
in interface KKAdminIf
sessionId
- The session Id of the logged in usermanu
- An AdminManufacturer object
KKAdminException
public void deleteReview(java.lang.String sessionId, int reviewId) throws KKAdminException
KKAdminIf
deleteReview
in interface KKAdminIf
sessionId
- The session Id of the logged in userreviewId
- NUmeric id of the review
KKAdminException
public void editReview(java.lang.String sessionId, AdminReview review) throws KKAdminException
KKAdminIf
editReview
in interface KKAdminIf
sessionId
- The session Id of the logged in userreview
- AdminReview object
KKAdminException
public AdminReviews getAllReviews(java.lang.String sessionId, AdminDataDescriptor dataDesc) throws KKAdminException
KKAdminIf
getAllReviews
in interface KKAdminIf
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
public AdminReview getReview(java.lang.String sessionId, int reviewId) throws KKAdminException
KKAdminIf
getReview
in interface KKAdminIf
sessionId
- The session Id of the logged in userreviewId
- The numeric id of the AdminReview object
KKAdminException
public AdminReviews getReviewsPerProduct(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId) throws KKAdminException
KKAdminIf
getReviewsPerProduct
in interface KKAdminIf
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
public AdminReviews getReviews(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminReviewSearch revSearch) throws KKAdminException
KKAdminIf
getReviews
in interface KKAdminIf
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
public int insertReview(java.lang.String sessionId, AdminReview review) throws KKAdminException
KKAdminIf
insertReview
in interface KKAdminIf
sessionId
- The session Id of the logged in userreview
- The AdminReview object
KKAdminException
public int insertSpecial(java.lang.String sessionId, AdminSpecial special) throws KKAdminException
KKAdminIf
insertSpecial
in interface KKAdminIf
sessionId
- The session Id of the logged in userspecial
- The AdminSpecial object
KKAdminException
public AdminSpecial getSpecial(java.lang.String sessionId, int specialId) throws KKAdminException
KKAdminIf
getSpecial
in interface KKAdminIf
sessionId
- The session Id of the logged in userspecialId
- The numeric id of the AdminSpecial object
KKAdminException
public void deleteSpecial(java.lang.String sessionId, int specialId) throws KKAdminException
KKAdminIf
deleteSpecial
in interface KKAdminIf
sessionId
- The session Id of the logged in userspecialId
- The numeric id of the special
KKAdminException
public void editSpecial(java.lang.String sessionId, AdminSpecial special) throws KKAdminException
KKAdminIf
editSpecial
in interface KKAdminIf
sessionId
- The session Id of the logged in userspecial
- AdminSpecial object
KKAdminException
public AdminProducts getAllSpecials(java.lang.String sessionId, AdminDataDescriptor dataDesc, int languageId) throws KKAdminException
KKAdminIf
The Specials may be sorted by :
getAllSpecials
in interface KKAdminIf
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
public AdminProducts getSpecialsPerCategory(java.lang.String sessionId, AdminDataDescriptor dataDesc, int categoryId, boolean searchInSubCats, int languageId) throws KKAdminException
KKAdminIf
The Specials may be sorted by :
getSpecialsPerCategory
in interface KKAdminIf
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
public void deleteProductOptions(java.lang.String sessionId, int productOptionId) throws KKAdminException
KKAdminIf
deleteProductOptions
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptionId
- The numeric id of the productOption
KKAdminException
public void deleteProductOptionValues(java.lang.String sessionId, int productOptionValueId) throws KKAdminException
KKAdminIf
deleteProductOptionValues
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptionValueId
- The numeric id of the productOptionValue
KKAdminException
public AdminProductOption[] getProductOptionsPerId(java.lang.String sessionId, int productOptionId) throws KKAdminException
KKAdminIf
getProductOptionsPerId
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptionId
- The numeric id of the AdminProductOption
KKAdminException
public AdminProductOption[] getProductOptionsPerName(java.lang.String sessionId, java.lang.String name, int langId) throws KKAdminException
KKAdminIf
getProductOptionsPerName
in interface KKAdminIf
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
public AdminProductOptionValue[] getAllProductOptionValues(java.lang.String sessionId, int languageId) throws KKAdminException
KKAdminIf
getAllProductOptionValues
in interface KKAdminIf
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
public AdminProductOptionValue[] getProductOptionValuesPerId(java.lang.String sessionId, int productOptionValueId) throws KKAdminException
KKAdminIf
getProductOptionValuesPerId
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public AdminProductOptionValue[] getProductOptionValuesPerName(java.lang.String sessionId, java.lang.String name, int languageId) throws KKAdminException
KKAdminIf
getProductOptionValuesPerName
in interface KKAdminIf
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
public AdminProdOptionValToProdOption[] getProductOptionValueToProductOptions(java.lang.String sessionId, AdminProdOptionValToProdOption prodOptValToProdOpt) throws KKAdminException
KKAdminIf
getProductOptionValueToProductOptions
in interface KKAdminIf
sessionId
- The session Id of the logged in userprodOptValToProdOpt
- the AdminProdOptionValToProdOption to look up. Only uses the optionId and
OptionValueId in this object
KKAdminException
public void insertProductOption(java.lang.String sessionId, AdminProductOption productOption) throws KKAdminException
KKAdminIf
insertProductOption
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOption
- An AdminProductOption object
KKAdminException
public void editProductOption(java.lang.String sessionId, AdminProductOption productOption) throws KKAdminException
KKAdminIf
editProductOption
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOption
- AdminProductOption object
KKAdminException
public int insertProductsOptionsValuesToProductsOptions(java.lang.String sessionId, AdminProdOptionValToProdOption prodOptValToProdOpt) throws KKAdminException
KKAdminIf
insertProductsOptionsValuesToProductsOptions
in interface KKAdminIf
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
public void insertProductOptionValue(java.lang.String sessionId, AdminProductOptionValue productOptionValue, int productOptionId) throws KKAdminException
KKAdminIf
insertProductOptionValue
in interface KKAdminIf
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
public void editProductOptionValue(java.lang.String sessionId, AdminProductOptionValue productOptionValue) throws KKAdminException
KKAdminIf
editProductOptionValue
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptionValue
- AdminProductOptionValue object
KKAdminException
public int getNextProductOptionId(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getNextProductOptionId
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public int getNextProductOptionValuesId(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getNextProductOptionValuesId
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public AdminProductAttribute[] getProductAttributesPerProduct(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
getProductAttributesPerProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
public void deleteProductAttribute(java.lang.String sessionId, int productAttributeId) throws KKAdminException
KKAdminIf
deleteProductAttribute
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductAttributeId
- The numeric id of the product attribute
KKAdminException
public void deleteProductAttributesPerProduct(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
deleteProductAttributesPerProduct
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductId
- The numeric id of the product
KKAdminException
public void editProductAttribute(java.lang.String sessionId, AdminProductAttribute prodAttr) throws KKAdminException
KKAdminIf
editProductAttribute
in interface KKAdminIf
sessionId
- The session Id of the logged in userprodAttr
- AdminProductAttribute object
KKAdminException
public int insertProductAttribute(java.lang.String sessionId, AdminProductAttribute prodAttr) throws KKAdminException
KKAdminIf
insertProductAttribute
in interface KKAdminIf
sessionId
- The session Id of the logged in userprodAttr
- An AdminProductAttribute object
KKAdminException
public int insertProductOptionValues(java.lang.String sessionId, AdminProductOptionValue[] productOptionValues, int productOptionId) throws KKAdminException
KKAdminIf
insertProductOptionValues
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptionValues
- An array of AdminProductOptionValue objectsproductOptionId
- The numeric id of the AdminProductOption object
KKAdminException
public int insertProductOptions(java.lang.String sessionId, AdminProductOption[] productOptions) throws KKAdminException
KKAdminIf
insertProductOptions
in interface KKAdminIf
sessionId
- The session Id of the logged in userproductOptions
- An array of AdminProductOption objects
KKAdminException
public AdminIpnHistories searchForIpnHistory(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminIpnSearch ipnSearch) throws KKAdminException
KKAdminIf
searchForIpnHistory
in interface KKAdminIf
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
public int insertIpnHistory(java.lang.String sessionId, AdminIpnHistory ipnHistory) throws KKAdminException
KKAdminIf
insertIpnHistory
in interface KKAdminIf
sessionId
- The session Id of the logged in useripnHistory
- the AdminIpnHistory record to insert into the database
KKAdminException
public int deleteExpiredSessions(java.lang.String sessionId) throws KKAdminException
KKAdminIf
deleteExpiredSessions
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public AdminFile[] getConfigFiles(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getConfigFiles
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public AdminReport[] getReports(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getReports
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public void reloadReports(java.lang.String sessionId) throws KKAdminException
KKAdminIf
reloadReports
in interface KKAdminIf
sessionId
- The session Id of the logged in user
KKAdminException
public java.lang.String getFileContents(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
KKAdminIf
getFileContents
in interface KKAdminIf
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 filepublic byte[] getFileContentsAsByteArray(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
KKAdminIf
getFileContentsAsByteArray
in interface KKAdminIf
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 readpublic void saveFileContents(java.lang.String sessionId, java.lang.String fileName, java.lang.String fileContents) throws KKAdminException
KKAdminIf
saveFileContents
in interface KKAdminIf
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.public boolean deleteFile(java.lang.String sessionId, java.lang.String fileName) throws KKAdminException
KKAdminIf
deleteFile
in interface KKAdminIf
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 deletedpublic void addCategoriesToPromotion(java.lang.String sessionId, AdminCategory[] categories, int promotionId, int rule) throws KKAdminException
KKAdminIf
addCategoriesToPromotion
in interface KKAdminIf
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
public void addCouponsToPromotion(java.lang.String sessionId, AdminCoupon[] coupons, int promotionId) throws KKAdminException
KKAdminIf
addCouponsToPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usercoupons
- An array of AdminCoupon objectspromotionId
- The numeric id of the promotion
KKAdminException
public void addPromotionsToCoupon(java.lang.String sessionId, AdminPromotion[] promotions, int couponId) throws KKAdminException
KKAdminIf
addPromotionsToCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotions
- An array of AdminPromotion objectscouponId
- The numeric id of the coupon
KKAdminException
public void addCustomersToPromotion(java.lang.String sessionId, AdminCustomer[] customers, int promotionId, int rule, int maxUse) throws KKAdminException
KKAdminIf
addCustomersToPromotion
in interface KKAdminIf
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
public void addCustomerGroupsToPromotion(java.lang.String sessionId, int[] groupIds, int promotionId, int rule) throws KKAdminException
KKAdminIf
addCustomerGroupsToPromotion
in interface KKAdminIf
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
public void addCustomersToPromotionPerOrdersMade(java.lang.String sessionId, java.util.Calendar lastOrderDate, boolean havePlacedOrder, int promotionId, int rule, int maxUse) throws KKAdminException
KKAdminIf
addCustomersToPromotionPerOrdersMade
in interface KKAdminIf
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
public void addManufacturersToPromotion(java.lang.String sessionId, AdminManufacturer[] manufacturers, int promotionId, int rule) throws KKAdminException
KKAdminIf
addManufacturersToPromotion
in interface KKAdminIf
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
public void addExpressionsToPromotion(java.lang.String sessionId, AdminExpression[] expressions, int promotionId) throws KKAdminException
KKAdminIf
addExpressionsToPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userexpressions
- An array of AdminExpression objectspromotionId
- The numeric id of the promotion
KKAdminException
public void addProductsToPromotion(java.lang.String sessionId, AdminProduct[] products, int promotionId, int rule) throws KKAdminException
KKAdminIf
addProductsToPromotion
in interface KKAdminIf
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
public void addGiftCertificatesToPromotion(java.lang.String sessionId, AdminProduct[] giftCertificates, int promotionId) throws KKAdminException
KKAdminIf
addGiftCertificatesToPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usergiftCertificates
- An array of AdminProduct gift certificate objectspromotionId
- The numeric id of the promotion
KKAdminException
public void deletePromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
KKAdminIf
deletePromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
public void deleteCoupon(java.lang.String sessionId, int couponId) throws KKAdminException
KKAdminIf
deleteCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in usercouponId
- The numeric id of the coupon
KKAdminException
public void editCoupon(java.lang.String sessionId, AdminCoupon coupon) throws KKAdminException
KKAdminIf
editCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in usercoupon
- An Admin coupon object
KKAdminException
public void editPromotion(java.lang.String sessionId, AdminPromotion promotion) throws KKAdminException
KKAdminIf
editPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotion
- AdminPromotion object
KKAdminException
public AdminCoupon[] getCouponsPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
KKAdminIf
getCouponsPerPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
public AdminCouponSearchResult getCoupons(java.lang.String sessionId, AdminCouponSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getCoupons
in interface KKAdminIf
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
public AdminCategory[] getCategoriesPerPromotion(java.lang.String sessionId, int promotionId, int languageId) throws KKAdminException
KKAdminIf
getCategoriesPerPromotion
in interface KKAdminIf
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
public AdminCustomerGroup[] getCustomerGroupsPerPromotion(java.lang.String sessionId, int promotionId, int languageId) throws KKAdminException
KKAdminIf
getCustomerGroupsPerPromotion
in interface KKAdminIf
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
public AdminManufacturer[] getManufacturersPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
KKAdminIf
getManufacturersPerPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
public AdminProducts getProductsPerPromotion(java.lang.String sessionId, AdminProductSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getProductsPerPromotion
in interface KKAdminIf
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
public AdminProducts getGiftCertificatesPerPromotion(java.lang.String sessionId, AdminProductSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getGiftCertificatesPerPromotion
in interface KKAdminIf
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
public AdminPromotion getPromotion(java.lang.String sessionId, int id, boolean includeCoupons, boolean includeStats) throws KKAdminException
KKAdminIf
getPromotion
in interface KKAdminIf
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
public AdminPromotionSearchResult getPromotions(java.lang.String sessionId, AdminPromotionSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getPromotions
in interface KKAdminIf
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
public int getPromotionsCount(java.lang.String sessionId, AdminPromotionSearch search) throws KKAdminException
KKAdminIf
getPromotionsCount
in interface KKAdminIf
sessionId
- The session id of the logged in usersearch
- the search object that defines the search parameters and sort order
KKAdminException
public AdminPromotion[] getPromotionsPerCoupon(java.lang.String sessionId, int couponId) throws KKAdminException
KKAdminIf
getPromotionsPerCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in usercouponId
- The numeric id of the coupon
KKAdminException
public int insertCouponForPromotion(java.lang.String sessionId, AdminCoupon coupon, int promotionId) throws KKAdminException
KKAdminIf
insertCouponForPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usercoupon
- An AdminCoupon objectpromotionId
- The numeric id of the promotion
KKAdminException
public int insertCoupon(java.lang.String sessionId, AdminCoupon coupon) throws KKAdminException
KKAdminIf
insertCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in usercoupon
- An AdminCoupon object
KKAdminException
public int insertPromotion(java.lang.String sessionId, AdminPromotion prom) throws KKAdminException
KKAdminIf
insertPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userprom
- The AdminPromotion object
KKAdminException
public void removeCategoriesFromPromotion(java.lang.String sessionId, AdminCategory[] categories, int promotionId) throws KKAdminException
KKAdminIf
removeCategoriesFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usercategories
- An array of AdminCategory objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removeCouponsFromPromotion(java.lang.String sessionId, AdminCoupon[] coupons, int promotionId) throws KKAdminException
KKAdminIf
removeCouponsFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usercoupons
- An array of AdminCoupon objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removePromotionsFromCoupon(java.lang.String sessionId, AdminPromotion[] promotions, int couponId) throws KKAdminException
KKAdminIf
removePromotionsFromCoupon
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotions
- An array of AdminPromotion objectscouponId
- The numeric id of the coupon
KKAdminException
public void removeCustomersFromPromotion(java.lang.String sessionId, AdminCustomer[] customers, int promotionId) throws KKAdminException
KKAdminIf
removeCustomersFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomers
- An array of AdminCustomer objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removeCustomerGroupsFromPromotion(java.lang.String sessionId, int[] groupIds, int promotionId) throws KKAdminException
KKAdminIf
removeCustomerGroupsFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usergroupIds
- An array of customer group idspromotionId
- The numeric id of the promotion
KKAdminException
public void removeManufacturersFromPromotion(java.lang.String sessionId, AdminManufacturer[] manufacturers, int promotionId) throws KKAdminException
KKAdminIf
removeManufacturersFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usermanufacturers
- An array of AdminManufacturer objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removeExpressionsFromPromotion(java.lang.String sessionId, AdminExpression[] expressions, int promotionId) throws KKAdminException
KKAdminIf
removeExpressionsFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userexpressions
- An array of AdminExpression objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removeProductsFromPromotion(java.lang.String sessionId, AdminProduct[] products, int promotionId) throws KKAdminException
KKAdminIf
removeProductsFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userproducts
- An array of AdminProduct objectspromotionId
- The numeric id of the promotion
KKAdminException
public void removeGiftCertificatesFromPromotion(java.lang.String sessionId, AdminProduct[] giftCertificates, int promotionId) throws KKAdminException
KKAdminIf
removeGiftCertificatesFromPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in usergiftCertificates
- An array of AdminProduct objectspromotionId
- The numeric id of the promotion
KKAdminException
public AdminProducts getRelatedProducts(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId, int relationType, int languageId) throws KKAdminException
KKAdminIf
Valid values for relationType are:
getRelatedProducts
in interface KKAdminIf
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 productlanguageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default language
KKAdminException
public AdminProducts getRelatedProductsWithOptions(java.lang.String sessionId, AdminDataDescriptor dataDesc, int productId, int relationType, int languageId, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
Valid values for relationType are:
getRelatedProductsWithOptions
in interface KKAdminIf
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 productlanguageId
- 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
public void removeRelatedProducts(java.lang.String sessionId, int productId, int relationType) throws KKAdminException
KKAdminIf
Valid values for relationType are:
removeRelatedProducts
in interface KKAdminIf
sessionId
- The session id of the logged in userproductId
- The numeric id of the product
KKAdminException
public void addRelatedProducts(java.lang.String sessionId, AdminProduct[] products, int productId, int relationType) throws KKAdminException
KKAdminIf
addRelatedProducts
in interface KKAdminIf
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
public java.lang.String readFromUrl(java.lang.String sessionId, java.lang.String url) throws KKAdminException
KKAdminIf
readFromUrl
in interface KKAdminIf
sessionId
- The session id of the logged in userurl
- The url
KKAdminException
public void editOrderReturn(java.lang.String sessionId, AdminOrderReturn orderRet) throws KKAdminException
KKAdminIf
editOrderReturn
in interface KKAdminIf
sessionId
- The session id of the logged in userorderRet
- AdminOrderReturn object
KKAdminException
public int insertOrderReturn(java.lang.String sessionId, AdminOrderReturn orderRet) throws KKAdminException
KKAdminIf
insertOrderReturn
in interface KKAdminIf
sessionId
- The session id of the logged in userorderRet
- An AdminOrderReturn object
KKAdminException
public void deleteOrderReturn(java.lang.String sessionId, int orderRetId) throws KKAdminException
KKAdminIf
deleteOrderReturn
in interface KKAdminIf
sessionId
- The session id of the logged in userorderRetId
- The id of the AdminOrderReturn object
KKAdminException
public AdminOrderReturnSearchResult getOrderReturns(java.lang.String sessionId, AdminOrderReturnSearch retSearch, int offset, int size) throws KKAdminException
KKAdminIf
getOrderReturns
in interface KKAdminIf
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
public java.lang.String getSku(java.lang.String sessionId, AdminOrderProduct orderProd) throws KKAdminException
KKAdminIf
getSku
in interface KKAdminIf
sessionId
- The session id of the logged in userorderProd
- An AdminOrderProduct object
KKAdminException
public java.lang.String[] getSkus(java.lang.String sessionId, AdminOrderProduct[] orderProds) throws KKAdminException
KKAdminIf
getSkus
in interface KKAdminIf
sessionId
- The session id of the logged in userorderProds
- An array of AdminOrderProduct objects
KKAdminException
public boolean doesCustomerExistForEmail(java.lang.String sessionId, java.lang.String emailAddr) throws KKAdminException
KKAdminIf
doesCustomerExistForEmail
in interface KKAdminIf
sessionId
- The session id of the logged in useremailAddr
- The email address of the customer
KKAdminException
public AdminAuditSearchResult getAuditData(java.lang.String sessionId, AdminAuditSearch retSearch, int offset, int size) throws KKAdminException
KKAdminIf
getAuditData
in interface KKAdminIf
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
public int importAudit(java.lang.String sessionId, AdminAudit audit) throws KKAdminException
KKAdminIf
importAudit
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public void deleteAuditData(java.lang.String sessionId, AdminAuditSearch delSearch) throws KKAdminException
KKAdminIf
deleteAuditData
in interface KKAdminIf
sessionId
- The session id of the logged in userdelSearch
- AdminAuditSearch object to filter the datato be deleted
KKAdminException
public AdminRole[] getRolesPerSessionId(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getRolesPerSessionId
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public AdminRole[] getRolesPerUser(java.lang.String sessionId, int userId) throws KKAdminException
KKAdminIf
getRolesPerUser
in interface KKAdminIf
sessionId
- The session id of the logged in useruserId
- The numeric id of the user
KKAdminException
public void addRolesToUser(java.lang.String sessionId, AdminRole[] roles, int userId) throws KKAdminException
KKAdminIf
addRolesToUser
in interface KKAdminIf
sessionId
- The session id of the logged in userroles
- An array of AdminRole objectsuserId
- The numeric id of the user
KKAdminException
public void removeRolesFromUser(java.lang.String sessionId, AdminRole[] roles, int userId) throws KKAdminException
KKAdminIf
removeRolesFromUser
in interface KKAdminIf
sessionId
- The session id of the logged in userroles
- An array of AdminRole objectsuserId
- The numeric user id
KKAdminException
public void removePanelsFromRole(java.lang.String sessionId, AdminPanel[] panels, int roleId) throws KKAdminException
KKAdminIf
removePanelsFromRole
in interface KKAdminIf
sessionId
- The session id of the logged in userpanels
- An array of AdminPanel objectsroleId
- The id of the Role
KKAdminException
public void removeApiCallsFromRole(java.lang.String sessionId, AdminApiCall[] apiCalls, int roleId) throws KKAdminException
KKAdminIf
removeApiCallsFromRole
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCalls
- An array of AdminApiCall objectsroleId
- The id of the Role
KKAdminException
public void addPanelsToRole(java.lang.String sessionId, AdminPanel[] panels, int roleId) throws KKAdminException
KKAdminIf
addPanelsToRole
in interface KKAdminIf
sessionId
- The session id of the logged in userpanels
- An array of AdminPanel objectsroleId
- The numeric id of the Role
KKAdminException
public void addApiCallsToRole(java.lang.String sessionId, AdminApiCall[] apiCalls, int roleId) throws KKAdminException
KKAdminIf
addApiCallsToRole
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCalls
- An array of AdminApiCall objectsroleId
- The id of the Role
KKAdminException
public AdminPanel[] getPanelsPerRole(java.lang.String sessionId, int roleId) throws KKAdminException
KKAdminIf
getPanelsPerRole
in interface KKAdminIf
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
public AdminApiCall[] getApiCallsPerRole(java.lang.String sessionId, int roleId) throws KKAdminException
KKAdminIf
getApiCallsPerRole
in interface KKAdminIf
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
public AdminPanel[] getAllPanels(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getAllPanels
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public AdminApiCall[] getAllApiCalls(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getAllApiCalls
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public AdminRole[] getAllRoles(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getAllRoles
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public void editRole(java.lang.String sessionId, AdminRole role) throws KKAdminException
KKAdminIf
editRole
in interface KKAdminIf
sessionId
- The session id of the logged in userrole
- AdminRole object
KKAdminException
public int insertRole(java.lang.String sessionId, AdminRole role) throws KKAdminException
KKAdminIf
insertRole
in interface KKAdminIf
sessionId
- The session id of the logged in userrole
- The AdminRole object
KKAdminException
public void deleteRole(java.lang.String sessionId, int roleId) throws KKAdminException
KKAdminIf
deleteRole
in interface KKAdminIf
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
public void deletePanel(java.lang.String sessionId, int panelId) throws KKAdminException
KKAdminIf
deletePanel
in interface KKAdminIf
sessionId
- The session id of the logged in userpanelId
- The numeric id of the panel
KKAdminException
public void deleteApiCall(java.lang.String sessionId, int apiCallId) throws KKAdminException
KKAdminIf
deleteApiCall
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCallId
- The numeric id of the ApiCall
KKAdminException
public void editPanel(java.lang.String sessionId, AdminPanel panel) throws KKAdminException
KKAdminIf
editPanel
in interface KKAdminIf
sessionId
- The session id of the logged in userpanel
- AdminPanel object
KKAdminException
public void editApiCall(java.lang.String sessionId, AdminApiCall apiCall) throws KKAdminException
KKAdminIf
editApiCall
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCall
- An AdminApiCall object
KKAdminException
public AdminPanel getPanel(java.lang.String sessionId, int panelId) throws KKAdminException
KKAdminIf
getPanel
in interface KKAdminIf
sessionId
- The session id of the logged in userpanelId
- The numeric id of the AdminPanel object
KKAdminException
public AdminApiCall getApiCall(java.lang.String sessionId, int apiCallId) throws KKAdminException
KKAdminIf
getApiCall
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCallId
- The numeric id of the AdminApiCall object
KKAdminException
public AdminRole getRole(java.lang.String sessionId, int roleId) throws KKAdminException
KKAdminIf
getRole
in interface KKAdminIf
sessionId
- The session id of the logged in userroleId
- The id of the Role
KKAdminException
public int insertPanel(java.lang.String sessionId, AdminPanel panel) throws KKAdminException
KKAdminIf
insertPanel
in interface KKAdminIf
sessionId
- The session id of the logged in userpanel
- An AdminPanel object
KKAdminException
public int insertApiCall(java.lang.String sessionId, AdminApiCall apiCall) throws KKAdminException
KKAdminIf
insertApiCall
in interface KKAdminIf
sessionId
- The session id of the logged in userapiCall
- An AdminApiCall object
KKAdminException
public void insertDigitalDownload(java.lang.String sessionId, int customerId, int productId) throws KKAdminException
KKAdminIf
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.
insertDigitalDownload
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The numeric id of the customerproductId
- The numeric id of the product
KKAdminException
public 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
KKAdminIf
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.
sendTemplateEmailToCustomers
in interface KKAdminIf
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
public 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
KKAdminIf
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sendTemplateEmailToCustomersWithOptions
in interface KKAdminIf
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
public 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
KKAdminIf
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.
sendTemplateEmailToCustomers1
in interface KKAdminIf
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
public 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
KKAdminIf
A log called SendTemplateEmail.log is created, containing a list of the eMail addresses used.
sendTemplateEmailToCustomers1WithOptions
in interface KKAdminIf
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
public void insertProductNotification(java.lang.String sessionId, AdminProductNotification apn) throws KKAdminException
KKAdminIf
insertProductNotification
in interface KKAdminIf
sessionId
- The session id of the logged in userapn
- An AdminProductNotification object
KKAdminException
public void deleteProductNotification(java.lang.String sessionId, AdminProductNotification apn) throws KKAdminException
KKAdminIf
deleteProductNotification
in interface KKAdminIf
sessionId
- The session id of the logged in userapn
- An AdminProductNotification object
KKAdminException
public AdminCustomer getCustomerForEmail(java.lang.String sessionId, java.lang.String emailAddress) throws KKAdminException
KKAdminIf
getCustomerForEmail
in interface KKAdminIf
sessionId
- The session id of the logged in useremailAddress
- The eMail address of the customer
KKAdminException
public void editOrder(java.lang.String sessionId, AdminOrder order) throws KKAdminException
KKAdminIf
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.
editOrder
in interface KKAdminIf
sessionId
- The session Id of the logged in userorder
- The AdminOrder object to be edited
KKAdminException
public void setCreditCardDetailsOnOrder(java.lang.String sessionId, AdminCreditCard creditCard) throws KKAdminException
KKAdminIf
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):
setCreditCardDetailsOnOrder
in interface KKAdminIf
sessionId
- The session Id of the logged in usercreditCard
- An AdminCreditCard object containing all of the credit card details
KKAdminException
public java.lang.String custom(java.lang.String input1, java.lang.String input2) throws KKAdminException
KKAdminIf
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!
custom
in interface KKAdminIf
input1
- The first input String - can be anything you chooseinput2
- The second input String - can be anything you choose
KKAdminException
public java.lang.String customSecure(java.lang.String sessionId, java.lang.String input1, java.lang.String input2) throws KKAdminException
KKAdminIf
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!
customSecure
in interface KKAdminIf
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
public AdminProduct getBundleProductDetails(java.lang.String sessionId, int bundleId, AdminProduct[] bundledProducts, AdminDiscount discount) throws KKAdminException
KKAdminIf
getBundleProductDetails
in interface KKAdminIf
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
public void deleteTag(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteTag
in interface KKAdminIf
sessionId
- session Id of logged in Admin userid
- the id of the AdminTag to delete
KKAdminException
public void deleteTagGroup(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteTagGroup
in interface KKAdminIf
sessionId
- session Id of logged in Admin userid
- the id of the AdminTagGroup to delete
KKAdminException
public AdminTagGroupSearchResult getTagGroups(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getTagGroups
in interface KKAdminIf
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
public AdminTagSearchResult getTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getTags
in interface KKAdminIf
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
public AdminTagGroupToTag[] getTagGroupToTags(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getTagGroupToTags
in interface KKAdminIf
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
public int insertTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
KKAdminIf
insertTag
in interface KKAdminIf
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
public int insertTags(java.lang.String sessionId, AdminTag[] tag) throws KKAdminException
KKAdminIf
insertTags
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertag
- 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
public int insertTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
KKAdminIf
insertTagGroup
in interface KKAdminIf
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
public int insertTagGroups(java.lang.String sessionId, AdminTagGroup[] tagGroup) throws KKAdminException
KKAdminIf
insertTagGroups
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertagGroup
- 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
public void insertTagGroupToTags(java.lang.String sessionId, AdminTagGroupToTag tagGroupToTag) throws KKAdminException
KKAdminIf
insertTagGroupToTags
in interface KKAdminIf
sessionId
- session Id of logged in Admin user
KKAdminException
public int updateTag(java.lang.String sessionId, AdminTag tag) throws KKAdminException
KKAdminIf
updateTag
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertag
- the AdminTag object to update
KKAdminException
public int updateTagGroup(java.lang.String sessionId, AdminTagGroup tagGroup) throws KKAdminException
KKAdminIf
updateTagGroup
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertagGroup
- the AdminTagGroup object to update
KKAdminException
public void addTagGroupsToCategory(java.lang.String sessionId, AdminTagGroup[] tagGroups, int categoryId) throws KKAdminException
KKAdminIf
addTagGroupsToCategory
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertagGroups
- Array of AdminTagGroup objectscategoryId
- The id of the category
KKAdminException
public void addCategoriesToTagGroups(java.lang.String sessionId, int tagGroupId, int[] categories) throws KKAdminException
KKAdminIf
addCategoriesToTagGroups
in interface KKAdminIf
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
public void addTagsToProduct(java.lang.String sessionId, AdminTag[] tags, int productId) throws KKAdminException
KKAdminIf
addTagsToProduct
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertags
- Array of AdminTag objectsproductId
- The id of the product
KKAdminException
public AdminTagGroup[] getTagGroupsPerCategory(java.lang.String sessionId, int categoryId, int languageId) throws KKAdminException
KKAdminIf
getTagGroupsPerCategory
in interface KKAdminIf
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
public int[] getCategoriesPerTagGroup(java.lang.String sessionId, int tagGroupId) throws KKAdminException
KKAdminIf
getCategoriesPerTagGroup
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertagGroupId
- The id of the tag Group
KKAdminException
public AdminCategoryToTagGroup[] getCategoriesToTagGroups(java.lang.String sessionId) throws KKAdminException
KKAdminIf
getCategoriesToTagGroups
in interface KKAdminIf
sessionId
- session Id of logged in Admin user
KKAdminException
public AdminTag[] getTagsPerProduct(java.lang.String sessionId, int productId, int languageId) throws KKAdminException
KKAdminIf
getTagsPerProduct
in interface KKAdminIf
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
public void removeTagGroupsFromCategory(java.lang.String sessionId, AdminTagGroup[] tagGroups, int categoryId) throws KKAdminException
KKAdminIf
removeTagGroupsFromCategory
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertagGroups
- Array of AdminTagGroup objectscategoryId
- The id of the category
KKAdminException
public void removeTagsFromProduct(java.lang.String sessionId, AdminTag[] tags, int productId) throws KKAdminException
KKAdminIf
removeTagsFromProduct
in interface KKAdminIf
sessionId
- session Id of logged in Admin usertags
- Array of AdminTag objectsproductId
- The id of the product
KKAdminException
public void updateCachedConfigurations(java.lang.String sessionId) throws KKAdminException
KKAdminIf
updateCachedConfigurations
in interface KKAdminIf
sessionId
- session Id of logged in Admin user
KKAdminException
public void publishProducts(java.lang.String sessionId, AdminPublishConfig adminPublishConfig) throws KKAdminException
KKAdminIf
publishProducts
in interface KKAdminIf
sessionId
- Session IdadminPublishConfig
- Defines the data feed parameters
KKAdminException
public java.lang.String getKonakartPropertyValue(java.lang.String sessionId, java.lang.String section, java.lang.String propertyName) throws KKAdminException
KKAdminIf
getKonakartPropertyValue
in interface KKAdminIf
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
public void addAllProductsToSearchEngine(java.lang.String sessionId, boolean async) throws KKAdminException
KKAdminIf
addAllProductsToSearchEngine
in interface KKAdminIf
sessionId
- Session Idasync
- When set to true, control is immediately returned to the caller and the operation
proceeds asynchronously.
KKAdminException
public void addProductToSearchEngine(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
addProductToSearchEngine
in interface KKAdminIf
sessionId
- Session IdproductId
- The numeric id of the product
KKAdminException
public void removeAllProductsFromSearchEngine(java.lang.String sessionId, boolean async) throws KKAdminException
KKAdminIf
removeAllProductsFromSearchEngine
in interface KKAdminIf
sessionId
- Session Idasync
- When set to true, control is immediately returned to the caller and the operation
proceeds asynchronously on the search engine.
KKAdminException
public void removeProductFromSearchEngine(java.lang.String sessionId, int productId) throws KKAdminException
KKAdminIf
removeProductFromSearchEngine
in interface KKAdminIf
sessionId
- Session IdproductId
- The numeric id of the product
KKAdminException
public int insertConfigurationGroup(java.lang.String sessionId, AdminConfigurationGroup configGroup) throws KKAdminException
KKAdminIf
insertConfigurationGroup
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfigGroup
- an AdminConfigurationGroup object to insert
KKAdminException
public int insertConfiguration(java.lang.String sessionId, KKConfiguration config) throws KKAdminException
KKAdminIf
insertConfiguration
in interface KKAdminIf
sessionId
- The session Id of the logged in userconfig
- a KKConfiguration object to insert
KKAdminException
public void deleteMallStore(java.lang.String sessionId, java.lang.String storeId) throws KKAdminException
KKAdminIf
Multi-Store Single DB only
deleteMallStore
in interface KKAdminIf
sessionId
- The session Id of the logged in userstoreId
- the StoreId of the store to delete
KKAdminException
public AdminStoreSearchResult getMallStores(AdminStoreSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getMallStores
in interface KKAdminIf
search
- search definition for storesoffset
- offset in results (for paging)size
- maximum number of records to return from the offset (for paging)
KKAdminException
public void insertMallStore(java.lang.String sessionId, AdminStore store) throws KKAdminException
KKAdminIf
Multi-Store Single DB only
insertMallStore
in interface KKAdminIf
sessionId
- The session Id of the logged in userstore
- a new Store object to insert (all attributes should be filled in, including
storeId)
KKAdminException
public void cloneStore(java.lang.String sessionId, AdminNewStoreOptions options, java.lang.String storeToCloneId, AdminStore newStore) throws KKAdminException
KKAdminIf
Multi-Store Single DB only.
cloneStore
in interface KKAdminIf
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
public void updateMallStore(java.lang.String sessionId, AdminStore store) throws KKAdminException
KKAdminIf
Multi-Store Single DB only
updateMallStore
in interface KKAdminIf
sessionId
- The session Id of the logged in userstore
- The AdminStore object to update
KKAdminException
public boolean doesMallStoreExist(java.lang.String storeId) throws KKAdminException
KKAdminIf
Multi-Store Single DB only
doesMallStoreExist
in interface KKAdminIf
storeId
- The StoreId of the store to check
KKAdminException
public void setProductQuantity(java.lang.String sessionId, java.lang.String sku, int id, int quantity, int operation) throws KKAdminException
KKAdminIf
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:
setProductQuantity
in interface KKAdminIf
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
public void setProductQuantityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, int quantity, int operation, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
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.
setProductQuantityWithOptions
in interface KKAdminIf
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
public void setProductAvailability(java.lang.String sessionId, java.lang.String sku, int id, java.util.Calendar dateAvailable) throws KKAdminException
KKAdminIf
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.
setProductAvailability
in interface KKAdminIf
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
public void setProductAvailabilityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, java.util.Calendar dateAvailable, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
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.
setProductAvailabilityWithOptions
in interface KKAdminIf
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
public java.util.Calendar getProductAvailability(java.lang.String sessionId, java.lang.String sku, int id) throws KKAdminException
KKAdminIf
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.
getProductAvailability
in interface KKAdminIf
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
public java.util.Calendar getProductAvailabilityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
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.
getProductAvailabilityWithOptions
in interface KKAdminIf
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
public int getProductQuantity(java.lang.String sessionId, java.lang.String sku, int id) throws KKAdminException
KKAdminIf
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.
getProductQuantity
in interface KKAdminIf
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
public int getProductQuantityWithOptions(java.lang.String sessionId, java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
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.
getProductQuantityWithOptions
in interface KKAdminIf
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
public void addCustomDataToSession(java.lang.String sessionId, java.lang.String data, int position) throws KKAdminException
KKAdminIf
addCustomDataToSession
in interface KKAdminIf
sessionId
- The sessionIddata
- The data to be savedposition
- This must be in the range of 1-5 to identify custom1 to custom5
KKAdminException
public java.lang.String getCustomDataFromSession(java.lang.String sessionId, int position) throws KKAdminException
KKAdminIf
getCustomDataFromSession
in interface KKAdminIf
sessionId
- The sessionIdposition
- This must be in the range of 1-5 to identify custom1 to custom5
KKAdminException
public java.lang.String execute(java.lang.String sessionId, java.lang.String className, java.lang.String methodName, java.lang.String[] paramArray) throws KKAdminException
KKAdminIf
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); }
execute
in interface KKAdminIf
sessionId
- The sessionIdclassName
- The fully qualified classNamemethodName
- The name of the method to be executedparamArray
- The parameters passed to the method
KKAdminException
public AdminProductToStore[] getProductsToStores(java.lang.String sessionId, AdminDataDescriptor dataDesc, AdminSearch search) throws KKAdminException
KKAdminIf
getProductsToStores
in interface KKAdminIf
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
public void insertProductsToStores(java.lang.String sessionId, AdminProductToStore[] productToStores) throws KKAdminException
KKAdminIf
insertProductsToStores
in interface KKAdminIf
sessionId
- The session id of the logged in userproductToStores
- an array of AdminProductToStore objects to insert into the database
KKAdminException
public void removeProductsToStores(java.lang.String sessionId, AdminProductToStore[] productToStores) throws KKAdminException
KKAdminIf
removeProductsToStores
in interface KKAdminIf
sessionId
- The session id of the logged in userproductToStores
- an array of AdminProductToStore objects to delete from the database
KKAdminException
public int insertOrder(java.lang.String sessionId, AdminOrder order) throws KKAdminException
KKAdminIf
insertOrder
in interface KKAdminIf
sessionId
- The session id of the logged in userorder
- The order to be inserted
KKAdminException
public AdminWishLists getWishLists(java.lang.String sessionId, AdminWishListSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getWishLists
in interface KKAdminIf
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
public int insertWishList(java.lang.String sessionId, AdminWishList wishList) throws KKAdminException
KKAdminIf
insertWishList
in interface KKAdminIf
sessionId
- The session id of the logged in userwishList
- The wish list
KKAdminException
public void deleteWishList(java.lang.String sessionId, int wishListId) throws KKAdminException
KKAdminIf
deleteWishList
in interface KKAdminIf
sessionId
- The session id of the logged in userwishListId
- Id of the wish list item
KKAdminException
public int insertWishListItem(java.lang.String sessionId, AdminWishListItem wishListItem) throws KKAdminException
KKAdminIf
insertWishListItem
in interface KKAdminIf
sessionId
- The session id of the logged in userwishListItem
- The wish list item
KKAdminException
public void deleteWishListItem(java.lang.String sessionId, int wishListItemId) throws KKAdminException
KKAdminIf
deleteWishListItem
in interface KKAdminIf
sessionId
- The session id of the logged in userwishListItemId
- Id of the wish list item
KKAdminException
public AdminAddress getAddressById(java.lang.String sessionId, int addressId) throws KKAdminException
KKAdminIf
getAddressById
in interface KKAdminIf
sessionId
- session Id of logged in Admin useraddressId
- the id of the address to retrieve
KKAdminException
public AdminAddressSearchResult getAddresses(java.lang.String sessionId, AdminAddressSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getAddresses
in interface KKAdminIf
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
public void deleteAddress(java.lang.String sessionId, int addressId) throws KKAdminException
KKAdminIf
deleteAddress
in interface KKAdminIf
sessionId
- session Id of logged in Admin useraddressId
- the id of the address to delete
KKAdminException
public int insertAddress(java.lang.String sessionId, AdminAddress address) throws KKAdminException
KKAdminIf
insertAddress
in interface KKAdminIf
sessionId
- session Id of logged in Admin useraddress
- an AdminAddress object
KKAdminException
public void updateAddress(java.lang.String sessionId, AdminAddress address) throws KKAdminException
KKAdminIf
updateAddress
in interface KKAdminIf
sessionId
- session Id of logged in Admin useraddress
- the AdminAddress object to update
KKAdminException
public int insertCustomerTag(java.lang.String sessionId, AdminCustomerTag tag) throws KKAdminException
KKAdminIf
The following customer tag attributes are compulsory:
The id of the new object is returned.
insertCustomerTag
in interface KKAdminIf
sessionId
- The session id of the logged in usertag
- The AdminCustomerTag object to be inserted
KKAdminException
public AdminCustomerTagSearchResult getCustomerTags(java.lang.String sessionId, AdminCustomerTagSearch search, int offset, int size) throws KKAdminException
KKAdminIf
Constraints may be added for:
The returned objects may be ordered by:
getCustomerTags
in interface KKAdminIf
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
public int updateCustomerTag(java.lang.String sessionId, AdminCustomerTag tag) throws KKAdminException
KKAdminIf
updateCustomerTag
in interface KKAdminIf
sessionId
- The session id of the logged in usertag
- The AdminCustomerTag object used for the update
KKAdminException
public int deleteCustomerTag(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteCustomerTag
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the deleted customer tag
KKAdminException
public AdminCustomerTag getCustomerTag(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the
customer tag doesn't exist in the DB.
getCustomerTag
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminCustomerTag object
KKAdminException
public void deleteCustomerTagForCustomer(java.lang.String sessionId, int customerId, java.lang.String tagName) throws KKAdminException
KKAdminIf
tagName
for the customer
referenced by customerId
.
deleteCustomerTagForCustomer
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
public AdminCustomerTag getCustomerTagForCustomer(java.lang.String sessionId, int customerId, java.lang.String tagName) throws KKAdminException
KKAdminIf
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
.
getCustomerTagForCustomer
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
public AdminCustomerTag getCustomerTagForName(java.lang.String sessionId, java.lang.String tagName) throws KKAdminException
KKAdminIf
tagName
parameter, or Null if the
customer tag doesn't exist in the DB.
getCustomerTagForName
in interface KKAdminIf
sessionId
- The session id of the logged in usertagName
- The name of the customer tag
KKAdminException
public AdminCustomerTag[] getCustomerTagsForCustomer(java.lang.String sessionId, int customerId) throws KKAdminException
KKAdminIf
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.
getCustomerTagsForCustomer
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customer
KKAdminException
public void insertCustomerTagForCustomer(java.lang.String sessionId, int customerId, AdminCustomerTag tag) throws KKAdminException
KKAdminIf
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()
.
insertCustomerTagForCustomer
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customertag
- The customer tag object
KKAdminException
public int deleteExpression(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
.
deleteExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminExpression object to be deleted
KKAdminException
public int deleteExpressionVariable(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
.
deleteExpressionVariable
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminExpressionVariable object to be deleted
KKAdminException
public AdminExpression getExpression(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the
AdminExpression doesn't exist in the DB.
getExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminExpression object
KKAdminException
public AdminExpression getExpressionForName(java.lang.String sessionId, java.lang.String expName) throws KKAdminException
KKAdminIf
expName
parameter, or Null if the
AdminExpression doesn't exist in the DB.
getExpressionForName
in interface KKAdminIf
sessionId
- The session id of the logged in userexpName
- The name of the AdminExpression object
KKAdminException
public AdminExpressionVariable getExpressionVariable(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB.
getExpressionVariable
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminExpressionVariable object
KKAdminException
public AdminExpressionVariable[] getExpressionVariablesForExpression(java.lang.String sessionId, int expressionId) throws KKAdminException
KKAdminIf
id
parameter. An empty array is returned if no objects are found.
getExpressionVariablesForExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userexpressionId
- The AdminExpression id for the AdminExpressionVariable objects
KKAdminException
public AdminExpressionSearchResult getExpressions(java.lang.String sessionId, AdminExpressionSearch search, int offset, int size) throws KKAdminException
KKAdminIf
Constraints may be added for:
The returned objects may be ordered by:
getExpressions
in interface KKAdminIf
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
public int insertExpressionVariables(java.lang.String sessionId, AdminExpressionVariable[] expVarArray) throws KKAdminException
KKAdminIf
insertExpressionVariables
in interface KKAdminIf
sessionId
- The session id of the logged in userexpVarArray
- The AdminExpressionVariable array of objects to be inserted
KKAdminException
public int updateExpression(java.lang.String sessionId, AdminExpression exp) throws KKAdminException
KKAdminIf
updateExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userexp
- The AdminExpression object to be updated
KKAdminException
public int updateExpressionVariable(java.lang.String sessionId, AdminExpressionVariable expVar) throws KKAdminException
KKAdminIf
updateExpressionVariable
in interface KKAdminIf
sessionId
- The session id of the logged in userexpVar
- The AdminExpressionVariable object to be updated
KKAdminException
public int insertExpression(java.lang.String sessionId, AdminExpression exp) throws KKAdminException
KKAdminIf
name
attribute of the
AdminExpression is required.
insertExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userexp
- The AdminExpression object to be inserted
KKAdminException
public void deleteExpressionVariablesForExpression(java.lang.String sessionId, int expressionId) throws KKAdminException
KKAdminIf
expressionId
.
deleteExpressionVariablesForExpression
in interface KKAdminIf
sessionId
- The session id of the logged in userexpressionId
- The id of the AdminExpression object
KKAdminException
public AdminExpression[] getExpressionsPerPromotion(java.lang.String sessionId, int promotionId) throws KKAdminException
KKAdminIf
promotionId
getExpressionsPerPromotion
in interface KKAdminIf
sessionId
- The session id of the logged in userpromotionId
- The numeric id of the promotion
KKAdminException
public boolean evaluateExpression(java.lang.String sessionId, int customerId, int expressionId, java.lang.String expressionName) throws KKAdminException
KKAdminIf
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.
evaluateExpression
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customer
KKAdminException
public int importDigitalDownload(java.lang.String sessionId, AdminDigitalDownload digDownload) throws KKAdminException
KKAdminIf
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.
importDigitalDownload
in interface KKAdminIf
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
problemspublic AdminDigitalDownloadSearchResult searchDigitalDownloads(java.lang.String sessionId, AdminDigitalDownloadSearch search, int offset, int size) throws KKAdminException
KKAdminIf
searchDigitalDownloads
in interface KKAdminIf
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
public AdminRewardPointSearchResult getRewardPoints(java.lang.String sessionId, AdminRewardPointSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getRewardPoints
in interface KKAdminIf
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
public int pointsAvailable(java.lang.String sessionId, int customerId) throws KKAdminException
KKAdminIf
customerId
parameter.
pointsAvailable
in interface KKAdminIf
sessionId
- The session id of the logged in usercustomerId
- The id of the customer
KKAdminException
public int deletePoints(java.lang.String sessionId, int customerId, int points, java.lang.String code, java.lang.String description) throws KKAdminException
KKAdminIf
customerId
parameter.
deletePoints
in interface KKAdminIf
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
public int addPoints(java.lang.String sessionId, int customerId, int points, java.lang.String code, java.lang.String description) throws KKAdminException
KKAdminIf
customerId
parameter.
addPoints
in interface KKAdminIf
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
public AdminFile[] getFiles(java.lang.String sessionId, java.lang.String directory, java.lang.String extension) throws KKAdminException
KKAdminIf
getFiles
in interface KKAdminIf
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
public int deletePaymentSchedule(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deletePaymentSchedule
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the payment schedule object to delete
KKAdminException
public int deleteSubscription(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteSubscription
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the subscription object to delete
KKAdminException
public AdminPaymentSchedule getPaymentSchedule(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the payment
schedule object doesn't exist in the DB.
getPaymentSchedule
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the payment schedule object
KKAdminException
public AdminSubscription getSubscription(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the
subscription object doesn't exist in the DB.
getSubscription
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the subscription object
KKAdminException
public AdminPaymentScheduleSearchResult getPaymentSchedules(java.lang.String sessionId, AdminPaymentScheduleSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getPaymentSchedules
in interface KKAdminIf
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
public AdminSubscriptionSearchResult getSubscriptions(java.lang.String sessionId, AdminSubscriptionSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getSubscriptions
in interface KKAdminIf
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
public int insertPaymentSchedule(java.lang.String sessionId, AdminPaymentSchedule ps) throws KKAdminException
KKAdminIf
insertPaymentSchedule
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public int insertSubscription(java.lang.String sessionId, AdminSubscription subscription) throws KKAdminException
KKAdminIf
insertSubscription
in interface KKAdminIf
sessionId
- The session id of the logged in user
KKAdminException
public int updatePaymentSchedule(java.lang.String sessionId, AdminPaymentSchedule ps) throws KKAdminException
KKAdminIf
updatePaymentSchedule
in interface KKAdminIf
sessionId
- The session id of the logged in userps
- An AdminPaymentSchedule object
KKAdminException
public int updateSubscription(java.lang.String sessionId, AdminSubscription subscription) throws KKAdminException
KKAdminIf
updateSubscription
in interface KKAdminIf
sessionId
- The session id of the logged in usersubscription
- An AdminSubscription object
KKAdminException
public boolean checkDataIntegrity(java.lang.String sessionId, AdminDataIntegrityOptions dataIntegrityOptions) throws KKAdminException
KKAdminIf
checkDataIntegrity
in interface KKAdminIf
sessionId
- The session id of the logged in userdataIntegrityOptions
- Defines the options to use for the data integrity check
KKAdminException
public com.konakart.app.ExportOrderResponse exportOrder(java.lang.String sessionId, com.konakart.app.ExportOrderOptions options) throws KKAdminException
KKAdminIf
exportOrder
in interface KKAdminIf
sessionId
- The session id of the logged in useroptions
- Defines the options to use for the export of the Order
KKAdminException
public AdminKkMsgSearchResult searchMsg(AdminKkMsgSearch search, int groupSize, int offset) throws KKAdminException
KKAdminIf
searchMsg
in interface KKAdminIf
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
public java.lang.String getMsgValue(java.lang.String key, int type, java.lang.String locale) throws KKAdminException
KKAdminIf
getMsgValue
in interface KKAdminIf
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
public void deleteMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale) throws KKAdminException
KKAdminIf
deleteMsg
in interface KKAdminIf
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
public void insertMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale, java.lang.String value) throws KKAdminException
KKAdminIf
insertMsg
in interface KKAdminIf
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
public void updateMsg(java.lang.String sessionId, java.lang.String key, int type, java.lang.String locale, java.lang.String value) throws KKAdminException
KKAdminIf
updateMsg
in interface KKAdminIf
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
public void importMsgs(java.lang.String sessionId, int type, java.lang.String locale, java.lang.String msgString, boolean replace) throws KKAdminException
KKAdminIf
importMsgs
in interface KKAdminIf
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
public java.lang.String exportMsgs(int type, java.lang.String locale) throws KKAdminException
KKAdminIf
exportMsgs
in interface KKAdminIf
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
public void addAddressesToProduct(java.lang.String sessionId, AdminAddress[] addresses, int productId) throws KKAdminException
KKAdminIf
addAddressesToProduct
in interface KKAdminIf
sessionId
- The session id of the logged in useraddresses
- The array of address to be addedproductId
- The numeric id of the product
KKAdminException
public void removeAddressFromProduct(java.lang.String sessionId, int addressId, int productId) throws KKAdminException
KKAdminIf
removeAddressFromProduct
in interface KKAdminIf
sessionId
- The session id of the logged in useraddressId
- The numeric id of the addressproductId
- The numeric id of the product
KKAdminException
public int getProductCountPerAddress(java.lang.String sessionId, int addressId) throws KKAdminException
KKAdminIf
getProductCountPerAddress
in interface KKAdminIf
sessionId
- The session id of the logged in useraddressId
- The numeric id of the address
KKAdminException
public AdminManufacturerSearchResult getManufacturers(java.lang.String sessionId, AdminManufacturerSearch search, int offset, int size) throws KKAdminException
KKAdminIf
Constraints may be added for:
The returned objects may be ordered by:
getManufacturers
in interface KKAdminIf
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
public AdminProductOptionSearchResult getProductOptions(java.lang.String sessionId, AdminProductOptionSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getProductOptions
in interface KKAdminIf
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
public int deleteProdAttrDesc(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrDesc object to be deleted
KKAdminException
public int deleteProdAttrTemplate(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
deleteProdAttrTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrTemplate object to be deleted
KKAdminException
public AdminProdAttrDesc getProdAttrDesc(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
id
parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB.
getProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrDesc to be fetched
KKAdminException
public AdminProdAttrDescSearchResult getProdAttrDescs(java.lang.String sessionId, AdminProdAttrDescSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getProdAttrDescs
in interface KKAdminIf
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
public AdminProdAttrDesc[] getProdAttrDescsForTemplate(java.lang.String sessionId, int templateId) throws KKAdminException
KKAdminIf
templateId
parameter.
An empty array is returned if no AdminProdAttrDesc objects exist.
getProdAttrDescsForTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in usertemplateId
- The id of the template
KKAdminException
public AdminProdAttrTemplate getProdAttrTemplate(java.lang.String sessionId, int id) throws KKAdminException
KKAdminIf
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.
getProdAttrTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in userid
- The id of the AdminProdAttrTemplate object to be fetched
KKAdminException
public AdminProdAttrTemplateSearchResult getProdAttrTemplates(java.lang.String sessionId, AdminProdAttrTemplateSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getProdAttrTemplates
in interface KKAdminIf
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
public int insertProdAttrDesc(java.lang.String sessionId, AdminProdAttrDesc attrDesc) throws KKAdminException
KKAdminIf
insertProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDesc
- The AdminProdAttrDesc to insert
KKAdminException
public int insertProdAttrTemplate(java.lang.String sessionId, AdminProdAttrTemplate template) throws KKAdminException
KKAdminIf
insertProdAttrTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in usertemplate
- The AdminProdAttrTemplate object to be insterted
KKAdminException
public void removeProdAttrDescsFromTemplate(java.lang.String sessionId, AdminProdAttrDesc[] attrDescs, int templateId) throws KKAdminException
KKAdminIf
attrDescs
is set
to null, all ProdAttrDesc objects are removed from the template.
removeProdAttrDescsFromTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDescs
- Array of AdminProdAttrDesc objectstemplateId
- Id of the AdminProdAttrTemplate
KKAdminException
public void addProdAttrDescsToTemplate(java.lang.String sessionId, AdminProdAttrDesc[] attrDescs, int templateId) throws KKAdminException
KKAdminIf
addProdAttrDescsToTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDescs
- Array of AdminProdAttrDesc objectstemplateId
- Id of the AdminProdAttrTemplate
KKAdminException
public int updateProdAttrDesc(java.lang.String sessionId, AdminProdAttrDesc attrDesc) throws KKAdminException
KKAdminIf
updateProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDesc
- The AdminProdAttrDesc to update
KKAdminException
public int updateProdAttrTemplate(java.lang.String sessionId, AdminProdAttrTemplate template) throws KKAdminException
KKAdminIf
updateProdAttrTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in usertemplate
- An AdminProdAttrTemplate object
KKAdminException
public int getTemplateCountPerProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
KKAdminIf
getTemplateCountPerProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
public int getProductCountPerProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
KKAdminIf
getProductCountPerProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
public int updateProductsUsingProdAttrDesc(java.lang.String sessionId, int attrDescId) throws KKAdminException
KKAdminIf
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.
updateProductsUsingProdAttrDesc
in interface KKAdminIf
sessionId
- The session id of the logged in userattrDescId
- The id of the AdminProdAttrDesc object
KKAdminException
public int updateProductsUsingTemplates(java.lang.String sessionId, int[] templateIds) throws KKAdminException
KKAdminIf
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.
updateProductsUsingTemplates
in interface KKAdminIf
sessionId
- The session id of the logged in usertemplateIds
- An array of template ids
KKAdminException
public int getProductCountPerTemplate(java.lang.String sessionId, int templateId) throws KKAdminException
KKAdminIf
getProductCountPerTemplate
in interface KKAdminIf
sessionId
- The session id of the logged in usertemplateId
- The id of the AdminProdAttrTemplate object
KKAdminException
public com.konakart.app.NameValue[] callPaymentModule(java.lang.String sessionId, java.lang.String moduleClassName, com.konakart.app.PaymentOptions options) throws KKAdminException
KKAdminIf
com.konakartadmin.modules.AdminPaymentIf
interface, is
instantiated and the execute
method is called.
callPaymentModule
in interface KKAdminIf
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
public AdminBookingSearchResult getBookings(java.lang.String sessionId, AdminBookingSearch search, int offset, int size, AdminBookableProductOptions options) throws KKAdminException
KKAdminIf
getBookings
in interface KKAdminIf
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
public int insertBooking(java.lang.String sessionId, AdminBooking booking, AdminBookableProductOptions options) throws KKAdminException
KKAdminIf
insertBooking
in interface KKAdminIf
sessionId
- The session id of the logged in userbooking
- The booking to insertoptions
- AdminBookableProduct options
KKAdminException
public void updateBooking(java.lang.String sessionId, AdminBooking booking, AdminBookableProductOptions options) throws KKAdminException
KKAdminIf
updateBooking
in interface KKAdminIf
sessionId
- The session id of the logged in userbooking
- The booking to updateoptions
- AdminBookableProduct options
KKAdminException
public void deleteBooking(java.lang.String sessionId, int bookingId, AdminBookableProductOptions options) throws KKAdminException
KKAdminIf
deleteBooking
in interface KKAdminIf
sessionId
- The session id of the logged in userbookingId
- bookingId of the booking to deleteoptions
- AdminBookableProduct options
KKAdminException
public void deleteCatalog(java.lang.String sessionId, int catalogId) throws KKAdminException
KKAdminIf
deleteCatalog
in interface KKAdminIf
sessionId
- The session id of the logged in usercatalogId
- The numeric id of the catalog
KKAdminException
public AdminCatalogSearchResult getCatalogs(java.lang.String sessionId, AdminCatalogSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getCatalogs
in interface KKAdminIf
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
public int insertCatalog(java.lang.String sessionId, AdminCatalog catalog) throws KKAdminException
KKAdminIf
insertCatalog
in interface KKAdminIf
sessionId
- The session id of the logged in usercatalog
- The AdminCatalog object to be inserted
KKAdminException
public void updateCatalog(java.lang.String sessionId, AdminCatalog catalog) throws KKAdminException
KKAdminIf
updateCatalog
in interface KKAdminIf
sessionId
- The session id of the logged in usercatalog
- The AdminCatalog object to be updated
KKAdminException
public AdminCatalog getCatalogById(java.lang.String sessionId, int catalogId) throws KKAdminException
KKAdminIf
getCatalogById
in interface KKAdminIf
sessionId
- The session id of the logged in usercatalogId
- The numeric id of the catalog
KKAdminException
public void deleteMiscItemType(java.lang.String sessionId, int miTypeId, boolean deleteChildren) throws KKAdminException
KKAdminIf
deleteMiscItemType
in interface KKAdminIf
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
public AdminMiscItemType[] getMiscItemTypes(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getMiscItemTypes
in interface KKAdminIf
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
public int insertMiscItemType(java.lang.String sessionId, AdminMiscItemType[] miTypes) throws KKAdminException
KKAdminIf
insertMiscItemType
in interface KKAdminIf
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
public void updateMiscItemType(java.lang.String sessionId, AdminMiscItemType[] miTypes) throws KKAdminException
KKAdminIf
updateMiscItemType
in interface KKAdminIf
sessionId
- The session id of the logged in usermiTypes
- An array of AdminMiscItemType objects to update.
KKAdminException
public void deleteMiscItem(java.lang.String sessionId, int miId) throws KKAdminException
KKAdminIf
deleteMiscItem
in interface KKAdminIf
sessionId
- The session id of the logged in usermiId
- the id of the miscellaneous item object to delete
KKAdminException
public AdminMiscItemSearchResult getMiscItems(java.lang.String sessionId, AdminSearch search, int offset, int size) throws KKAdminException
KKAdminIf
getMiscItems
in interface KKAdminIf
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
public int insertMiscItems(java.lang.String sessionId, AdminMiscItem[] mItems) throws KKAdminException
KKAdminIf
insertMiscItems
in interface KKAdminIf
sessionId
- The session id of the logged in usermItems
- An array of AdminMiscItem objects to insert.
KKAdminException
public void updateMiscItems(java.lang.String sessionId, AdminMiscItem[] mItems) throws KKAdminException
KKAdminIf
updateMiscItems
in interface KKAdminIf
sessionId
- The session id of the logged in usermItems
- An array of AdminMiscItem objects to update.
KKAdminException
public int copyProductToStore(java.lang.String sessionId, int productId, java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminCopyProductOptions options) throws KKAdminException
KKAdminIf
copyProductToStore
in interface KKAdminIf
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
public AdminProducts getProductsToSynchronize(java.lang.String sessionId, java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminDataDescriptor dataDesc, int languageId, AdminSynchProductsOptions options, AdminProductMgrOptions mgrOptions) throws KKAdminException
KKAdminIf
getProductsToSynchronize
in interface KKAdminIf
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
public java.lang.String getKonaKartAdminVersion() throws KKAdminException
KKAdminIf
getKonaKartAdminVersion
in interface KKAdminIf
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |