Skip to content

Commit

Permalink
LUT-25865 : add a method to get DemandType by demand type
Browse files Browse the repository at this point in the history
  • Loading branch information
seboo committed Nov 20, 2024
1 parent d08857e commit 961461d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

import fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO;
import fr.paris.lutece.plugins.grubusiness.business.notification.INotificationEventDAO;
import fr.paris.lutece.plugins.grubusiness.business.notification.INotificationListener;
import fr.paris.lutece.plugins.grubusiness.business.notification.Notification;
import fr.paris.lutece.plugins.grubusiness.business.notification.NotificationEvent;

Expand All @@ -53,13 +52,6 @@ public interface IDemandServiceProvider
*/
public void setDemandDao( IDemandDAO dao );

/**
* init DAO
*
* @param dao
*/
public void setDemandTypeDao( IDemandTypeDAO dao );

/**
* init DAO
*
Expand Down Expand Up @@ -185,12 +177,12 @@ public interface IDemandServiceProvider
public List<DemandType> getDemandTypesList( );

/**
* get demand type
* get demand type by type_id
*
* @param id
* @return the demand type as optional
*/
public Optional<DemandType> getDemandType( int id );
public Optional<DemandType> getDemandType( String type_id );

/**
* get demand Ids by customer Id and demand Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ public interface IDemandTypeDAO
*/
Optional<DemandType> load( int nKey );

/**
* Load the data from the table by type_id
*
* @param sKey
* The type_id of the demandType
* @return The instance of the demandType
*/
Optional<DemandType> selectByTypeId( String sKey );

/**
* Load the data of all the demandType objects and returns them as a list
*
Expand Down

0 comments on commit 961461d

Please sign in to comment.