Package org.ametys.plugins.glpi
Class GlpiTicket
- java.lang.Object
-
- org.ametys.plugins.glpi.GlpiTicket
-
public class GlpiTicket extends Object
Information about a Glpi ticket (id, title, status)
-
-
Constructor Summary
Constructors Constructor Description GlpiTicket(int id, String title, int status)Create aGlpiTicketGlpiTicket(int id, String title, int status, int type, String category)Create aGlpiTicket
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Get the category of ticketintgetId()Get the id of ticketintgetStatusId()Get the status id of ticketStringgetTitle()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 ticketvoidsetTitle(String title)Set the title of ticketvoidsetType(int type)Set the type of ticket
-
-
-
Constructor Detail
-
GlpiTicket
public GlpiTicket(int id, String title, int status)
Create aGlpiTicket- Parameters:
id- The id of tickettitle- The title of ticketstatus- The status id of ticket
-
GlpiTicket
public GlpiTicket(int id, String title, int status, int type, String category)
Create aGlpiTicket- Parameters:
id- The id of tickettitle- The title of ticketstatus- The status id of tickettype- The typecategory- The category
-
-
Method Detail
-
getId
public int getId()
Get the id of ticket- Returns:
- The id of ticket
-
setId
public void setId(int id)
Set the id of ticket- Parameters:
id- The id of ticket to set
-
setTitle
public void setTitle(String title)
Set the title of ticket- Parameters:
title- The title of ticket to set
-
getStatusId
public int getStatusId()
Get the status id of ticket- Returns:
- The status of ticket
-
setStatus
public void setStatus(int status)
Set the status id of ticket- Parameters:
status- The status id of ticket to set
-
getCategory
public String getCategory()
Get the category of ticket- Returns:
- the category
-
setCategory
public void setCategory(String category)
Set the category of ticket- Parameters:
category- the category
-
getType
public int getType()
Get the type of ticket- Returns:
- the type or -1 if not defined
-
setType
public void setType(int type)
Set the type of ticket- Parameters:
type- the type
-
-