Class GlpiTicket

java.lang.Object
org.ametys.plugins.glpi.GlpiTicket

public class GlpiTicket extends Object
Information about a Glpi ticket (id, title, status)
  • Constructor Details

    • GlpiTicket

      public GlpiTicket(int id, String title, int status)
      Create a GlpiTicket
      Parameters:
      id - The id of ticket
      title - The title of ticket
      status - The status id of ticket
    • GlpiTicket

      public GlpiTicket(int id, String title, int status, int type, String category)
      Create a GlpiTicket
      Parameters:
      id - The id of ticket
      title - The title of ticket
      status - The status id of ticket
      type - The type
      category - The category
  • Method Details

    • 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
    • getTitle

      public String getTitle()
      Get the title of ticket
      Returns:
      The title of ticket
    • 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