Subversion Repositories SmartDukaan

Rev

Rev 33041 | Rev 33204 | 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;
32923 ranu 8
import com.spice.profitmandi.dao.enumuration.auth.CollectionRemark;
26978 tejbeer 9
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
32923 ranu 10
import com.spice.profitmandi.dao.model.ActivityMediaModel;
33161 ranu 11
import com.spice.profitmandi.dao.model.FofoRBMReportingModel;
30003 tejbeer 12
import com.spice.profitmandi.dao.model.FofoReportingModel;
29927 amit.gupta 13
import org.springframework.stereotype.Service;
24383 amit.gupta 14
 
29927 amit.gupta 15
import java.util.List;
16
import java.util.Map;
17
import java.util.Set;
18
 
24383 amit.gupta 19
@Service
20
public interface CsService {
31762 tejbeer 21
    // Sends happy code to customer
22
    void addActivity(Ticket ticket, Activity activity);
24500 govind 23
 
31762 tejbeer 24
    void createTicket(int fofoId, int categoryId, int subcategoryId, String message) throws ProfitMandiBusinessException;
24500 govind 25
 
32923 ranu 26
    void createTicket(int fofoId, int categoryId, int subcategoryId, String message, int createdByAuthId) throws ProfitMandiBusinessException;
27
 
28
    void createTicketWithMedia(int fofoId, int categoryId, int subcategoryId, String message, int createdByAuthId, ActivityMediaModel selectedRecording) throws ProfitMandiBusinessException;
29
 
30
    void createTicketRemarkEscalation(int fofoId, int authId, int categoryId, int subcategoryId, String message, CollectionRemark remark) throws ProfitMandiBusinessException;
31
 
31762 tejbeer 32
    void addPartnerToRegion(int regionId, List<Integer> fofoIds);
24500 govind 33
 
31762 tejbeer 34
    Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Integer> subCategoryIds);
24500 govind 35
 
31762 tejbeer 36
    Map<Integer, TicketCategory> getSubCategoryIdAndCategoryMap(List<Integer> subCategoryIds);
24500 govind 37
 
38
 
31762 tejbeer 39
    Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);
24500 govind 40
 
31762 tejbeer 41
    Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);
24500 govind 42
 
31762 tejbeer 43
    List<TicketCategory> getAllTicketCategotyFromSubCategory();
24500 govind 44
 
31762 tejbeer 45
    Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);
25721 tejbeer 46
 
31762 tejbeer 47
    Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);
25721 tejbeer 48
 
31762 tejbeer 49
    Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);
24500 govind 50
 
31762 tejbeer 51
    Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);
25721 tejbeer 52
 
31762 tejbeer 53
    Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);
25721 tejbeer 54
 
31762 tejbeer 55
    Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);
25721 tejbeer 56
 
31762 tejbeer 57
    void updateTicket(int categoryId, int subCategoryId, Ticket ticket, int authUserId, EscalationType escalationType) throws ProfitMandiBusinessException;
25721 tejbeer 58
 
31762 tejbeer 59
    Map<String, Set<String>> getAuthUserPartnerEmailMapping();
26298 tejbeer 60
 
31762 tejbeer 61
    Map<String, Set<Integer>> getAuthUserPartnerIdMapping();
25721 tejbeer 62
 
31762 tejbeer 63
    Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();
28377 tejbeer 64
 
31762 tejbeer 65
    List<String> getAuthUserByPartnerId(int fofoId);
26978 tejbeer 66
 
31762 tejbeer 67
    List<AuthUser> getAuthUserIdByPartnerId(int fofoId);
26298 tejbeer 68
 
33041 ranu 69
    List<AuthUser> getAuthUserIdByPartnerId(int fofoId, EscalationType... escalationTypes);
70
 
31762 tejbeer 71
    Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);
27078 amit.gupta 72
 
31762 tejbeer 73
    Map<Integer, List<Integer>> getL2L1Mapping();
28908 tejbeer 74
 
31762 tejbeer 75
    int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);
28908 tejbeer 76
 
31762 tejbeer 77
    List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType);
27124 amit.gupta 78
 
31762 tejbeer 79
    List<AuthUser> getAuthUserByCategoryId(int categoryId);
27205 amit.gupta 80
 
31762 tejbeer 81
    void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;
27545 tejbeer 82
 
31762 tejbeer 83
    Map<Integer, List<AuthUser>> getAssignedAuthList(List<Ticket> tickets);
27205 amit.gupta 84
 
31762 tejbeer 85
    Map<EscalationType, AuthUser> getAuthUserAndEsclationByPartnerId(int fofoId);
29296 manish 86
 
31762 tejbeer 87
    Activity createActivity(ActivityType activityType, String message, int createdBy);
30003 tejbeer 88
 
31762 tejbeer 89
    List<AuthUser> getAuthUserByCategoryId(int categoryId, EscalationType escalationType);
31152 tejbeer 90
 
31762 tejbeer 91
    Map<Integer, FofoReportingModel> getPartnerIdSalesHeaders();
31152 tejbeer 92
 
33161 ranu 93
    Map<Integer, FofoRBMReportingModel> getPartnerIdRBMHeaders();
94
 
31762 tejbeer 95
    Map<String, Set<Integer>> getAuthUserPartnerIdMappingByCategoryIds(List<Integer> categoryIds, boolean activeOnly);
96
 
97
 
24500 govind 98
}