Subversion Repositories SmartDukaan

Rev

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

Rev 32738 Rev 33030
Line 17... Line 17...
17
import java.util.Map;
17
import java.util.Map;
18
import java.util.Set;
18
import java.util.Set;
19
 
19
 
20
@Service
20
@Service
21
public interface RetailerService {
21
public interface RetailerService {
22
	public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
22
    public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
23
			throws ProfitMandiBusinessException;
23
            throws ProfitMandiBusinessException;
24
 
24
 
25
	public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
25
    public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
26
			throws ProfitMandiBusinessException;
26
            throws ProfitMandiBusinessException;
27
 
27
 
28
	public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
28
    public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
29
			UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
29
                                                 UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
30
 
30
 
31
	public List<DistrictMaster> getAllDistrictMaster(String stateName);
31
    public List<DistrictMaster> getAllDistrictMaster(String stateName);
32
 
32
 
33
	public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);
33
    public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);
34
 
34
 
35
	public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);
35
    public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);
36
 
36
 
37
	public Map<Integer, CustomRetailer> getAllFofoRetailers();
37
    public Map<Integer, CustomRetailer> getAllFofoRetailers();
38
 
38
 
39
	public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
39
    public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
40
			FofoType fofoType);
40
                                                                  FofoType fofoType);
41
 
41
 
42
	public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
42
    public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
43
 
43
 
44
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();
44
    public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();
45
 
45
 
46
	public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();
46
    public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();
47
 
47
 
48
	public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);
48
    public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);
49
 
49
 
50
	Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);
50
    Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);
51
 
51
 
52
	Map<Integer, String> getAllFofoRetailerIdNameMap();
52
    Map<Integer, String> getAllFofoRetailerIdNameMap();
53
 
53
 
54
	Map<Integer, String> getAllFofoRetailerIdUrlMap();
54
    Map<Integer, String> getAllFofoRetailerIdUrlMap();
55
 
55
 
56
	Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
56
    Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
57
 
57
 
58
	LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
58
    LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
59
			throws ProfitMandiBusinessException;
59
            throws ProfitMandiBusinessException;
60
 
60
 
61
	Map<String, Integer> getStoreCodeRetailerMap();
61
    Map<String, Integer> getStoreCodeRetailerMap();
62
 
62
 
63
	String getPartnerCriteriaString(PartnerCriteria partnerCriteria);
63
    User getEmail();
64
 
64
 
-
 
65
    void update(com.spice.profitmandi.dao.entity.user.User user);
65
 
66
 
66
	User getEmail();
67
    void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;
67
 
68
 
68
	void update(com.spice.profitmandi.dao.entity.user.User user);
69
    List<RetailerContact> getContactsByFofoId(int fofoId, boolean activeOnly) throws ProfitMandiBusinessException;
69
 
70
 
70
	void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;
-
 
71
 
71
 
72
	List<RetailerContact> getContactsByFofoId(int fofoId, boolean activeOnly) throws ProfitMandiBusinessException;
-
 
73
 
-
 
74
 
-
 
75
	//void update(com.spice.profitmandi.dao.entity.user.User user);
72
    //void update(com.spice.profitmandi.dao.entity.user.User user);
76
//	{
73
//	{
77
//		String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";
74
//		String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";
78
//		return template.update(sql);
75
//		return template.update(sql);
79
//	}
76
//	}
80
}
77
}