Subversion Repositories SmartDukaan

Rev

Rev 27819 | Rev 31762 | 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
 
30416 tejbeer 3
import java.time.LocalDateTime;
24383 amit.gupta 4
import java.util.List;
26418 tejbeer 5
import java.util.Map;
24383 amit.gupta 6
import java.util.Optional;
7
 
24538 govind 8
import javax.swing.SortOrder;
9
 
24383 amit.gupta 10
import org.springframework.stereotype.Repository;
11
 
27819 tejbeer 12
import com.spice.profitmandi.dao.entity.auth.AuthUser;
24383 amit.gupta 13
import com.spice.profitmandi.dao.entity.cs.Ticket;
24699 govind 14
import com.spice.profitmandi.dao.entity.cs.TicketSearchType;
26283 tejbeer 15
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
24439 govind 16
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
30416 tejbeer 17
import com.spice.profitmandi.dao.model.TicketViewModel;
24383 amit.gupta 18
 
19
@Repository
20
public interface TicketRepository {
21
	void persist(Ticket ticket);
26283 tejbeer 22
 
24383 amit.gupta 23
	Ticket selectById(int ticketId);
26283 tejbeer 24
 
24383 amit.gupta 25
	List<Ticket> selectAllByAssignee(int assigneeId, Optional<Boolean> resolved, int offset, int limit);
26283 tejbeer 26
 
27
	List<Ticket> selectAllByCreator(int creatorId, Optional<Boolean> resolved, SortOrder sortOrder, int offset,
28
			int limit);
29
 
24383 amit.gupta 30
	List<Ticket> selectAll(int offset, int limit, Optional<Boolean> resolved);
26283 tejbeer 31
 
24383 amit.gupta 32
	List<Ticket> selectAllEscalated(Optional<Boolean> resolved, int offset, int limit);
26283 tejbeer 33
 
24383 amit.gupta 34
	List<Ticket> selectAllEscalatedByCreator(int fofoId, Optional<Boolean> resolved, int offset, int limit);
26283 tejbeer 35
 
24383 amit.gupta 36
	List<Ticket> selectAllEscalatedByAssignee(int assigneId, Optional<Boolean> resolved, int offset, int limit);
26283 tejbeer 37
 
24417 govind 38
	public long selectAllCountByCreator(int creatorId, Optional<Boolean> resolved);
26283 tejbeer 39
 
40
	public List<Ticket> selectAllByEscalatedUserType(int authUser, EscalationType escalationType, int offset,
41
			int limit);
42
 
43
	public long selectAllCountByEscalatedUserType(int authUser, EscalationType escalationType);
44
 
24439 govind 45
	public Long selectAllCount();
26283 tejbeer 46
 
24538 govind 47
	public List<Ticket> selectAllNotClosedTickets();
26283 tejbeer 48
 
27660 tejbeer 49
	public List<Ticket> selectAllOpenTicketByRetailer(int fofoId);
50
 
26460 amit.gupta 51
	public Map<Integer, Long> selectAllOpenTicketsGroupByRetailer();
26418 tejbeer 52
 
26283 tejbeer 53
	public List<Ticket> selectAllByAssignee(int assigneeId, Optional<Boolean> resolved, SortOrder sortOrder,
54
			TicketSearchType ticketSearchType, int searchTerm, int offset, int limit);
55
 
24543 tejbeer 56
	public List<Ticket> selectAllByTicketIds(List<Integer> ticketIds);
26283 tejbeer 57
 
58
	public long selectAllCountByAssignee(int assigneeId, Optional<Boolean> resolved, TicketSearchType ticketSearchType,
59
			int searchTerm);
60
 
61
	public List<Ticket> selectAllManagerTicket(int authUserId, SortOrder sortOrder, Optional<Boolean> resolved,
62
			TicketSearchType ticketSearchType, int searchTerm, int offset, int limit);
63
 
64
	public long selectAllCountByManagerTicket(int authUserId, Optional<Boolean> resolved,
65
			TicketSearchType ticketSearchType, int searchTerm);
66
 
67
	public List<Ticket> selectAllResolvedMarkedTicketByCreator(int assigneeId);
68
 
69
	public List<Ticket> selectAllNotClosedTicketsWithStatus(ActivityType activityType);
27819 tejbeer 70
 
71
	public Map<AuthUser, Long> selectAllAuthUserTicketCount(Optional<Boolean> resolved);
30416 tejbeer 72
 
73
	public List<TicketViewModel> selectRecentClosedTicket(int fofoId, LocalDateTime startDate);
24439 govind 74
}