Subversion Repositories SmartDukaan

Rev

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

Rev 27877 Rev 30099
Line 4... Line 4...
4
import java.util.Map;
4
import java.util.Map;
5
import java.util.Set;
5
import java.util.Set;
6
 
6
 
7
import org.springframework.stereotype.Service;
7
import org.springframework.stereotype.Service;
8
 
8
 
-
 
9
import com.spice.profitmandi.common.enumuration.FofoType;
9
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
10
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
10
import com.spice.profitmandi.common.model.CustomRetailer;
11
import com.spice.profitmandi.common.model.CustomRetailer;
11
import com.spice.profitmandi.common.model.MapWrapper;
12
import com.spice.profitmandi.common.model.MapWrapper;
12
import com.spice.profitmandi.common.model.UpdateRetailerRequest;
13
import com.spice.profitmandi.common.model.UpdateRetailerRequest;
13
import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;
14
import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;
Line 15... Line 16...
15
import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;
16
import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;
16
import com.spice.profitmandi.service.offers.PartnerCriteria;
17
import com.spice.profitmandi.service.offers.PartnerCriteria;
17
 
18
 
18
@Service
19
@Service
19
public interface RetailerService {
20
public interface RetailerService {
20
	public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber) throws ProfitMandiBusinessException;
21
	public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
-
 
22
			throws ProfitMandiBusinessException;
-
 
23
 
21
	public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
24
	public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
-
 
25
			throws ProfitMandiBusinessException;
-
 
26
 
22
	public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
27
	public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
-
 
28
			UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
-
 
29
 
23
	public List<DistrictMaster> getAllDistrictMaster(String stateName);
30
	public List<DistrictMaster> getAllDistrictMaster(String stateName);
-
 
31
 
24
	public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);
32
	public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);
-
 
33
 
25
	public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);
34
	public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);
26
 
35
 
27
	public Map<Integer, CustomRetailer> getAllFofoRetailers();
36
	public Map<Integer, CustomRetailer> getAllFofoRetailers();
28
 
37
 
-
 
38
	public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
-
 
39
			FofoType fofoType);
-
 
40
 
29
	public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
41
	public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
-
 
42
 
30
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();
43
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();
-
 
44
 
31
	public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();
45
	public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();
-
 
46
 
32
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);
47
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);
-
 
48
 
33
	Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);
49
	Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);
-
 
50
 
34
	Map<Integer, String> getAllFofoRetailerIdNameMap();
51
	Map<Integer, String> getAllFofoRetailerIdNameMap();
-
 
52
 
35
	Map<Integer, String> getAllFofoRetailerIdUrlMap();
53
	Map<Integer, String> getAllFofoRetailerIdUrlMap();
36
 
54
 
37
	Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
55
	Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
38
 
56
 
39
	LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
57
	LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
40
			throws ProfitMandiBusinessException;
58
			throws ProfitMandiBusinessException;
-
 
59
 
41
	Map<String, Integer> getStoreCodeRetailerMap();
60
	Map<String, Integer> getStoreCodeRetailerMap();
-
 
61
 
42
	String getPartnerCriteriaString(PartnerCriteria partnerCriteria);
62
	String getPartnerCriteriaString(PartnerCriteria partnerCriteria);
43
}
63
}