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
ConstructorDescriptionGlpiTicket
(int id, String title, int status) Create aGlpiTicket
GlpiTicket
(int id, String title, int status, int type, String category) Create aGlpiTicket
-
Method Summary
Modifier and TypeMethodDescriptionGet the category of ticketint
getId()
Get the id of ticketint
Get the status id of ticketgetTitle()
Get the title of ticketint
getType()
Get the type of ticketvoid
setCategory
(String category) Set the category of ticketvoid
setId
(int id) Set the id of ticketvoid
setStatus
(int status) Set the status id of ticketvoid
Set the title of ticketvoid
setType
(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
-