File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
src/java/fr/paris/lutece/plugins/grubusiness/business/demand Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 39
39
40
40
import fr .paris .lutece .plugins .grubusiness .business .notification .INotificationDAO ;
41
41
import fr .paris .lutece .plugins .grubusiness .business .notification .INotificationEventDAO ;
42
- import fr .paris .lutece .plugins .grubusiness .business .notification .INotificationListener ;
43
42
import fr .paris .lutece .plugins .grubusiness .business .notification .Notification ;
44
43
import fr .paris .lutece .plugins .grubusiness .business .notification .NotificationEvent ;
45
44
@@ -53,13 +52,6 @@ public interface IDemandServiceProvider
53
52
*/
54
53
public void setDemandDao ( IDemandDAO dao );
55
54
56
- /**
57
- * init DAO
58
- *
59
- * @param dao
60
- */
61
- public void setDemandTypeDao ( IDemandTypeDAO dao );
62
-
63
55
/**
64
56
* init DAO
65
57
*
@@ -185,12 +177,12 @@ public interface IDemandServiceProvider
185
177
public List <DemandType > getDemandTypesList ( );
186
178
187
179
/**
188
- * get demand type
180
+ * get demand type by type_id
189
181
*
190
182
* @param id
191
183
* @return the demand type as optional
192
184
*/
193
- public Optional <DemandType > getDemandType ( int id );
185
+ public Optional <DemandType > getDemandType ( String type_id );
194
186
195
187
/**
196
188
* get demand Ids by customer Id and demand Type
Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ public interface IDemandTypeDAO
77
77
*/
78
78
Optional <DemandType > load ( int nKey );
79
79
80
+ /**
81
+ * Load the data from the table by type_id
82
+ *
83
+ * @param sKey
84
+ * The type_id of the demandType
85
+ * @return The instance of the demandType
86
+ */
87
+ Optional <DemandType > selectByTypeId ( String sKey );
88
+
80
89
/**
81
90
* Load the data of all the demandType objects and returns them as a list
82
91
*
You can’t perform that action at this time.
0 commit comments