Rev 6096 | Rev 6838 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.catalog.dashboard.client;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 java.util.List;import java.util.Map;import com.google.gwt.user.client.rpc.AsyncCallback;/*** 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 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);}