Subversion Repositories SmartDukaan

Rev

Rev 24570 | Rev 24747 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24570 Rev 24699
Line 6... Line 6...
6
import javax.swing.SortOrder;
6
import javax.swing.SortOrder;
7
 
7
 
8
import org.springframework.stereotype.Repository;
8
import org.springframework.stereotype.Repository;
9
 
9
 
10
import com.spice.profitmandi.dao.entity.cs.Ticket;
10
import com.spice.profitmandi.dao.entity.cs.Ticket;
-
 
11
import com.spice.profitmandi.dao.entity.cs.TicketSearchType;
11
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
12
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
12
 
13
 
13
@Repository
14
@Repository
14
public interface TicketRepository {
15
public interface TicketRepository {
15
	void persist(Ticket ticket);
16
	void persist(Ticket ticket);
16
	Ticket selectById(int ticketId);
17
	Ticket selectById(int ticketId);
17
	List<Ticket> selectAllByAssignee(int assigneeId, Optional<Boolean> resolved, int offset, int limit);
18
	List<Ticket> selectAllByAssignee(int assigneeId, Optional<Boolean> resolved, int offset, int limit);
18
	List<Ticket> selectAllByCreator(int creatorId, Optional<Boolean> resolved,int offset, int limit);
19
	List<Ticket> selectAllByCreator(int creatorId, Optional<Boolean> resolved,SortOrder sortOrder,int offset, int limit);
19
	List<Ticket> selectAll(int offset, int limit, Optional<Boolean> resolved);
20
	List<Ticket> selectAll(int offset, int limit, Optional<Boolean> resolved);
20
	List<Ticket> selectAllEscalated(Optional<Boolean> resolved, int offset, int limit);
21
	List<Ticket> selectAllEscalated(Optional<Boolean> resolved, int offset, int limit);
21
	List<Ticket> selectAllEscalatedByCreator(int fofoId, Optional<Boolean> resolved, int offset, int limit);
22
	List<Ticket> selectAllEscalatedByCreator(int fofoId, Optional<Boolean> resolved, int offset, int limit);
22
	List<Ticket> selectAllEscalatedByAssignee(int assigneId, Optional<Boolean> resolved, int offset, int limit);
23
	List<Ticket> selectAllEscalatedByAssignee(int assigneId, Optional<Boolean> resolved, int offset, int limit);
23
	public long selectAllCountByCreator(int creatorId, Optional<Boolean> resolved);
24
	public long selectAllCountByCreator(int creatorId, Optional<Boolean> resolved);
Line 26... Line 27...
26
	public Long selectAllCount();
27
	public Long selectAllCount();
27
	public List<Ticket> selectAllNotClosedTickets();
28
	public List<Ticket> selectAllNotClosedTickets();
28
	public List<Ticket> selectAllByAssignee(int assigneeId,Optional<Boolean> resolved,SortOrder sortOrder,int offset,int limit);
29
	public List<Ticket> selectAllByAssignee(int assigneeId,Optional<Boolean> resolved,SortOrder sortOrder,int offset,int limit);
29
	public List<Ticket> selectAllByTicketIds(List<Integer> ticketIds);
30
	public List<Ticket> selectAllByTicketIds(List<Integer> ticketIds);
30
	public long selectAllCountByAssignee(int assigneeId,Optional<Boolean> resolved);
31
	public long selectAllCountByAssignee(int assigneeId,Optional<Boolean> resolved);
31
	public List<Ticket> selectAllByEscalatedUserType(int authUserId, int offset, int limit);
32
	public List<Ticket> selectAllManagerTicket(int authUserId, SortOrder sortOrder,Optional<Boolean> resolved, int offset, int limit);
32
	public long selectAllCountByEscalatedUserType(int authUserId);
33
	public long selectAllCountByManagerTicket(int authUserId,Optional<Boolean> resolved);	
33
	
-
 
34
}
34
}
35
35