Subversion Repositories SmartDukaan

Rev

Rev 36633 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36633 Rev 36702
Line 21... Line 21...
21
public interface OfferService {
21
public interface OfferService {
22
	void evictOfferCaches(int offerId);
22
	void evictOfferCaches(int offerId);
23
 
23
 
24
	void evictOfferDefinitionCache(int offerId);
24
	void evictOfferDefinitionCache(int offerId);
25
 
25
 
-
 
26
	/**
-
 
27
	 * Evicts month-level offer caches: monthOfferIds (admin listing) and
-
 
28
	 * catalog.published_yearmonth (partner-facing published offers).
-
 
29
	 * Use when offers are created/deleted and the month listing needs refresh.
-
 
30
	 */
-
 
31
	void evictMonthCaches(YearMonth yearMonth);
-
 
32
 
26
	Set<Integer> getMonthOfferIds(YearMonth yearMonth) throws ProfitMandiBusinessException;
33
	Set<Integer> getMonthOfferIds(YearMonth yearMonth) throws ProfitMandiBusinessException;
27
 
34
 
28
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
35
	void addOfferService(CreateOfferRequest createOfferRequest) throws ProfitMandiBusinessException;
29
 
36
 
30
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;
37
    List<CreateOfferRequest> getPublishedOffers(int fofoId, YearMonth yearMonth) throws ProfitMandiBusinessException;