Subversion Repositories SmartDukaan

Rev

Rev 24417 | Rev 24500 | 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;
4
import java.util.Optional;
5
 
6
import org.springframework.stereotype.Repository;
7
 
8
import com.spice.profitmandi.dao.entity.cs.Ticket;
24439 govind 9
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
24383 amit.gupta 10
 
11
@Repository
12
public interface TicketRepository {
13
	void persist(Ticket ticket);
14
	Ticket selectById(int ticketId);
15
	List<Ticket> selectAllByAssignee(int assigneeId, Optional<Boolean> resolved, int offset, int limit);
16
	List<Ticket> selectAllByCreator(int creatorId, Optional<Boolean> resolved, int offset, int limit);
17
	List<Ticket> selectAll(int offset, int limit, Optional<Boolean> resolved);
18
	List<Ticket> selectAllEscalated(Optional<Boolean> resolved, int offset, int limit);
19
	List<Ticket> selectAllEscalatedByCreator(int fofoId, Optional<Boolean> resolved, int offset, int limit);
20
	List<Ticket> selectAllEscalatedByAssignee(int assigneId, Optional<Boolean> resolved, int offset, int limit);
24417 govind 21
	public long selectAllCountByAssignee(int assigneeId, Optional<Boolean> resolved);
22
	public long selectAllCountByCreator(int creatorId, Optional<Boolean> resolved);
24439 govind 23
	public List<Ticket> selectAllByEscalatedUserType(int authUser,EscalationType escalationType,int offset,int limit);
24
	public long selectAllCountByEscalatedUserType(int authUser,EscalationType escalationType);
25
	public Long selectAllCount();
26
}