Subversion Repositories SmartDukaan

Rev

Rev 27545 | Rev 28377 | 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
 
24417 govind 3
import java.util.List;
4
import java.util.Map;
25597 amit.gupta 5
import java.util.Set;
24417 govind 6
 
24383 amit.gupta 7
import org.springframework.stereotype.Service;
8
 
24439 govind 9
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
24417 govind 10
import com.spice.profitmandi.common.model.CustomRetailer;
11
import com.spice.profitmandi.dao.entity.auth.AuthUser;
24383 amit.gupta 12
import com.spice.profitmandi.dao.entity.cs.Activity;
24471 govind 13
import com.spice.profitmandi.dao.entity.cs.Position;
14
import com.spice.profitmandi.dao.entity.cs.Region;
24417 govind 15
import com.spice.profitmandi.dao.entity.cs.Ticket;
24500 govind 16
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
24439 govind 17
import com.spice.profitmandi.dao.entity.cs.TicketCategory;
24417 govind 18
import com.spice.profitmandi.dao.entity.cs.TicketSubCategory;
27393 amit.gupta 19
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
26978 tejbeer 20
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
24383 amit.gupta 21
 
22
@Service
23
public interface CsService {
24500 govind 24
	// Sends happy code to customer
27124 amit.gupta 25
	void addActivity(Ticket ticket, Activity activity);
24500 govind 26
 
27
	void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
28
			throws ProfitMandiBusinessException;
29
 
30
	public void addPartnerToRegion(int regionId, List<Integer> fofoIds);
31
 
32
	public Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Ticket> tickets);
33
 
34
	public Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);
35
 
36
	public Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);
37
 
24439 govind 38
	public List<TicketCategory> getAllTicketCategotyFromSubCategory();
24500 govind 39
 
24471 govind 40
	public Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);
24500 govind 41
 
24471 govind 42
	public Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);
24500 govind 43
 
44
	public Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);
25721 tejbeer 45
 
27410 tejbeer 46
	public Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);
25721 tejbeer 47
 
25570 tejbeer 48
	public Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);
24500 govind 49
 
50
	public Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);
25721 tejbeer 51
 
52
	public void updateTicket(int categoryId, int subCategoryId, Ticket ticket) throws ProfitMandiBusinessException;
53
 
25597 amit.gupta 54
	public Map<String, Set<String>> getAuthUserPartnerEmailMapping();
25721 tejbeer 55
 
56
	public Map<String, Set<Integer>> getAuthUserPartnerIdMapping();
57
 
26298 tejbeer 58
	public Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();
59
 
25721 tejbeer 60
	public List<String> getAuthUserByPartnerId(int fofoId);
61
 
26978 tejbeer 62
	public Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);
63
 
26460 amit.gupta 64
	public Map<Integer, List<Integer>> getL2L1Mapping();
26298 tejbeer 65
 
27078 amit.gupta 66
	int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);
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
 
27548 tejbeer 72
	public 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
 
24500 govind 76
}