Interface IEditableTicketService
- All Known Implementing Classes:
EditableTicketService
public interface IEditableTicketService
This class provides methods to manage
EditableTicket-
Method Summary
Modifier and TypeMethodDescriptionList<fr.paris.lutece.plugins.genericattributes.business.Entry>buildListEntriesToEdit(javax.servlet.http.HttpServletRequest request, List<EditableTicketField> listEditableTicketFields) Get the list of entries to editbuildListIdEntriesToEdit(javax.servlet.http.HttpServletRequest request, List<EditableTicketField> listEditableTicketFields) Get the id list of entries to editvoidcreate(EditableTicket editableTicket) Create an editable ticketfind(int nIdHistory, int nIdTask) Find an editable ticketfindByIdTask(int nIdTask) Find editable tickets by a given id taskfindByIdTicket(int nIdTicket) Get the non edited editable ticket from a given id ticketbooleanisStateValid(EditableTicket editableTicket, Locale locale) Check if the ticket has the same state before executing the actionvoidremoveByIdHistory(int nIdHistory, int nIdTask) Remove an editable ticketvoidremoveByIdTask(int nIdTask) Remove an editable ticket by id taskvoidupdate(EditableTicket editableTicket) Update an editable ticket
-
Method Details
-
create
Create an editable ticket- Parameters:
editableTicket- the editable ticket
-
update
Update an editable ticket- Parameters:
editableTicket- the editable ticket
-
find
Find an editable ticket- Parameters:
nIdHistory- the id historynIdTask- the id task- Returns:
- the editable ticket
-
findByIdTicket
Get the non edited editable ticket from a given id ticket- Parameters:
nIdTicket- the id ticket- Returns:
- the editable ticket
-
findByIdTask
Find editable tickets by a given id task- Parameters:
nIdTask- the id task- Returns:
- the list of editable tickets
-
removeByIdHistory
@Transactional("workflow-ticketing.transactionManager") void removeByIdHistory(int nIdHistory, int nIdTask) Remove an editable ticket- Parameters:
nIdHistory- the id historynIdTask- the id task
-
removeByIdTask
@Transactional("workflow-ticketing.transactionManager") void removeByIdTask(int nIdTask) Remove an editable ticket by id task- Parameters:
nIdTask- the id task
-
buildListEntriesToEdit
List<fr.paris.lutece.plugins.genericattributes.business.Entry> buildListEntriesToEdit(javax.servlet.http.HttpServletRequest request, List<EditableTicketField> listEditableTicketFields) Get the list of entries to edit- Parameters:
request- the HTTP requestlistEditableTicketFields- the list of editable ticket fields- Returns:
- a list of entries
-
buildListIdEntriesToEdit
List<Integer> buildListIdEntriesToEdit(javax.servlet.http.HttpServletRequest request, List<EditableTicketField> listEditableTicketFields) Get the id list of entries to edit- Parameters:
request- the HTTP requestlistEditableTicketFields- the id list of editable ticket fields- Returns:
- a list of id entries
-
isStateValid
Check if the ticket has the same state before executing the action- Parameters:
editableTicket- the editable ticketlocale- the locale- Returns:
trueif the ticket has a valid state,falseotherwise
-