Subversion Repositories SmartDukaan

Rev

Rev 31662 | Rev 32923 | 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 {
31762 tejbeer 18
    // Sends happy code to customer
19
    void addActivity(Ticket ticket, Activity activity);
24500 govind 20
 
31762 tejbeer 21
    void createTicket(int fofoId, int categoryId, int subcategoryId, String message) throws ProfitMandiBusinessException;
24500 govind 22
 
31762 tejbeer 23
    void addPartnerToRegion(int regionId, List<Integer> fofoIds);
24500 govind 24
 
31762 tejbeer 25
    Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Integer> subCategoryIds);
24500 govind 26
 
31762 tejbeer 27
    Map<Integer, TicketCategory> getSubCategoryIdAndCategoryMap(List<Integer> subCategoryIds);
24500 govind 28
 
29
 
31762 tejbeer 30
    Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);
24500 govind 31
 
31762 tejbeer 32
    Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);
24500 govind 33
 
31762 tejbeer 34
    List<TicketCategory> getAllTicketCategotyFromSubCategory();
24500 govind 35
 
31762 tejbeer 36
    Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);
25721 tejbeer 37
 
31762 tejbeer 38
    Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);
25721 tejbeer 39
 
31762 tejbeer 40
    Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);
24500 govind 41
 
31762 tejbeer 42
    Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);
25721 tejbeer 43
 
31762 tejbeer 44
    Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);
25721 tejbeer 45
 
31762 tejbeer 46
    Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);
25721 tejbeer 47
 
31762 tejbeer 48
    void updateTicket(int categoryId, int subCategoryId, Ticket ticket, int authUserId, EscalationType escalationType) throws ProfitMandiBusinessException;
25721 tejbeer 49
 
31762 tejbeer 50
    Map<String, Set<String>> getAuthUserPartnerEmailMapping();
26298 tejbeer 51
 
31762 tejbeer 52
    Map<String, Set<Integer>> getAuthUserPartnerIdMapping();
25721 tejbeer 53
 
31762 tejbeer 54
    Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();
28377 tejbeer 55
 
31762 tejbeer 56
    List<String> getAuthUserByPartnerId(int fofoId);
26978 tejbeer 57
 
31762 tejbeer 58
    List<AuthUser> getAuthUserIdByPartnerId(int fofoId);
26298 tejbeer 59
 
31762 tejbeer 60
    Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);
27078 amit.gupta 61
 
31762 tejbeer 62
    Map<Integer, List<Integer>> getL2L1Mapping();
28908 tejbeer 63
 
31762 tejbeer 64
    int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);
28908 tejbeer 65
 
31762 tejbeer 66
    List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType);
27124 amit.gupta 67
 
31762 tejbeer 68
    List<AuthUser> getAuthUserByCategoryId(int categoryId);
27205 amit.gupta 69
 
31762 tejbeer 70
    void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;
27545 tejbeer 71
 
31762 tejbeer 72
    Map<Integer, List<AuthUser>> getAssignedAuthList(List<Ticket> tickets);
27205 amit.gupta 73
 
31762 tejbeer 74
    Map<EscalationType, AuthUser> getAuthUserAndEsclationByPartnerId(int fofoId);
29296 manish 75
 
31762 tejbeer 76
    Activity createActivity(ActivityType activityType, String message, int createdBy);
30003 tejbeer 77
 
31762 tejbeer 78
    List<AuthUser> getAuthUserByCategoryId(int categoryId, EscalationType escalationType);
31152 tejbeer 79
 
31762 tejbeer 80
    Map<Integer, FofoReportingModel> getPartnerIdSalesHeaders();
31152 tejbeer 81
 
31762 tejbeer 82
    Map<String, Set<Integer>> getAuthUserPartnerIdMappingByCategoryIds(List<Integer> categoryIds, boolean activeOnly);
83
 
84
 
24500 govind 85
}