Subversion Repositories SmartDukaan

Rev

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

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