28
28
import com .topcoder .onlinereview .component .search .filter .AndFilter ;
29
29
import com .topcoder .onlinereview .component .search .filter .Filter ;
30
30
import com .topcoder .onlinereview .component .search .filter .InFilter ;
31
+
32
+ import org .slf4j .Logger ;
33
+ import org .slf4j .LoggerFactory ;
31
34
import org .springframework .beans .factory .annotation .Autowired ;
32
35
33
36
import java .util .ArrayList ;
53
56
*/
54
57
public class ListProjectsAction extends BaseProjectAction {
55
58
59
+ private static final Logger log = LoggerFactory .getLogger (ListProjectsAction .class .getName ());
56
60
/**
57
61
* Represents the serial version id.
58
62
*/
@@ -329,6 +333,14 @@ public String execute() throws BaseException {
329
333
{
330
334
Deliverable [] allMyDeliverables = getDeliverables (
331
335
ActionsHelper .createDeliverableManager (), projects , phases , myResources );
336
+ for (Deliverable d : allMyDeliverables ) {
337
+ log .info (String .valueOf (d .getProject ()));
338
+ log .info (String .valueOf (d .getPhase ()));
339
+ log .info (String .valueOf (d .getResource ()));
340
+ log .info (String .valueOf (d .getName ()));
341
+ log .info (String .valueOf (d .getCompletionDate ()));
342
+ log .info (String .valueOf (d .isComplete ()));
343
+ }
332
344
333
345
// Group the deliverables per projects in list
334
346
for (int i = 0 ; i < projects .length ; ++i ) {
@@ -342,6 +354,8 @@ public String execute() throws BaseException {
342
354
343
355
myDeliverables [i ] = getMyDeliverablesForPhases (
344
356
this , allMyDeliverables , phases [i ], myResources [i ], winnerId );
357
+ log .info (String .valueOf (i ));
358
+ log .info (myDeliverables [i ]);
345
359
346
360
}
347
361
}
0 commit comments