Subversion Repositories SmartDukaan

Rev

Rev 29296 | Rev 30003 | 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;
29927 amit.gupta 9
import org.springframework.stereotype.Service;
24383 amit.gupta 10
 
29927 amit.gupta 11
import java.util.List;
12
import java.util.Map;
13
import java.util.Set;
14
 
24383 amit.gupta 15
@Service
16
public interface CsService {
24500 govind 17
	// Sends happy code to customer
27124 amit.gupta 18
	void addActivity(Ticket ticket, Activity activity);
24500 govind 19
 
20
	void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
21
			throws ProfitMandiBusinessException;
22
 
23
	public void addPartnerToRegion(int regionId, List<Integer> fofoIds);
24
 
25
	public Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Ticket> tickets);
26
 
27
	public Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);
28
 
29
	public Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);
30
 
24439 govind 31
	public List<TicketCategory> getAllTicketCategotyFromSubCategory();
24500 govind 32
 
24471 govind 33
	public Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);
24500 govind 34
 
24471 govind 35
	public Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);
24500 govind 36
 
37
	public Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);
25721 tejbeer 38
 
27410 tejbeer 39
	public Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);
25721 tejbeer 40
 
25570 tejbeer 41
	public Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);
24500 govind 42
 
43
	public Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);
25721 tejbeer 44
 
45
	public void updateTicket(int categoryId, int subCategoryId, Ticket ticket) throws ProfitMandiBusinessException;
46
 
25597 amit.gupta 47
	public Map<String, Set<String>> getAuthUserPartnerEmailMapping();
25721 tejbeer 48
 
49
	public Map<String, Set<Integer>> getAuthUserPartnerIdMapping();
50
 
26298 tejbeer 51
	public Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();
52
 
25721 tejbeer 53
	public List<String> getAuthUserByPartnerId(int fofoId);
54
 
28377 tejbeer 55
	public List<AuthUser> getAuthUserIdByPartnerId(int fofoId);
56
 
26978 tejbeer 57
	public Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);
58
 
26460 amit.gupta 59
	public Map<Integer, List<Integer>> getL2L1Mapping();
26298 tejbeer 60
 
27078 amit.gupta 61
	int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);
62
 
28977 manish 63
	List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType);
28908 tejbeer 64
 
65
	public List<AuthUser> getAuthUserByCategoryId(int categoryId);
66
 
27124 amit.gupta 67
	void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;
68
 
27205 amit.gupta 69
	Map<Integer, List<AuthUser>> getAssignedAuthList(List<Ticket> tickets);
70
 
27548 tejbeer 71
	public Map<EscalationType, AuthUser> getAuthUserAndEsclationByPartnerId(int fofoId);
27545 tejbeer 72
 
27393 amit.gupta 73
	Activity createActivity(ActivityType activityType, String message, int createdBy);
27205 amit.gupta 74
 
29927 amit.gupta 75
	List<AuthUser> getAuthUserByCategoryId(int categoryId, EscalationType escalationType);
29296 manish 76
 
24500 govind 77
}