Package org.ametys.plugins.glpi
Class GlpiTicket
java.lang.Object
org.ametys.plugins.glpi.GlpiTicket
Information about a Glpi ticket (id, title, status)
-
Constructor Summary
ConstructorsConstructorDescriptionGlpiTicket(int id, String title, int status) Create aGlpiTicketGlpiTicket(int id, String title, int status, int type, String category) Create aGlpiTicket -
Method Summary
Modifier and TypeMethodDescriptionGet the category of ticketintgetId()Get the id of ticketintGet the status id of ticketgetTitle()Get the title of ticketintgetType()Get the type of ticketvoidsetCategory(String category) Set the category of ticketvoidsetId(int id) Set the id of ticketvoidsetStatus(int status) Set the status id of ticketvoidSet the title of ticketvoidsetType(int type) Set the type of ticket
-
Constructor Details
-
GlpiTicket
Create aGlpiTicket- Parameters:
id- The id of tickettitle- The title of ticketstatus- The status id of ticket
-
GlpiTicket
Create aGlpiTicket- Parameters:
id- The id of tickettitle- The title of ticketstatus- The status id of tickettype- The typecategory- The category
-
-
Method Details
-
getId
Get the id of ticket- Returns:
- The id of ticket
-
setId
Set the id of ticket- Parameters:
id- The id of ticket to set
-
getTitle
Get the title of ticket- Returns:
- The title of ticket
-
setTitle
Set the title of ticket- Parameters:
title- The title of ticket to set
-
getStatusId
Get the status id of ticket- Returns:
- The status of ticket
-
setStatus
Set the status id of ticket- Parameters:
status- The status id of ticket to set
-
getCategory
Get the category of ticket- Returns:
- the category
-
setCategory
Set the category of ticket- Parameters:
category- the category
-
getType
Get the type of ticket- Returns:
- the type or -1 if not defined
-
setType
Set the type of ticket- Parameters:
type- the type
-