Rev 18150 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.catalog.dashboard.client;import java.util.List;import java.util.Map;import com.google.gwt.user.client.rpc.AsyncCallback;import in.shop2020.catalog.dashboard.shared.BulkItemPricing;import in.shop2020.catalog.dashboard.shared.CategoryHsnCode;import in.shop2020.catalog.dashboard.shared.Item;import in.shop2020.catalog.dashboard.shared.ItemInventory;import in.shop2020.catalog.dashboard.shared.ItemStatus;import in.shop2020.catalog.dashboard.shared.ItemWarehouse;import in.shop2020.catalog.dashboard.shared.StateVat;/*** The async counterpart of <code>CatalogService</code>.*/public interface CatalogServiceAsync {void updateItem(Item item, AsyncCallback<Boolean> callback);void updateItemOnProduction(Item item, AsyncCallback<String> callback);void getItemCountByStatus(boolean useStatus, ItemStatus itemStatus, AsyncCallback<Integer> callback);void getAllItems(int start, int limit, AsyncCallback<List<Item>> callback);void getAllPhasedOutItems(int start, int limit, AsyncCallback<List<Item>> callback);void getAllPausedItems(int start, int limit, AsyncCallback<List<Item>> callback);void getAllActiveItems(int start, int limit, AsyncCallback<List<Item>> callback);void getAllInProcessItems(int start, int limit, AsyncCallback<List<Item>> callback);void getAllContentCompleteItems(int start, int limit, AsyncCallback<List<Item>> callback);void getBestDeals(AsyncCallback<List<Item>> callback);void getBestSellers(AsyncCallback<List<Item>> callback);void getLatestArrivals(AsyncCallback<List<Item>> callback);void getRiskyItems(AsyncCallback<List<Item>> callback);void searchItems(int start, int limit, List<String> searchTerms, AsyncCallback<List<Item>> callback);void getSearchResultCount(List<String> searchTerms, AsyncCallback<Integer> callback);void getItem(long itemId, AsyncCallback<Item> callback);void getAllVendors(AsyncCallback<Map<Long,String>> callback);void getAllWarehouses(AsyncCallback<Map<Long,String>> callback);void getShippingWarehouses(AsyncCallback<Map<Long,String>> callback);void getAllSources(AsyncCallback<Map<Long,String>> callback);void phaseoutItem(long itemId, AsyncCallback<Void> callback);void activateItem(long itemId, AsyncCallback<Void> callback);void pauseItem(long itemId, AsyncCallback<Void> callback);void markInProcess(long itemId, AsyncCallback<Void> callback);void addItem(Item item, AsyncCallback<Long> callback);void checkSimilarItem(String brand, String modelNumber, String modelName, String color, AsyncCallback<Long> callback);void changeItemRiskyFlag(long itemId, boolean risky, AsyncCallback<Boolean> callback);void deleteSimilarItem(long itemId, long catalogItemId, AsyncCallback<Boolean> callback);void addSimilarItem(long itemId, long catalogItemId, AsyncCallback<Item> callback);void getProdItemInventory(long itemId, AsyncCallback<Map<Long, ItemInventory>> asyncCallback);void addAuthorizationLog(long itemId, String username, String message, AsyncCallback<Boolean> asyncCallback);void getConfigdataforPriceCompare(AsyncCallback<Map<String, String>> asyncCallback);void getAllCategories(AsyncCallback<List<String>> asyncCallback);void getAllCategoriesMap(AsyncCallback<Map<Long, String>> asyncCallback);void getAllBrands(AsyncCallback<List<String>> asyncCallback);void deleteVoucher(Long catalogItemId, Long voucherTypeValue, AsyncCallback<Boolean> asyncCallback);void addVoucher(Long catalogItemId, Long voucherTypeValue, long voucherAmount, AsyncCallback<Boolean> asyncCallback);void getvoucherTypes(AsyncCallback<Map<Long, String>> asyncCallback);void getConfigforentityIdMandatory(AsyncCallback<Boolean> asyncCallback);void checkEntityId(long entityId, AsyncCallback<Boolean> asyncCallback);void updateExpectedDelayOnProd(Item item, AsyncCallback<String> callback);void getInventoryOutofSyncItems(int offset, int limit,AsyncCallback<List<Item>> asyncCallback);void getInventoryOutofSyncItemsCount(AsyncCallback<Integer> asyncCallback);void getMonitoredWarehouseIdsForVendors(List<Long> vendorIds,AsyncCallback<List<Long>> asyncCallback);void getignoredInventoryUpdateItemsIdsWarehouseIds(AsyncCallback<List<ItemWarehouse>> asyncCallback);void addtoIgnoredInventoryUpdateItemsIdsWarehouseIds(long itemId,long warehouseId, AsyncCallback<Boolean> asyncCallback);void deleteFromIgnoredInventoryUpdateItemsIdsWarehouseIds(long itemId,long warehouseId, AsyncCallback<Boolean> asyncCallback);void getAllInsurers(AsyncCallback<Map<Long,String>> callback);void getVatRates(long itemId, long categoryId, AsyncCallback<Map<Long,Double>> callback);void getPrivateDealItems(int offset,int limit,AsyncCallback<List<Item>> asyncCallback);void getPrivateDealItemsCount(AsyncCallback<Integer> asyncCallback);void getAllStatesMap(AsyncCallback<Map<Long, String>> callback);void markPartiallyActive(long id, Long category, AsyncCallback<Boolean> asyncCallback);void updateItemStateVat(long id, List<StateVat> svs, AsyncCallback<Boolean> asyncCallback);void addBulkPricingForItem(BulkItemPricing bulkItemPricing, AsyncCallback<BulkItemPricing> callback);void getBulkPricingByItemId(long item_id, AsyncCallback<List<BulkItemPricing>> callback);void deleteBulkPricingForItemById(long id, AsyncCallback<Boolean> asyncCallback);void deleteBulkPricingForItem(long itemId, AsyncCallback<Boolean> asyncCallback);void getHsnCodesByCategoryId(int categoryId, AsyncCallback<List<CategoryHsnCode>> asyncCallback);}