Subversion Repositories SmartDukaan

Rev

Rev 2126 | Rev 2359 | 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);
2208 ankur.sing 15
 
1961 ankur.sing 16
    List<Item> getAllItems();
2208 ankur.sing 17
    List<Item> getAllPhasedOutItems();
18
    List<Item> getAllPausedItems();
2119 ankur.sing 19
    List<Item> getAllActiveItems();
1961 ankur.sing 20
    List<Item> getBestDeals();
21
    List<Item> getBestSellers();
22
    List<Item> getLatestArrivals();
2208 ankur.sing 23
 
1961 ankur.sing 24
    Item getItem(long itemId);
2066 ankur.sing 25
 
26
    Map<Long,String> getAllVendors();
27
    Map<Long,String> getAllWarehouses();
2105 ankur.sing 28
 
29
    void phaseoutItem(long itemId);
30
    void activateItem(long itemId);
2126 ankur.sing 31
    void pauseItem(long itemId);
32
    void markInProcess(long itemId);
2105 ankur.sing 33
    long addItem(Item item);
2119 ankur.sing 34
 
35
    long checkSimilarItem(String productGroup, String brand, String modelNumber, String color);
1961 ankur.sing 36
}