Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24383 amit.gupta 1
package com.spice.profitmandi.dao.repository.cs;
2
 
24439 govind 3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
24417 govind 4
import com.spice.profitmandi.common.model.CustomRetailer;
5
import com.spice.profitmandi.dao.entity.auth.AuthUser;
29927 amit.gupta 6
import com.spice.profitmandi.dao.entity.cs.*;
27393 amit.gupta 7
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
26978 tejbeer 8
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
30003 tejbeer 9
import com.spice.profitmandi.dao.model.FofoReportingModel;
29927 amit.gupta 10
import org.springframework.stereotype.Service;
24383 amit.gupta 11
 
29927 amit.gupta 12
import java.util.List;
13
import java.util.Map;
14
import java.util.Set;
15
 
24383 amit.gupta 16
@Service
17
public interface CsService {
24500 govind 18
	// Sends happy code to customer
27124 amit.gupta 19
	void addActivity(Ticket ticket, Activity activity);
24500 govind 20
 
21
	void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
22
			throws ProfitMandiBusinessException;
23
 
31662 amit.gupta 24
	void addPartnerToRegion(int regionId, List<Integer> fofoIds);
24500 govind 25
 
31662 amit.gupta 26
	Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Ticket> tickets);
24500 govind 27
 
31662 amit.gupta 28
	Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);
24500 govind 29
 
31662 amit.gupta 30
	Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);
24500 govind 31
 
31662 amit.gupta 32
	List<TicketCategory> getAllTicketCategotyFromSubCategory();
24500 govind 33
 
31662 amit.gupta 34
	Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);
24500 govind 35
 
31662 amit.gupta 36
	Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);
24500 govind 37
 
31662 amit.gupta 38
	Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);
25721 tejbeer 39
 
31662 amit.gupta 40
	Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);
25721 tejbeer 41
 
31662 amit.gupta 42
	Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);
24500 govind 43
 
31662 amit.gupta 44
	Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);
25721 tejbeer 45
 
31662 amit.gupta 46
	void updateTicket(int categoryId, int subCategoryId, Ticket ticket) throws ProfitMandiBusinessException;
25721 tejbeer 47
 
31662 amit.gupta 48
	Map<String, Set<String>> getAuthUserPartnerEmailMapping();
25721 tejbeer 49
 
31662 amit.gupta 50
	Map<String, Set<Integer>> getAuthUserPartnerIdMapping();
25721 tejbeer 51
 
31662 amit.gupta 52
	Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();
26298 tejbeer 53
 
31662 amit.gupta 54
	List<String> getAuthUserByPartnerId(int fofoId);
25721 tejbeer 55
 
31662 amit.gupta 56
	List<AuthUser> getAuthUserIdByPartnerId(int fofoId);
28377 tejbeer 57
 
31662 amit.gupta 58
	Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);
26978 tejbeer 59
 
31662 amit.gupta 60
	Map<Integer, List<Integer>> getL2L1Mapping();
26298 tejbeer 61
 
27078 amit.gupta 62
	int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);
63
 
28977 manish 64
	List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType);
28908 tejbeer 65
 
31662 amit.gupta 66
	List<AuthUser> getAuthUserByCategoryId(int categoryId);
28908 tejbeer 67
 
27124 amit.gupta 68
	void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;
69
 
27205 amit.gupta 70
	Map<Integer, List<AuthUser>> getAssignedAuthList(List<Ticket> tickets);
71
 
31662 amit.gupta 72
	Map<EscalationType, AuthUser> getAuthUserAndEsclationByPartnerId(int fofoId);
27545 tejbeer 73
 
27393 amit.gupta 74
	Activity createActivity(ActivityType activityType, String message, int createdBy);
27205 amit.gupta 75
 
29927 amit.gupta 76
	List<AuthUser> getAuthUserByCategoryId(int categoryId, EscalationType escalationType);
29296 manish 77
 
31662 amit.gupta 78
	Map<Integer, FofoReportingModel> getPartnerIdSalesHeaders();
30003 tejbeer 79
 
31662 amit.gupta 80
	Map<String, Set<Integer>> getAuthUserPartnerIdMappingByCategoryIds(List<Integer> categoryIds, boolean activeOnly);
31152 tejbeer 81
 
82
 
24500 govind 83
}