Subversion Repositories SmartDukaan

Rev

Rev 27545 | Rev 28857 | 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 java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.stereotype.Service;

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.Activity;
import com.spice.profitmandi.dao.entity.cs.Position;
import com.spice.profitmandi.dao.entity.cs.Region;
import com.spice.profitmandi.dao.entity.cs.Ticket;
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
import com.spice.profitmandi.dao.entity.cs.TicketCategory;
import com.spice.profitmandi.dao.entity.cs.TicketSubCategory;
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;

@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;

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

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

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

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

        public List<TicketCategory> getAllTicketCategotyFromSubCategory();

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

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

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

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

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

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

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

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

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

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

        public List<String> getAuthUserByPartnerId(int fofoId);

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

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

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

        void assignTicket(Ticket ticket) throws ProfitMandiBusinessException;

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

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

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

}