Subversion Repositories SmartDukaan

Rev

Rev 31518 | Rev 31762 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.repository.cs;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.CustomRetailer;
import com.spice.profitmandi.dao.entity.auth.AuthUser;
import com.spice.profitmandi.dao.entity.cs.*;
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
import com.spice.profitmandi.dao.model.FofoReportingModel;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Service
public interface CsService {
        // Sends happy code to customer
        void addActivity(Ticket ticket, Activity activity);

        void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
                        throws ProfitMandiBusinessException;

        void addPartnerToRegion(int regionId, List<Integer> fofoIds);

        Map<Integer, TicketSubCategory> getSubCategoryIdAndSubCategoryMap(List<Ticket> tickets);

        Map<Integer, AuthUser> getAuthUserIdAndAuthUserMap(List<TicketAssigned> ticketAssigneds);

        Map<Integer, CustomRetailer> getPartnerByFofoIds(List<Ticket> tickets);

        List<TicketCategory> getAllTicketCategotyFromSubCategory();

        Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions);

        Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions);

        Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions);

        Map<Integer, List<CustomRetailer>> getRegionPartners(List<Position> position);

        Map<Integer, List<CustomRetailer>> getPositionCustomRetailerMap(List<Position> position);

        Map<Integer, AuthUser> getTicketIdAndAuthUserMapUsingTickets(List<Ticket> tickets);

        void updateTicket(int categoryId, int subCategoryId, Ticket ticket) throws ProfitMandiBusinessException;

        Map<String, Set<String>> getAuthUserPartnerEmailMapping();

        Map<String, Set<Integer>> getAuthUserPartnerIdMapping();

        Map<Integer, List<Integer>> getAuthUserIdPartnerIdMapping();

        List<String> getAuthUserByPartnerId(int fofoId);

        List<AuthUser> getAuthUserIdByPartnerId(int fofoId);

        Map<EscalationType, String> getAuthUserAndEsclationTypeByPartnerId(int fofoId);

        Map<Integer, List<Integer>> getL2L1Mapping();

        int getAuthUserId(int categoryId, EscalationType escalationType, int fofoId);

        List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType);

        List<AuthUser> getAuthUserByCategoryId(int categoryId);

        void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;

        Map<Integer, List<AuthUser>> getAssignedAuthList(List<Ticket> tickets);

        Map<EscalationType, AuthUser> getAuthUserAndEsclationByPartnerId(int fofoId);

        Activity createActivity(ActivityType activityType, String message, int createdBy);

        List<AuthUser> getAuthUserByCategoryId(int categoryId, EscalationType escalationType);

        Map<Integer, FofoReportingModel> getPartnerIdSalesHeaders();

        Map<String, Set<Integer>> getAuthUserPartnerIdMappingByCategoryIds(List<Integer> categoryIds, boolean activeOnly);


}