public class DefaultTicketDao extends AbstractItemDao implements TicketDao
TicketDao interface.flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultTicketDao() |
| Modifier and Type | Method and Description |
|---|---|
protected SortQueryData |
createSortQueryData(java.lang.String sortCode,
java.lang.String query) |
java.util.List<CsTicketEventModel> |
findTicketEventsByTicket(CsTicketModel ticket)
Find all ticket events for
CsTicketModel object. |
java.util.List<CsTicketEventModel> |
findTicketEventsForCustomerByTicket(CsTicketModel ticket)
Find all ticket events for
CsTicketModel object excluding private messages. |
java.util.List<CsTicketModel> |
findTicketsByAgent(EmployeeModel agent)
Find all the tickets that are assigned to the Agent.
|
java.util.List<CsTicketModel> |
findTicketsByAgentGroup(CsAgentGroupModel agentGroup)
Find all the tickets assigned to the AgentGroup.
|
java.util.List<CsTicketModel> |
findTicketsByAgentGroupState(EmployeeModel agent,
CsAgentGroupModel group,
CsTicketState state)
Find tickets by the specified agent, group and state.
|
java.util.List<CsTicketModel> |
findTicketsByCategory(CsTicketCategory... category)
Find all the tickets that have the provided categories.
|
java.util.List<CsTicketModel> |
findTicketsByCustomer(UserModel customer)
Find all tickets that are associated with the customer.
|
java.util.List<CsTicketModel> |
findTicketsByCustomerOrderByModifiedTime(UserModel customer)
Find all tickets that are associated with the customer in descending and order by Modified date time.
|
SearchPageData<CsTicketModel> |
findTicketsByCustomerOrderByModifiedTime(UserModel user,
BaseSiteModel baseSite,
PageableData pageableData)
Find all tickets that are associated with the customer and current site, in descending and order by Modified date
time.
|
java.util.List<CsTicketModel> |
findTicketsById(java.lang.String ticketId)
Lookup tickets with the specified ticket id
|
java.util.List<CsTicketModel> |
findTicketsByOrder(OrderModel order)
Find all the tickets that are associated with the order.
|
java.util.List<CsTicketModel> |
findTicketsByPriority(CsTicketPriority... priority)
Find all the tickets that have the provided priorities.
|
java.util.List<CsTicketModel> |
findTicketsByResolutionType(CsResolutionType... resolutionType)
Find all the tickets that have the provided Resolution Type(s).
|
java.util.List<CsTicketModel> |
findTicketsByState(CsTicketState... state)
Find all the tickets that are in the provided states.
|
java.util.List<CsTicketModel> |
findTicketsByStringInTicketOrEvent(java.lang.String searchString)
Find tickets which contain the specified search string in the headline or any of the events
|
java.util.List<CsTicketModel> |
findTicketsByStringInTicketOrEventAndStates(java.lang.String searchString,
java.util.Set<CsTicketState> states)
Find tickets which contain the specified search string in the headline or any of the events and that are also in
the given list of states.
|
java.util.List<CsTicketModel> |
findTicketsWithNullAgent()
Find all the tickets that are not assigned to an agent.
|
java.util.List<CsTicketModel> |
findTicketsWithNullAgentGroup()
Find all the tickets that are not assigne to an agent group.
|
PagedFlexibleSearchService |
getPagedFlexibleSearchService() |
void |
setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.List<CsTicketModel> findTicketsByAgentGroupState(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state)
findTicketsByAgentGroupState in interface TicketDaoagent - The agent to search for or null if nonegroup - The group to search for or null if nonestate - The state to search for or null if anypublic java.util.List<CsTicketModel> findTicketsByStringInTicketOrEvent(java.lang.String searchString)
findTicketsByStringInTicketOrEvent in interface TicketDaosearchString - The string to find in the ticketpublic java.util.List<CsTicketModel> findTicketsByStringInTicketOrEventAndStates(java.lang.String searchString, java.util.Set<CsTicketState> states)
findTicketsByStringInTicketOrEventAndStates in interface TicketDaosearchString - The string to find in the ticketstates - The states that any returned tickets should be inpublic java.util.List<CsTicketEventModel> findTicketEventsByTicket(CsTicketModel ticket)
CsTicketModel object.findTicketEventsByTicket in interface TicketDaoticket - the CsTicketModel for which to return ticket events.public java.util.List<CsTicketEventModel> findTicketEventsForCustomerByTicket(CsTicketModel ticket)
CsTicketModel object excluding private messages.findTicketEventsForCustomerByTicket in interface TicketDaoticket - the CsTicketModel for which to return ticket events.public java.util.List<CsTicketModel> findTicketsByAgent(EmployeeModel agent)
findTicketsByAgent in interface TicketDaoagent - The agent to find assigned tickets forpublic java.util.List<CsTicketModel> findTicketsByAgentGroup(CsAgentGroupModel agentGroup)
findTicketsByAgentGroup in interface TicketDaoagentGroup - The AgentGroup to find assigned tickets forpublic java.util.List<CsTicketModel> findTicketsByCategory(CsTicketCategory... category)
findTicketsByCategory in interface TicketDaocategory - The category/categories for which to return tickets. The number of arguments is variable and may be
zero, although zero arguments will return an empty list.public java.util.List<CsTicketModel> findTicketsByCustomer(UserModel customer)
findTicketsByCustomer in interface TicketDaocustomer - The customer to find tickets forpublic java.util.List<CsTicketModel> findTicketsById(java.lang.String ticketId)
findTicketsById in interface TicketDaoticketId - The id of the ticket to lookuppublic java.util.List<CsTicketModel> findTicketsByOrder(OrderModel order)
findTicketsByOrder in interface TicketDaoorder - The order to find tickets forpublic java.util.List<CsTicketModel> findTicketsByPriority(CsTicketPriority... priority)
findTicketsByPriority in interface TicketDaopriority - The priority/priorities for which to return tickets. The number of arguments is variable and may be
zero, although zero arguments will return an empty list.public java.util.List<CsTicketModel> findTicketsByResolutionType(CsResolutionType... resolutionType)
findTicketsByResolutionType in interface TicketDaoresolutionType - The Resolution Type(s) for which to return tickets. The number of arguments is variable and may be zero,
although zero arguments will return an empty list.public java.util.List<CsTicketModel> findTicketsByState(CsTicketState... state)
findTicketsByState in interface TicketDaostate - The state(s) for which to return tickets. The number of arguments is variable and may be zero, although
zero arguments will return an empty list.public java.util.List<CsTicketModel> findTicketsWithNullAgent()
findTicketsWithNullAgent in interface TicketDaopublic java.util.List<CsTicketModel> findTicketsWithNullAgentGroup()
findTicketsWithNullAgentGroup in interface TicketDaopublic java.util.List<CsTicketModel> findTicketsByCustomerOrderByModifiedTime(UserModel customer)
TicketDaofindTicketsByCustomerOrderByModifiedTime in interface TicketDaopublic SearchPageData<CsTicketModel> findTicketsByCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData)
TicketDaofindTicketsByCustomerOrderByModifiedTime in interface TicketDaoprotected SortQueryData createSortQueryData(java.lang.String sortCode, java.lang.String query)
public PagedFlexibleSearchService getPagedFlexibleSearchService()
public void setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService)
pagedFlexibleSearchService - the pagedFlexibleSearchService to setCopyright © 2018 SAP SE. All Rights Reserved.