Subversion Repositories SmartDukaan

Rev

Rev 30219 | Rev 32738 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.user;

import com.spice.profitmandi.common.enumuration.FofoType;
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CustomRetailer;
import com.spice.profitmandi.common.model.MapWrapper;
import com.spice.profitmandi.common.model.UpdateRetailerRequest;
import com.spice.profitmandi.dao.entity.dtr.DistrictMaster;
import com.spice.profitmandi.dao.entity.dtr.User;
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
import com.spice.profitmandi.dao.entity.user.LoginRequestResponseModel;
import com.spice.profitmandi.service.offers.PartnerCriteria;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Service
public interface RetailerService {
        public Map<String, Object> getByEmailIdOrMobileNumber(String emailIdOrMobileNumber)
                        throws ProfitMandiBusinessException;

        public Map<String, Object> updateRetailerDetails(UpdateRetailerRequest updateRetailerRequest)
                        throws ProfitMandiBusinessException;

        public FofoStore createFofoStoreCodeByUserId(int userId, String districtName, String stateName,
                        UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException;

        public List<DistrictMaster> getAllDistrictMaster(String stateName);

        public Map<Integer, CustomRetailer> getFofoRetailers(List<Integer> fofoIds);

        public Map<Integer, CustomRetailer> getFofoRetailers(boolean activeOnly);

        public Map<Integer, CustomRetailer> getAllFofoRetailers();

        public Map<Integer, CustomRetailer> getFofoRetailersPaginated(boolean activeOnly, int offset, int limit,
                        FofoType fofoType);

        public CustomRetailer getFofoRetailer(int fofoId) throws ProfitMandiBusinessException;

        public Map<Integer, String> getAllFofoRetailerIdEmailIdMap();

        public List<MapWrapper<Integer, String>> getAllFofoRetailerIdNameList();

        public Map<Integer, String> getAllFofoRetailerIdEmailIdMap(Set<Integer> retailerIds);

        Map<Integer, String> getAllFofoRetailerIdNameMap(List<Integer> storeIds);

        Map<Integer, String> getAllFofoRetailerIdNameMap();

        Map<Integer, String> getAllFofoRetailerIdUrlMap();

        Map<Integer, CustomRetailer> getFofoRetailerUserId(List<Integer> fofoIds) throws ProfitMandiBusinessException;

        LoginRequestResponseModel registerWebUser(LoginRequestResponseModel loginRequestModel)
                        throws ProfitMandiBusinessException;

        Map<String, Integer> getStoreCodeRetailerMap();

        String getPartnerCriteriaString(PartnerCriteria partnerCriteria);


        User getEmail();

        void update(com.spice.profitmandi.dao.entity.user.User user);

        void updateRetailerEmail(int fofoID, String newEmail) throws ProfitMandiBusinessException;


        //void update(com.spice.profitmandi.dao.entity.user.User user);
//      {
//              String sql="update Emp99 set name='"+p.getName()+"', salary="+p.getSalary()+",designation='"+p.getDesignation()+"' where id="+p.getId()+"";
//              return template.update(sql);
//      }
}