Subversion Repositories SmartDukaan

Rev

Rev 30500 | Rev 33952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30500 Rev 33245
Line 20... Line 20...
20
import java.util.Map;
20
import java.util.Map;
21
import java.util.Set;
21
import java.util.Set;
22
 
22
 
23
@Service
23
@Service
24
public interface InventoryService {
24
public interface InventoryService {
25
	public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds);
25
    public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds) throws ProfitMandiBusinessException;
26
 
26
 
27
	public Map<Integer, String> getCatalogItemDescriptionMap(String brand, int categoryId);
27
	public Map<Integer, String> getCatalogItemDescriptionMap(String brand, int categoryId);
28
 
28
 
29
	public Set<String> getAllTagListingBrands();
29
	public Set<String> getAllTagListingBrands();
30
 
30
 
31
	public Set<String> getAllTagListingBrands(int categoryId);
31
	public Set<String> getAllTagListingBrands(int categoryId);
32
 
32
 
33
	@Cacheable(value = "catalog.categories", cacheManager = "thirtyMinsTimeOutCacheManager")
33
	@Cacheable(value = "catalog.categories", cacheManager = "thirtyMinsTimeOutCacheManager")
34
	List<Category> getAllCategories();
34
    List<Category> getAllCategories() throws ProfitMandiBusinessException;
35
 
35
 
36
	public Map<Integer, String> getModelDescriptionMap(String brand);
36
    public Map<Integer, String> getModelDescriptionMap(String brand) throws ProfitMandiBusinessException;
37
 
37
 
38
	public Map<Integer, String> getModelDescriptionMap(Set<String> brands) throws Exception;
38
	public Map<Integer, String> getModelDescriptionMap(Set<String> brands) throws Exception;
39
 
39
 
40
	public Map<Integer, String> getModelDescriptionMap(int categoryId, List<String> brands) throws Exception;
40
	public Map<Integer, String> getModelDescriptionMap(int categoryId, List<String> brands) throws Exception;
41
 
41
 
42
	public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
42
    public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm) throws ProfitMandiBusinessException;
43
 
43
 
44
	public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
44
	public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
45
 
45
 
46
	public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit,
46
	public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit,
47
																	String searchTerm);
47
                                                                    String searchTerm) throws ProfitMandiBusinessException;
48
 
48
 
49
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm, int catalogItemId,
49
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm, int catalogItemId,
50
										  String brand, boolean accesories) throws ProfitMandiBusinessException;
50
										  String brand, boolean accesories) throws ProfitMandiBusinessException;
51
 
51
 
52
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm, int itemId,
52
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm, int itemId,
Line 99... Line 99...
99
 
99
 
100
	List<InventoryItem> getInventoryInStock(int itemId, LocalDateTime date);
100
	List<InventoryItem> getInventoryInStock(int itemId, LocalDateTime date);
101
 
101
 
102
	public void updatePriceDrop(List<InventoryItem> inventoryItems, float amount);
102
	public void updatePriceDrop(List<InventoryItem> inventoryItems, float amount);
103
 
103
 
104
	public Map<Integer, String> getCatalogIdDescriptionMap(Set<Integer> catalogIds);
104
    public Map<Integer, String> getCatalogIdDescriptionMap(Set<Integer> catalogIds) throws ProfitMandiBusinessException;
105
 
105
 
106
	public void rollbackInventory(int inventoryItemId, int rollbackQuantity, int orderId);
106
	public void rollbackInventory(int inventoryItemId, int rollbackQuantity, int orderId);
107
 
107
 
108
	float getActivatedStockAmount(int fofoId) throws ProfitMandiBusinessException;
108
	float getActivatedStockAmount(int fofoId) throws ProfitMandiBusinessException;
109
 
109