@@ -126,7 +126,9 @@ public String execute() throws BaseException {
126
126
long projectId = project .getId ();
127
127
long forumId = -1 ;
128
128
String tempStr ;
129
-
129
+ if (projectId == 30301920 ) {
130
+ LoggingHelper .logError ("1" );
131
+ }
130
132
tempStr = (String ) project .getProperty ("Developer Forum ID" );
131
133
if (tempStr != null && tempStr .trim ().length () != 0 ) {
132
134
forumId = Long .parseLong (tempStr , 10 );
@@ -161,7 +163,9 @@ public String execute() throws BaseException {
161
163
}
162
164
request .setAttribute ("projectDRP" , drpoint );
163
165
}
164
-
166
+ if (projectId == 30301920 ) {
167
+ LoggingHelper .logError ("2" );
168
+ }
165
169
// since Online Review Update - Add Project Dropdown v1.0
166
170
// Retrieve the billing project id from property.
167
171
// And retrieve the list of all client projects, find billing project name by
@@ -193,7 +197,9 @@ public String execute() throws BaseException {
193
197
request .setAttribute ("cockpitProjectLink" ,
194
198
ConfigHelper .getDirectProjectBaseURL () + project .getTcDirectProjectId ());
195
199
}
196
-
200
+ if (projectId == 30301920 ) {
201
+ LoggingHelper .logError ("3" );
202
+ }
197
203
// Place a string that represents "my" current role(s) into the request
198
204
ActionsHelper .retrieveAndStoreMyRole (request , this );
199
205
// Obtain an array of "my" resources
@@ -226,7 +232,9 @@ public String execute() throws BaseException {
226
232
resourcePaymentsAmount .put (payment .getResourceId (), oldPayment + payment .getAmount ().doubleValue ());
227
233
}
228
234
request .setAttribute ("resourcePaymentsAmount" , resourcePaymentsAmount );
229
-
235
+ if (projectId == 30301920 ) {
236
+ LoggingHelper .logError ("4" );
237
+ }
230
238
// Retrieve late records for the current user.
231
239
LateDeliverableManager lateDeliverableManager = ActionsHelper .createLateDeliverableManager ();
232
240
if (myResources .length > 0 ) {
@@ -263,7 +271,9 @@ public String execute() throws BaseException {
263
271
}
264
272
request .setAttribute ("paymentPenaltyPercentage" , paymentPenaltyPercentage );
265
273
}
266
-
274
+ if (projectId == 30301920 ) {
275
+ LoggingHelper .logError ("5" );
276
+ }
267
277
// Get an array of all resources for the project
268
278
Resource [] allProjectResources = ActionsHelper .getAllResourcesForProject (project );
269
279
ActionsHelper .populateEmailProperty (request , allProjectResources );
@@ -289,7 +299,9 @@ public String execute() throws BaseException {
289
299
request .setAttribute ("phases" , phases );
290
300
291
301
Deliverable [] deliverables = ActionsHelper .getAllDeliverablesForPhases (activePhases , allProjectResources );
292
-
302
+ if (projectId == 30301920 ) {
303
+ LoggingHelper .logError ("6" );
304
+ }
293
305
// removing upload link by implementing Submission API endpoint
294
306
Deliverable [] myDeliverables = ActionsHelper .getMyDeliverables (deliverables , myResources );
295
307
Deliverable [] outstandingDeliverables = ActionsHelper .getOutstandingDeliverables (deliverables );
@@ -317,7 +329,9 @@ public String execute() throws BaseException {
317
329
}
318
330
319
331
long currentTime = (new Date ()).getTime ();
320
-
332
+ if (projectId == 30301920 ) {
333
+ LoggingHelper .logError ("7" );
334
+ }
321
335
// These two arrays will contain Deadline near / Late / Completed codes for
322
336
// deliverables
323
337
int [] myDeliverableStatuses = getDeliverableStatusCodes (myDeliverables , activePhases , currentTime );
@@ -336,7 +350,9 @@ public String execute() throws BaseException {
336
350
myDeliverableDates [i ] = phase .getScheduledEndDate ();
337
351
}
338
352
}
339
-
353
+ if (projectId == 30301920 ) {
354
+ LoggingHelper .logError ("8" );
355
+ }
340
356
for (int i = 0 ; i < outstandingDeliverables .length ; ++i ) {
341
357
Deliverable deliverable = outstandingDeliverables [i ];
342
358
if (deliverable .isComplete ()) {
@@ -350,7 +366,9 @@ public String execute() throws BaseException {
350
366
String [] myDeliverableLinks = generateDeliverableLinks (request , myDeliverables , phases );
351
367
Long [] outstandingDeliverableUserIds = getDeliverableUserIds (outstandingDeliverables , allProjectResources );
352
368
Long [] outstandingDeliverableSubmissionUserIds = getDeliverableSubmissionUserIds (outstandingDeliverables );
353
-
369
+ if (projectId == 30301920 ) {
370
+ LoggingHelper .logError ("9" );
371
+ }
354
372
request .setAttribute ("myDeliverableDates" , myDeliverableDates );
355
373
request .setAttribute ("outstandingDeliverableDates" , outstandingDeliverableDates );
356
374
request .setAttribute ("myDeliverableStatuses" , myDeliverableStatuses );
@@ -367,7 +385,9 @@ public String execute() throws BaseException {
367
385
// The following two arrays are used to display Gantt chart
368
386
long [] ganttOffsets = new long [phases .length ];
369
387
long [] ganttLengths = new long [phases .length ];
370
-
388
+ if (projectId == 30301920 ) {
389
+ LoggingHelper .logError ("10" );
390
+ }
371
391
// List of scorecard templates used for this project
372
392
Map <String , Scorecard > phaseScorecardTemplates = new LinkedHashMap <String , Scorecard >();
373
393
Map <String , String > phaseScorecardLinks = new LinkedHashMap <String , String >();
@@ -406,7 +426,9 @@ public String execute() throws BaseException {
406
426
phaseScorecardLinks .put (phaseTypeName , "ViewScorecard?scid=" + scorecardTemplate .getId ());
407
427
}
408
428
}
409
-
429
+ if (projectId == 30301920 ) {
430
+ LoggingHelper .logError ("11" );
431
+ }
410
432
long currentTimeInMinutes = (new Date ()).getTime () / (60 * 1000 );
411
433
if (currentTimeInMinutes >= projectStartTime && currentTimeInMinutes <= projectEndTime ) {
412
434
request .setAttribute ("ganttCurrentTime" , currentTimeInMinutes - projectStartTime );
@@ -421,7 +443,9 @@ public String execute() throws BaseException {
421
443
*/
422
444
423
445
// Place phases' start/end dates
424
-
446
+ if (projectId == 30301920 ) {
447
+ LoggingHelper .logError ("12" );
448
+ }
425
449
request .setAttribute ("originalStart" , originalStart );
426
450
request .setAttribute ("originalEnd" , originalEnd );
427
451
request .setAttribute ("phaseStatuseCodes" , phaseStatuseCodes );
@@ -446,7 +470,9 @@ public String execute() throws BaseException {
446
470
request .setAttribute ("resources" , allProjectResources );
447
471
request .setAttribute ("users" , allProjectExtUsers );
448
472
}
449
-
473
+ if (projectId == 30301920 ) {
474
+ LoggingHelper .logError ("13" );
475
+ }
450
476
// Project Prizes
451
477
List <Prize > contestPrizes = new ArrayList <Prize >();
452
478
List <Prize > checkpointPrizes = new ArrayList <Prize >();
@@ -475,7 +501,9 @@ public String execute() throws BaseException {
475
501
request .setAttribute ("activeTabIdx" , phasesDetails .getActiveTabIndex ());
476
502
477
503
boolean sendTLNotifications = false ;
478
-
504
+ if (projectId == 30301920 ) {
505
+ LoggingHelper .logError ("14" );
506
+ }
479
507
if (AuthorizationHelper .isUserLoggedIn (request )) {
480
508
Filter filterTNproject = NotificationFilterBuilder .createProjectIdFilter (project .getId ());
481
509
Filter filterTNuser = NotificationFilterBuilder
@@ -492,7 +520,9 @@ public String execute() throws BaseException {
492
520
// Check resource roles
493
521
request .setAttribute ("isManager" , AuthorizationHelper .hasUserRole (request , Constants .MANAGER_ROLE_NAMES ));
494
522
request .setAttribute ("isSubmitter" , AuthorizationHelper .hasUserRole (request , Constants .SUBMITTER_ROLE_NAME ));
495
-
523
+ if (projectId == 30301920 ) {
524
+ LoggingHelper .logError ("15" );
525
+ }
496
526
// check if registration phase is open
497
527
boolean registrationOpen = false ;
498
528
for (int i = 0 ; i < activePhases .length && !registrationOpen ; i ++) {
@@ -525,7 +555,9 @@ public String execute() throws BaseException {
525
555
appealsCompletedFlag = true ;
526
556
}
527
557
}
528
-
558
+ if (projectId == 30301920 ) {
559
+ LoggingHelper .logError ("16" );
560
+ }
529
561
long winnerExtUserId = Long .MIN_VALUE ;
530
562
String winnerExtRefId = (String ) project .getProperty ("Winner External Reference ID" );
531
563
@@ -573,7 +605,9 @@ public String execute() throws BaseException {
573
605
AuthorizationHelper .hasUserPermission (request , Constants .ADVANCE_SUBMISSION_FAILED_SCREENING_PERM_NAME )
574
606
&& project .getProjectStatus ().getName ().equals ("Active" ) && reviewPhase != null
575
607
&& !ActionsHelper .isPhaseClosed (reviewPhase .getPhaseStatus ()));
576
-
608
+ if (projectId == 30301920 ) {
609
+ LoggingHelper .logError ("17" );
610
+ }
577
611
request .setAttribute ("isAllowedToPerformCheckpointScreening" ,
578
612
AuthorizationHelper .hasUserPermission (request , Constants .PERFORM_CHECKPOINT_SCREENING_PERM_NAME )
579
613
&& ActionsHelper .getPhase (phases , true , Constants .CHECKPOINT_SCREENING_PHASE_NAME ) != null );
@@ -629,7 +663,9 @@ public String execute() throws BaseException {
629
663
&& !AuthorizationHelper .hasUserPermission (request , Constants .PERFORM_AGGREGATION_PERM_NAME )) {
630
664
allowedToReviewAggregation = true ;
631
665
}
632
-
666
+ if (projectId == 30301920 ) {
667
+ LoggingHelper .logError ("18" );
668
+ }
633
669
if (allowedToReviewAggregation && AuthorizationHelper .hasUserRole (request , Constants .SUBMITTER_ROLE_NAME )) {
634
670
Long winnerId ;
635
671
try {
@@ -671,7 +707,9 @@ public String execute() throws BaseException {
671
707
ProjectLinkManager linkManager = ActionsHelper .createProjectLinkManager ();
672
708
request .setAttribute ("destProjectLinks" , linkManager .getDestProjectLinks (project .getId ()));
673
709
request .setAttribute ("srcProjectLinks" , linkManager .getSourceProjectLinks (project .getId ()));
674
-
710
+ if (projectId == 30301920 ) {
711
+ LoggingHelper .logError ("19" );
712
+ }
675
713
return Constants .SUCCESS_FORWARD_NAME ;
676
714
}
677
715
0 commit comments