Subversion Repositories SmartDukaan

Rev

Rev 2126 | Rev 2359 | 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 java.util.List;
import java.util.Map;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("catalog")
public interface CatalogService extends RemoteService {
    boolean updateItem(Item item);

    List<Item> getAllItems();
    List<Item> getAllPhasedOutItems();
    List<Item> getAllPausedItems();
    List<Item> getAllActiveItems();
    List<Item> getBestDeals();
    List<Item> getBestSellers();
    List<Item> getLatestArrivals();
    
    Item getItem(long itemId);
    
    Map<Long,String> getAllVendors();
    Map<Long,String> getAllWarehouses();
    
    void phaseoutItem(long itemId);
    void activateItem(long itemId);
    void pauseItem(long itemId);
    void markInProcess(long itemId);
    long addItem(Item item);
    
    long checkSimilarItem(String productGroup, String brand, String modelNumber, String color);
}