Class TagDemandTypeService
java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.grusupply.service.TagDemandTypeService
TagDemandTypeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(TagDemandType tagDemandType) Create an instance of the tagDemandType classfindByPrimaryKey(int nKey) Returns an instance of a tagDemandType whose identifier is specified in parameterstatic TagDemandTypeServiceList<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 parameterLoad the data of all the tagDemandType objects and returns them in form of a listgetTagDemandTypesList(int nIdDemandType) Load the data of all the tagDemandType objects and returns them in form of a listList<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getUntaggedDemandTypesList(String strCategory) Retrieve the list of untagged demand typesvoidremove(int nTagDemandTypeId) Remove the tagDemandType whose identifier is specified in parametervoidremoveByIdDemandType(int nIdDemandType) Remove the tagDemandType by id demand typeupdate(TagDemandType tagDemandType) Update of the tagDemandType which is specified in parameter
-
Constructor Details
-
TagDemandTypeService
public TagDemandTypeService()Private constructor
-
-
Method Details
-
getInstance
- Returns:
- instance of TagDemandTypeService
-
create
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
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
Returns an instance of a tagDemandType whose identifier is specified in parameter- Parameters:
nKey- The tagDemandType primary key- Returns:
- an instance of TagDemandType
-
getTagDemandTypesList
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
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
-
getUntaggedDemandTypesList
public List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getUntaggedDemandTypesList(String strCategory) Retrieve the list of untagged demand types- Parameters:
strCategory-- Returns:
- list of demand types
-