Subversion Repositories SmartDukaan

Rev

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