Subversion Repositories SmartDukaan

Rev

Rev 32738 | Rev 33247 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22980 ashik.ali 1
package com.spice.profitmandi.service.user;
2
 
30099 tejbeer 3
import com.spice.profitmandi.common.enumuration.FofoType;
22980 ashik.ali 4
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
23509 amit.gupta 5
import com.spice.profitmandi.common.model.CustomRetailer;
23781 ashik.ali 6
import com.spice.profitmandi.common.model.MapWrapper;
23025 ashik.ali 7
import com.spice.profitmandi.common.model.UpdateRetailerRequest;
23329 ashik.ali 8
import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;
32668 raveendra. 9
import com.spice.profitmandi.dao.entity.dtr.User;
23378 ashik.ali 10
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
32738 amit.gupta 11
import com.spice.profitmandi.dao.entity.fofo.RetailerContact;
26522 amit.gupta 12
import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;
27877 amit.gupta 13
import com.spice.profitmandi.service.offers.PartnerCriteria;
32668 raveendra. 14
import org.springframework.stereotype.Service;
22980 ashik.ali 15
 
32668 raveendra. 16
import java.util.List;
17
import java.util.Map;
18
import java.util.Set;
19
 
22980 ashik.ali 20
@Service
21
public interface RetailerService {
33030 amit.gupta 22
    public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
23
            throws ProfitMandiBusinessException;
30099 tejbeer 24
 
33030 amit.gupta 25
    public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
26
            throws ProfitMandiBusinessException;
30099 tejbeer 27
 
33030 amit.gupta 28
    public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
29
                                                 UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;
30099 tejbeer 30
 
33030 amit.gupta 31
    public List<DistrictMaster> getAllDistrictMaster(String stateName);
30099 tejbeer 32
 
33030 amit.gupta 33
    public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);
30099 tejbeer 34
 
33030 amit.gupta 35
    public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);
27861 tejbeer 36
 
33030 amit.gupta 37
    public Map<Integer, CustomRetailer> getAllFofoRetailers();
27861 tejbeer 38
 
33030 amit.gupta 39
    public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
40
                                                                  FofoType fofoType);
30099 tejbeer 41
 
33030 amit.gupta 42
    public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;
30099 tejbeer 43
 
33030 amit.gupta 44
    public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();
30099 tejbeer 45
 
33030 amit.gupta 46
    public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();
30099 tejbeer 47
 
33030 amit.gupta 48
    public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);
30099 tejbeer 49
 
33030 amit.gupta 50
    Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);
30099 tejbeer 51
 
33030 amit.gupta 52
    Map<Integer, String> getAllFofoRetailerIdNameMap();
30099 tejbeer 53
 
33030 amit.gupta 54
    Map<Integer, String> getAllFofoRetailerIdUrlMap();
27861 tejbeer 55
 
33030 amit.gupta 56
    Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;
27861 tejbeer 57
 
33030 amit.gupta 58
    LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
59
            throws ProfitMandiBusinessException;
30099 tejbeer 60
 
33030 amit.gupta 61
    Map<String, Integer> getStoreCodeRetailerMap();
30099 tejbeer 62
 
33030 amit.gupta 63
    User getEmail();
32668 raveendra. 64
 
33030 amit.gupta 65
    void update(com.spice.profitmandi.dao.entity.user.User user);
32668 raveendra. 66
 
33030 amit.gupta 67
    void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;
32668 raveendra. 68
 
33030 amit.gupta 69
    List<RetailerContact> getContactsByFofoId(int fofoId, boolean activeOnly) throws ProfitMandiBusinessException;
32668 raveendra. 70
 
71
 
33030 amit.gupta 72
    //void update(com.spice.profitmandi.dao.entity.user.User user);
32668 raveendra. 73
//	{
74
//		String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";
75
//		return template.update(sql);
76
//	}
22980 ashik.ali 77
}