Class TemporaryStatusService
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.service.TemporaryStatusService
-
public class TemporaryStatusService extends java.lang.ObjectTemporaryStatusService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatuscreate(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)Create an instance of the status classjava.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByPrimaryKey(int nKey)Returns an instance of a status whose identifier is specified in parameterjava.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByStatus(java.lang.String strStatus)Returns an instance of a status (like '%strStatus%')java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByStatusId(int nStatusId)Returns an instance of a statusjava.util.List<java.lang.Integer>getIdStatusList()Load the id of all the status objects and returns them as a liststatic TemporaryStatusServicegetInstance()Public constructorjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>getStatusList()Load the data of all the status objects and returns them as a listjava.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>getStatusListByIds(java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listvoidremove(int nKey)Remove the status whose identifier is specified in parameterjava.util.List<java.lang.Integer>searchStatusIdsList(java.util.Map<java.lang.String,java.lang.String> mapFilterCriteria, java.lang.String strColumnToOrder, java.lang.String strSortMode)search idsfr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatusupdate(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)Update of the status which is specified in parameter
-
-
-
Method Detail
-
getInstance
public static TemporaryStatusService getInstance()
Public constructor- Returns:
- instance
-
create
public fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus create(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)
Create an instance of the status class- Parameters:
status- The instance of the Status which contains the informations to store- Returns:
- The instance of status which has been created with its primary key.
-
update
public fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus update(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status)
Update of the status which is specified in parameter- Parameters:
status- The instance of the Status which contains the data to store- Returns:
- The instance of the status which has been updated
-
remove
public void remove(int nKey)
Remove the status whose identifier is specified in parameter- Parameters:
nKey- The status Id
-
findByPrimaryKey
public java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByPrimaryKey(int nKey)
Returns an instance of a status whose identifier is specified in parameter- Parameters:
nKey- The status primary key- Returns:
- an instance of Status
-
findByStatusId
public java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByStatusId(int nStatusId)
Returns an instance of a status- Parameters:
strStatus- The status name- Returns:
- an instance of Status
-
findByStatus
public java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByStatus(java.lang.String strStatus)
Returns an instance of a status (like '%strStatus%')- Parameters:
strStatus- The status name- Returns:
- Only the first status found returned
-
getStatusList
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusList()
Load the data of all the status objects and returns them as a list- Returns:
- the list which contains the data of all the status objects
-
getIdStatusList
public java.util.List<java.lang.Integer> getIdStatusList()
Load the id of all the status objects and returns them as a list- Returns:
- the list which contains the id of all the status objects
-
getStatusListByIds
public java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusListByIds(java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
searchStatusIdsList
public java.util.List<java.lang.Integer> searchStatusIdsList(java.util.Map<java.lang.String,java.lang.String> mapFilterCriteria, java.lang.String strColumnToOrder, java.lang.String strSortMode)search ids- Parameters:
mapFilterCriteria-strColumnToOrder-strSortMode-plugin-- Returns:
- the ids list
-
-