java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.TagDemandTypeService

public class TagDemandTypeService extends Object
TagDemandTypeService
  • Constructor Details

    • TagDemandTypeService

      public TagDemandTypeService()
      Private constructor
  • Method Details

    • getInstance

      public static TagDemandTypeService getInstance()
      Returns:
      instance of TagDemandTypeService
    • create

      public TagDemandType create(TagDemandType tagDemandType)
      Create an instance of the tagDemandType class
      Parameters:
      tagDemandType - The instance of the TagDemandType which contains the informations to store
      Returns:
      The instance of tagDemandType which has been created with its primary key.
    • update

      public TagDemandType update(TagDemandType tagDemandType)
      Update of the tagDemandType which is specified in parameter
      Parameters:
      tagDemandType - The instance of the TagDemandType which contains the data to store
      Returns:
      The instance of the tagDemandType which has been updated
    • remove

      public void remove(int nTagDemandTypeId)
      Remove the tagDemandType whose identifier is specified in parameter
      Parameters:
      nTagDemandTypeId - The tagDemandType Id
    • removeByIdDemandType

      public void removeByIdDemandType(int nIdDemandType)
      Remove the tagDemandType by id demand type
      Parameters:
      nIdDemandType - The demandType id
    • findByPrimaryKey

      public TagDemandType findByPrimaryKey(int nKey)
      Returns an instance of a tagDemandType whose identifier is specified in parameter
      Parameters:
      nKey - The tagDemandType primary key
      Returns:
      an instance of TagDemandType
    • getTagDemandTypesList

      public List<TagDemandType> getTagDemandTypesList(int nIdDemandType)
      Load the data of all the tagDemandType objects and returns them in form of a list
      Parameters:
      nIdDemandType - The id demand type
      Returns:
      the list which contains the data of all the tagDemandType objects
    • getTagDemandTypesList

      public List<TagDemandType> getTagDemandTypesList()
      Load the data of all the tagDemandType objects and returns them in form of a list
      Returns:
      the list which contains the data of all the tagDemandType objects
    • getListDemandTypeByTag

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getListDemandTypeByTag(String strTag, String strCategory)
      Allows you to retrieve the list of type demands configured with the tag as a parameter
      Parameters:
      strTag -
      strCategory -
      Returns:
      list of demands type