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 aGlpiTicket
GlpiTicket(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 String
getCategory()
Get the category of ticketint
getId()
Get the id of ticketint
getStatusId()
Get the status id of ticketString
getTitle()
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
setTitle(String title)
Set the title of ticketvoid
setType(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
-
-