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