Subversion Repositories SmartDukaan

Rev

Rev 1992 | Rev 2105 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1961 ankur.sing 1
package in.shop2020.catalog.dashboard.client;
2
 
3
 
4
import in.shop2020.catalog.dashboard.shared.Item;
5
 
6
import java.util.List;
2066 ankur.sing 7
import java.util.Map;
1961 ankur.sing 8
 
9
import com.google.gwt.user.client.rpc.RemoteService;
10
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
11
 
12
@RemoteServiceRelativePath("catalog")
13
public interface CatalogService extends RemoteService {
1992 ankur.sing 14
    boolean updateItem(Item item);
1961 ankur.sing 15
    List<Item> getAllItems();
16
    List<Item> getBestDeals();
17
    List<Item> getBestSellers();
18
    List<Item> getLatestArrivals();
19
    Item getItem(long itemId);
20
    void reduceReservationCount(long itemId, long warehouseId, double quantity);
2066 ankur.sing 21
 
22
    Map<Long,String> getAllVendors();
23
    Map<Long,String> getAllWarehouses();
1961 ankur.sing 24
}