/
DataProvider.java
8826 lines (7647 loc) · 412 KB
/
DataProvider.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (C) 2010 - 2016 TopCoder Inc., All Rights Reserved.
*/
package com.topcoder.direct.services.view.util;
import com.topcoder.clients.invoices.dao.InvoiceRecordDAO;
import com.topcoder.clients.invoices.model.InvoiceType;
import com.topcoder.commons.utils.ValidationUtility;
import com.topcoder.direct.services.configs.ServerConfiguration;
import com.topcoder.direct.services.copilot.dto.CopilotPoolMember;
import com.topcoder.direct.services.copilot.model.CopilotProjectFeedback;
import com.topcoder.direct.services.exception.DirectException;
import com.topcoder.direct.services.payments.entities.CashOutflowPotential;
import com.topcoder.direct.services.payments.entities.CashOutflowPotentialResult;
import com.topcoder.direct.services.payments.entities.DateRange;
import com.topcoder.direct.services.payments.entities.PaymentHistory;
import com.topcoder.direct.services.payments.entities.PaymentHistoryCriteria;
import com.topcoder.direct.services.payments.entities.PaymentHistoryResult;
import com.topcoder.direct.services.payments.entities.PaymentMethod;
import com.topcoder.direct.services.payments.entities.PaymentStatus;
import com.topcoder.direct.services.payments.entities.PaymentTrend;
import com.topcoder.direct.services.payments.entities.PaymentTrendSearchCriteria;
import com.topcoder.direct.services.payments.entities.PaymentsByStatus;
import com.topcoder.direct.services.payments.entities.PaymentsByStatusResult;
import com.topcoder.direct.services.payments.entities.PullablePayments;
import com.topcoder.direct.services.payments.entities.TopMemberPayment;
import com.topcoder.direct.services.payments.entities.TopMemberPaymentCriteria;
import com.topcoder.direct.services.project.metadata.entities.dao.DirectProjectAccess;
import com.topcoder.direct.services.view.action.AbstractAction;
import com.topcoder.direct.services.view.dto.ActivityDTO;
import com.topcoder.direct.services.view.dto.ActivityType;
import com.topcoder.direct.services.view.dto.ClientBillingDirectProjectMappingDTO;
import com.topcoder.direct.services.view.dto.ClientUserStatsDTO;
import com.topcoder.direct.services.view.dto.CoPilotStatsDTO;
import com.topcoder.direct.services.view.dto.IdNamePair;
import com.topcoder.direct.services.view.dto.LatestActivitiesDTO;
import com.topcoder.direct.services.view.dto.MemberPhotoDTO;
import com.topcoder.direct.services.view.dto.SoftwareContestWinnerDTO;
import com.topcoder.direct.services.view.dto.TopCoderDirectFactsDTO;
import com.topcoder.direct.services.view.dto.UpcomingActivitiesDTO;
import com.topcoder.direct.services.view.dto.UserDTO;
import com.topcoder.direct.services.view.dto.admin.CopilotFeedbackAdminDTO;
import com.topcoder.direct.services.view.dto.contest.ContestBriefDTO;
import com.topcoder.direct.services.view.dto.contest.ContestCopilotDTO;
import com.topcoder.direct.services.view.dto.contest.ContestDTO;
import com.topcoder.direct.services.view.dto.contest.ContestDashboardDTO;
import com.topcoder.direct.services.view.dto.contest.ContestFinalFixDTO;
import com.topcoder.direct.services.view.dto.contest.ContestHealthDTO;
import com.topcoder.direct.services.view.dto.contest.ContestReceiptDTO;
import com.topcoder.direct.services.view.dto.contest.ContestReceiptEntry;
import com.topcoder.direct.services.view.dto.contest.ContestRegistrantDTO;
import com.topcoder.direct.services.view.dto.contest.ContestStatsDTO;
import com.topcoder.direct.services.view.dto.contest.ContestStatus;
import com.topcoder.direct.services.view.dto.contest.ContestType;
import com.topcoder.direct.services.view.dto.contest.DependenciesStatus;
import com.topcoder.direct.services.view.dto.contest.DependencyDTO;
import com.topcoder.direct.services.view.dto.contest.ForumPostDTO;
import com.topcoder.direct.services.view.dto.contest.ProblemDTO;
import com.topcoder.direct.services.view.dto.contest.ProjectPhaseDTO;
import com.topcoder.direct.services.view.dto.contest.ProjectPhaseStatus;
import com.topcoder.direct.services.view.dto.contest.ProjectPhaseType;
import com.topcoder.direct.services.view.dto.contest.RegistrationStatus;
import com.topcoder.direct.services.view.dto.contest.ReviewersSignupStatus;
import com.topcoder.direct.services.view.dto.contest.RunningPhaseStatus;
import com.topcoder.direct.services.view.dto.contest.SoftwareContestSubmissionsDTO;
import com.topcoder.direct.services.view.dto.contest.SoftwareSubmissionDTO;
import com.topcoder.direct.services.view.dto.contest.SoftwareSubmissionReviewDTO;
import com.topcoder.direct.services.view.dto.contest.TypedContestBriefDTO;
import com.topcoder.direct.services.view.dto.contest.ReviewScorecardDTO;
import com.topcoder.direct.services.view.dto.copilot.CopilotBriefDTO;
import com.topcoder.direct.services.view.dto.copilot.CopilotContestDTO;
import com.topcoder.direct.services.view.dto.copilot.CopilotProjectDTO;
import com.topcoder.direct.services.view.dto.copilot.CopilotSkillDTO;
import com.topcoder.direct.services.view.dto.copilot.CopilotStatDTO;
import com.topcoder.direct.services.view.dto.dashboard.DashboardContestSearchResultDTO;
import com.topcoder.direct.services.view.dto.dashboard.DashboardCostBreakDownDTO;
import com.topcoder.direct.services.view.dto.dashboard.DashboardMemberSearchResultDTO;
import com.topcoder.direct.services.view.dto.dashboard.DashboardProjectSearchResultDTO;
import com.topcoder.direct.services.view.dto.dashboard.EnterpriseDashboardContestStatDTO;
import com.topcoder.direct.services.view.dto.dashboard.EnterpriseDashboardDetailedProjectStatDTO;
import com.topcoder.direct.services.view.dto.dashboard.EnterpriseDashboardProjectStatDTO;
import com.topcoder.direct.services.view.dto.dashboard.EnterpriseDashboardStatType;
import com.topcoder.direct.services.view.dto.dashboard.billingcostreport.BillingCostReportEntryDTO;
import com.topcoder.direct.services.view.dto.dashboard.billingcostreport.InvoiceRecordBriefDTO;
import com.topcoder.direct.services.view.dto.dashboard.billingcostreport.PaymentType;
import com.topcoder.direct.services.view.dto.dashboard.costreport.CostDetailsDTO;
import com.topcoder.direct.services.view.dto.dashboard.participationreport.ParticipationAggregationReportDTO;
import com.topcoder.direct.services.view.dto.dashboard.participationreport.ParticipationBasicReportDTO;
import com.topcoder.direct.services.view.dto.dashboard.pipeline.PipelineDraftsRatioDTO;
import com.topcoder.direct.services.view.dto.dashboard.pipeline.PipelineScheduledContestsViewType;
import com.topcoder.direct.services.view.dto.dashboard.projectreport.ProjectMetricsReportEntryDTO;
import com.topcoder.direct.services.view.dto.dashboard.specialistreport.PlatformSpecialistReportDTO;
import com.topcoder.direct.services.view.dto.dashboard.volumeview.EnterpriseDashboardVolumeViewDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.ContestPipelineDrillInDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.EnterpriseDashboardMonthPipelineDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.EnterpriseDashboardMonthProjectPipelineDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.EnterpriseDashboardProjectFinancialDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.EnterpriseDashboardProjectsWidgetDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.EnterpriseDashboardTotalSpendDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.ProjectPipelineDrillInDTO;
import com.topcoder.direct.services.view.dto.enterpriseDashboard.TotalSpendDrillInDTO;
import com.topcoder.direct.services.view.dto.project.LatestProjectActivitiesDTO;
import com.topcoder.direct.services.view.dto.project.ProjectBriefDTO;
import com.topcoder.direct.services.view.dto.project.ProjectContestDTO;
import com.topcoder.direct.services.view.dto.project.ProjectContestsListDTO;
import com.topcoder.direct.services.view.dto.project.ProjectCopilotDTO;
import com.topcoder.direct.services.view.dto.project.ProjectCopilotStatDTO;
import com.topcoder.direct.services.view.dto.project.ProjectForumStatusDTO;
import com.topcoder.direct.services.view.dto.project.ProjectForumTemplateDTO;
import com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO;
import com.topcoder.direct.services.view.dto.project.ProjectStatsDTO;
import com.topcoder.direct.services.view.dto.project.ProjectStatusType;
import com.topcoder.direct.services.view.dto.project.milestone.MilestoneContestDTO;
import com.topcoder.direct.services.view.dto.search.ContestSearchResult;
import com.topcoder.direct.services.view.dto.search.ProjectSearchResult;
import com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm;
import com.topcoder.management.deliverable.Submission;
import com.topcoder.management.deliverable.Upload;
import com.topcoder.management.project.ProjectStatus;
import com.topcoder.marathonmatch.service.dto.MMDownloadSubmissionDTO;
import com.topcoder.security.TCSubject;
import com.topcoder.service.facade.contest.CommonProjectContestData;
import com.topcoder.service.facade.contest.ForumPoster;
import com.topcoder.service.facade.contest.ProjectSummaryData;
import com.topcoder.service.project.ProjectData;
import com.topcoder.shared.dataAccess.DataAccess;
import com.topcoder.shared.dataAccess.Request;
import com.topcoder.shared.dataAccess.resultSet.ResultSetContainer;
import com.topcoder.shared.dataAccess.resultSet.ResultSetContainer.ResultSetRow;
import com.topcoder.shared.dataAccess.resultSet.TCResultItem;
import com.topcoder.shared.util.DBMS;
import com.topcoder.web.common.CachedDataAccess;
import com.topcoder.web.common.cache.MaxAge;
import com.topcoder.web.common.tag.HandleTag;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.Transformer;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.CookieStore;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.protocol.ClientContext;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.protocol.BasicHttpContext;
import org.apache.http.protocol.HttpContext;
import org.apache.http.util.EntityUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CreationHelper;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.util.WorkbookUtil;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xhtmlrenderer.pdf.ITextRenderer;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TimeZone;
/**
* <p>An utility class providing the methods for getting various data from persistent data store. Such a data is usually
* obtained using pre-defined queries from <code>Query Tool</code> and this utility class provides the methods which
* translate into calls to appropriate queries from <code>Query Tool</code>.</p>
*
* <p>Sub-sequent assemblies may expand this class with additional methods for calling other queries when there is a
* need or they can fully re-work the concept of data provider.</p>
*
* <p>
* Version 2.0 - Direct Search Assembly - add search and filtering for searchUserProjects,searchUserContests
* </p>
* <p>
* Version 2.1 - Edit Software Contests Assembly - identify if it is software or studio in search contest result
* </p>
*
* <p>
* Version 2.1.1 (Direct Software Submission Viewer Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #setSoftwareSubmissionsData(SoftwareContestSubmissionsDTO)} method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.2 (Direct Enterprise Dashboard Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #getEnterpriseProjectStats(List)} method.</li>
* <li>Added {@link #getAllProjectCategories()} method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.3 (Direct Contest Dashboard Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #getContestDashboardData(long, boolean, boolean)} method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.4 (Direct Project Dashboard Assembly 1.0) Change notes:
* <ol>
* <li>Updated {@link #getContestDashboardData(long, boolean, boolean)},
* {@link #getSoftwareContestDashboardData(long, boolean)} and {@link #getStudioContestDashboardData(long, boolean)}
* methods to add cached model.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.5 (Direct Pipeline Stats Update Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #getPipelineDraftsRatioStats(PipelineScheduledContestsViewType, long)} method.</li>
* </ol>
* </p>
* <p>
* Version 2.1.6 (TC Direct Manage Copilots Assembly 1.0) Change notes:
* <ol>
* <li>Added getCopilotProjects method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.7 (Direct Release 6 Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #getTopCoderDirectFacts()} method to calculate stats for bug races.</li>
* </ol>
* </p>
* <p>
* Version 2.1.8 (Direct Manage Copilot Postings Assembly 1.0) Change notes:
* <ol>
* <li>Added {@link #getCopilotPostingContests(TCSubject)} method.</li>
* <li>Added {@link #getCurrentPhases(long)} method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.1.9 (Cockpit - Enterprise Dashboard 2 Assembly 1.0) Change notes:
* <ol>
* <li>Renamed <code>getEnterpriseStatsForProject</code> method to <code>getEnterpriseStatsForProjects</code> and
* updated it to accept additional parameters for client and billing account IDs.</li>
* </ol>
* </p>
*
* <p>
* Version 2.2.0 (Cockpit - Enterprise Dashboard 3 Assembly 1.0) Change notes:
* <ol>
* <li>Added <code>{@link #getEnterpriseStatsForContests(long[],long[], Date, Date, long[], long[])}</code> method </li>
* </ol>
* </p>
*
* <p>
* Version 2.2.0 (Cockpit - Enterprise Dashboard 3 Assembly 1.0) Change notes:
* <ol>
* <li>Added <code>{@link #getEnterpriseStatsForAllContests(long[], Date, Date)}</code> method </li>
* </ol>
* </p>
*
* <p>
* Version 2.2.0 (Cockpit - Enterprise Dashboard 3 Assembly 1.0) Change notes:
* <ol>
* <li>Added <code>{@link #getEnterpriseContestsAvgStatus(long[], Date, Date)}</code> method </li>
* </ol>
* </p>
* <p>
* Version 2.3.0 (TC Direct - Software Creation Update Assembly 1.0) Change notes:
* <ol>
* <li>Add method getCopilotsForDirectProject to get copilots of the direct project</li>
* </ol>
* </p>
* <p>
* Version 2.4.0 (TC Cockpit - Cost Report Assembly 1.0) Change notes:
* <ol>
* <li>Add method getDashboardCostReportDetails to get cost details of each contest with specified filters.</li>
* </ol>
* </p>
* <p>
* Version 2.5.0 (Cockpit Performance Improvement Project Overview and Manage Copilot Posting) Change notes:
* <ol>
* <li>Update method getLatestActivitiesForUserProjects - a new request input 'tcdirectid' is added to
* query 'direct_latest_activities', we set it to 0 in this method to get data for all user projects</li>
* <li>Update method getLatestActivitiesForProject - update the method to use query 'direct_latest_activities'
* with a new request input 'tcdirectid', is set to the id of the direct project. The method is no longer
* depends on getLatestActivitiesForUserProjects which affected the performance.</li>
* <li>Update method getUpcomingActivitiesForUserProjects - a new request input 'tcdirectid' is added to
* query 'direct_upcoming_activities', we set it to 0 in this method to get data for all user projects</li>
* <li>Add a new method getUpcomingActivitiesForProject - the method uses query 'direct_upcoming_activities'
* with a new request input 'tcdirectid', is set to the id of the direct project.</li>
* <li>Add a new method getProjectContestsHealth - the method uses a new query
* 'direct_project_overview_contests_health' to get the contest health data of all the active and scheduled
* contests of the specified project.</li>
* <li>update method getProjectStats to use a simplified query 'direct_project_overview_statistics'.</li>
* <li>update method getCopilotPostingContests to use query 'direct_my_copilot_postings' to improve the
* performance</li>
* </ol>
* </p>
* <p>
* Version 2.6.0 (TC Cockpit Billing Cost Report Assembly 1.0) Change notes:
* <ol>
* <li>Rename method getDashboardClientBillingProjectMappingsForAdmin to
* getDashboardClientBillingProjectMappings, because it's not only for admin user. Removes the argument projects
* which is not needed.</li>
* <li>Add method.</li>
* </ol>
* </p>
*
* <p>
* Version 2.6.1 (TC Cockpit Enterprise Dashboard Update Cost Breakdown Assembly) Change notes:
* <ol>
* <li>Added {@link #getDashboardCostBreakDown(long[], long[], Date, Date)} method to get the cost break down data
* for contests or market.</li>
* </ol>
* </p>
*
* <p>
* Version 2.6.2 (TC Cockpit Bug Tracking R1 Cockpit Project Tracking version 1.0) Change notes:
* <ol>
* <li>Added (@link #getDirectProjectIssues(List<? extends ContestBriefDTO>)} to get issues of the direct project.</li>
* </ol>
* </p>
*
* <p>
* Version 2.6.3 (TC Direct - Page Layout Update Assembly) Change notes:
* <ol>
* <li>Updated {@link #getCopilotPostingContests(TCSubject)} method to get a list of ProjectContestDTO.</li>
* </ol>
* </p>
* <p>
*
* Version 2.6.4 (TC Cockpit Contest Duration Calculation Updates Assembly 1.0) Change notes:
* <ol>
* <li>Updated {@link #getDirectProjectStats(List, long)} method to calculate average contest duration for project.
* </li>
* </ol>
* </p>
*
* <p>
* Version 2.6.5 (Project Health Update Assembly 1.0) Change notes:
* <ol>
* <li>Updated {@link #getStudioContestDashboardData(long, boolean)} method to calculate current and next phases for
* <code>Studio</code> contests.</li>
* </ol>
* </p>
*
* <p>
* Version 2.6.6 (TC Direct Contest Dashboard Update Assembly) Change notes:
* <ol>
* <li>Updated {@link #getSoftwareContestDashboardData(long, boolean)} method to get all phases.</li>
* <li>Updated {@link #getStudioContestDashboardData(long, boolean)} method to set reg progress percent.</li>
* </ol>
* </p>
* <p>
* Version 2.6.7 (Release Assembly - TC Cockpit Enterprise Dashboard Update Assembly 1) Change notes:
* <ol>
* <li>Add {@link #getEnterpriseDashboardSummaryRange(long[], long[], java.util.Date, java.util.Date, long[], long[])}
* method to get the min and max values of contest duration and contest cost of customer and market.
* </li>
* </ol>
* </p>
<p>
* Version 2.6.8 (Release Assembly - Cockpit Customer Right Sidebar and Active Contests Coordination) Change notes:
* <ol>
* <li>Updated {@link #getUserProjects(long)} method to get add customers data.</li>
* <li>Updated {@link #getActiveContests(long)} method to add customer id of each active contest.</li>
* </ol>
* </p>
*
* <p>
* Version 2.7.0 (Direct Replatforming Release 4) Change notes:
* <ol>
* <li>Remove the method getStudioContestDashboardData.</li>
* <li>Update {@link # getProjectContests(long, long)} to use the new
* direct_my_contests_replatformingg query</li>
* <li>Update {@link # getActiveContests(long)} to use the new
* direct_active_contests_replatforming query</li>
* </ol>
* </p>
*
* <p>Version 2.8.0 (Release Assembly - TopCoder Cockpit Project Overview Update 1) change notes:
* <ul>
* <li>Add method {@link #getDirectProjectCopilotStats(long)} to get copilots statistics
* for project overview page </li>
* <li>Add method {@link #getCopilotProject(long, long)} to get copilots data of direct project</li>
* <li>Update method {@link #getCopilotProjects(long)}</li>
* <li>Added method {@link #getTopCoderDirectProjectForumThreadsCount(Long)}.</li>
* <li>Added method {@link #getProjectForumStatus(long, long)}.</li>
* </ul>
* </p>
*
* <p>
* Version 2.9.0 (TC Cockpit Participation Metrics Report Part One Assembly 1) change notes:
* <ol>
* <li>Added {@link #getDashboardParticipationReport(long, long[], long, long, String[], Date, Date, List, List)}
* method to get the participation metrics report.</li>
* </ol>
* </p>
*
* <p>
* Version 2.9.1 (TC Cockpit Permission and Report Update One) change log:
* <ol>
* <li>Added a parameter <code>TCSubject</code> to
* method {@link #getDashboardCostBreakDown(TCSubject, long[], long[], Date, Date)}. The parameter is used to check the permission.</li>
* <li>Added a parameter <code>TCSubject</code> to
* method {@link #getDashboardParticipationReport(TCSubject, long, long[], long, long, String[], Date, Date, List, List)}. The parameter
* is used to check the permission.</li>
* <li>Added a parameter <code>TCSubject</code> to
* method {@link #getDashboardCostReportDetails(TCSubject, long, long[], long[], long, long, long[], Date, Date, Map)}. The parameter
* is used to check the permission.</li>
* <li>Added a parameter <code>TCSubject</code> to
* method {@link #getDashboardBillingCostReport(TCSubject, long, long[], long[], long[], long, long, long[], long, Date, Date, Map, Map)}.
* The parameter is used to check the permission.</li>
* <li>Added {@link #setReportQueryParameters(Request, TCSubject, long, long, long)} method to set common query parameters
* for report query.</li>
* <li>Methods {@link #getDashboardParticipationReport(TCSubject, long, long[], long, long, String[], Date, Date, List, List)}
* and {@link #getDashboardCostReportDetails(TCSubject, long, long[], long[], long, long, long[], Date, Date, Map)}
* and {@link #getDashboardBillingCostReport(TCSubject, long, long[], long[], long[], long, long, long[], long, Date, Date, Map, Map)}
* were updated to use {@link #setReportQueryParameters(Request, TCSubject, long, long, long)} to set the common query parameters.</li>
* <li>Added method {@link #setUserPermissionQueryParameter(Request, TCSubject)} method to set user parameter for report query to check
* the user's permission.</li>
* </ol>
* </p>
*
* <p>
* Version 2.9.1 (TC Accounting Tracking Invoiced Payments) change notes:
* <ol>
* <li>Added {@link #concatenate(Iterable, String)} method to concatenate iterable objects to string.</li>
* <li>Added {@link #getInvoiceRecordRelatedData(List, List)} method to get the invoice record related data for payment data.</li>
* <li>Updated {@link #getDashboardBillingCostReport(InvoiceRecordDAO, List, long[], long[], long[], long[], long[], long[], long[], long, Date, Date, Map, Map)}
* method to get payment_id, processed fields for billing cost data.</li>
* </ol>
* </p>
*
* <p>
* Version 3.0 (Release Assembly - TC Cockpit Enterprise Dashboard Volume View Assembly) change notes:
* <ol>
* <li>Added {@link #getEnterpriseDashboardVolumeView(long, long, long, long[], java.util.Date, java.util.Date)} .</li>
* </ol>
* </p>
*
* </ol>
* </p>
*
* <p>
* Changes in version 3.1 (Release Assembly - TopCoder Cockpit DataTables Filter Panel and Search Bar):
* <ol>
* <li>Added {@link #getProjectsCustomers(long[])} ()} method.</li>
* <li>Updated {@link #searchUserProjects(com.topcoder.security.TCSubject, String)} to add customer information</li>
* </ol>
* </p>
*
* <p>
* Version 3.2 (Release Assembly - TC Direct Select From Copilot Pool Assembly) Change notes:
* <ol>
* <li>Added {@link #getMemberPhotos(long[])} method to retrieve member photos.</li>
* </ol>
* </p>
*
* <p>
* Version 3.3 (TC Accounting Tracking Invoiced Payments Part 2) change log:
* <ol>
* <li>Removed <code>invoiceRecordDAO</code> from the parameter list from
* {@link #getDashboardBillingCostReport(List, TCSubject, long, long[], long[], long[], long, long, long[], long, Date, Date, Map, Map)}.</li>
* <li>Updated {@link #getDashboardBillingCostReport(List, TCSubject, long, long[], long[], long[], long, long, long[], long, Date, Date, Map, Map)}
* to populate the invoice number, invoice id and payment description.</li>
* </ol>
* </p>
*
* <p>
* Version 3.4 (Module Assembly - TC Cockpit Project Overview Project General Info) change log:
* <ol>
* <li>Add method {@link #setProjectGeneralInfo(com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO)}
* to retrieve the project general information for project overview page.
* </li>
* </ol>
* </p>
*
* <p>
* Version 3.5 (Release Assembly - TC Cockpit Edit Project and Project General Info Update) change log:
* <ol>
* <li>Updated method method {@link #setProjectGeneralInfo(com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO)}
* to set projected duration and projected cost of the project.</li>
* </ol>
* </p>
*
* <p>
* Version 3.6 (Release Assembly - TC Direct Cockpit Release Two) change log:
* <ol>
* <li>Add method ${@link #setSoftwareCheckpointSubmissionsData(com.topcoder.direct.services.view.dto.contest.SoftwareContestSubmissionsDTO)}.</li>
* </ol>
* </p>
*
* <p>
* Version 3.7 (Release Assembly - TC Cockpit All Projects Management Page Update) change log:
* <ol>
* <li>
* Update method {@link #getProjectData(com.topcoder.security.TCSubject)} to add project forum data.
* </li>
* </ol>
* </p>
*
* <p>
* Version 3.8 (Release Assembly - TC Direct Cockpit Release Four) change log:
* <ol>
* <li>
* Update method {@link #setSoftwareSubmissionsData(com.topcoder.direct.services.view.dto.contest.SoftwareContestSubmissionsDTO)}
* to not set winner if the submission is not passed review.
* </li>
* </ol>
* </p>
*
* <p>
* Version 3.8.1 (Release Assembly - TC Cockpit - Member Participation Metrics Report Performance Enhancement Assembly)
* Change notes:
* <ol>
* <li>Updated {@link #getDashboardParticipationReport(TCSubject, long, long[], long, long, String[], Date, Date,
* ParticipationBasicReportDTO, List, List, List, List)} method to load report data from TCS_DW database instead of
* TCS_CATALOG database.</li>
* </ol>
* </p>
* <p>
* Version 3.9 (Module Assembly - Add Monthly Platform Fee Feature to Admin Page) change log:
* <ol>
* <li>
* Update method {@link #getDashboardBillingCostReport(List, TCSubject, long, long[], long[], long[],
* long, long, long[], long, String, Date, Date, Map, Map)} and method {@link #getInvoiceRecordRelatedData(
* List, List, List)} to support the platform fee records.
* </li>
* </ol>
* </p>
*
* <p>
* Version 3.9 (Module Assembly - TC Cockpit Public Page for TopCoder Road map and RSS syndication) change log:
* <ol>
* <li>Add method {@link #getDirectProjectsForClient(String)}</li>
* </ol>
* </p>
*
* <p>
* Version 3.10 (Release Assembly - TopCoder Cockpit Software Checkpoint Management) change log:
* <ol>
* <li>Updated method {@link #setSoftwareCheckpointSubmissionsData(SoftwareContestSubmissionsDTO)}
* to support software checkpoint management.</li>
* </ol>
* </p>
*
* <p>
* Version 4.0 (Module Assembly - TC Cockpit Project Contests Batch Edit)
* <ol>
* <li>Update {@link #getProjectContests(long, long)} to add billing account info for the contest</li>
* <li>Add method {@link #getAllProjectCategoriesGrouped()}</li>
* </ol>
* </p>
*
* <p>
* Version 4.1 (Release Assembly - TopCoder Cockpit Project Contest Results
* Export Part 1)
* <ol>
* <li>Add method for exporting contests submissions.</li>
* </ol>
* </p>
*
* <p>
* Version 4.2 (Release Assembly - TC Direct Cockpit Release Five)
* <ol>
* <li>Update method {@link #getContestDashboardData(long, boolean, boolean)} to always set registration health to
* healthy for copilot posting</li>
* <li>Update method {@link #getContestReceipt(long, boolean)} to add contest launcher info</li>
* <li>Update method {@link #getProjectContestsHealth(long, long, boolean)} to always set registration health to
* healthy for copilot posting</li>
* </ol>
* Version 4.3 (Module Assembly - TC Cockpit Project Metrics Report ) change log:
* <ol>
* <li>Add method {@link #getDashboardProjectMetricsReport(TCSubject, long, long, long, String[],
Date, Date, List<ProjectMetricsReportEntryDTO>)}</li> method to load project metrics report data.</li>
* </ol>
* </p>
*
*
* <p>
* Version 4.3 (Module Assembly - TopCoder Cockpit New Enterprise Dashboard Setup and Financial part)
* <ol>
* <li>Update method {@link #getUserProjects(long)} and {@link #getUserProjectsList(long)}</li>
* <li>Add method {@link #getAllDirectProjectStatus()}</li>
* <li>Add method {@link #getEnterpriseDashboardProjectsFinancialInfo(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)}</li>
* <li>Add method {@link #getEnterpriseDashboardTotalSpend(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)}</li>
* </ol>
* </p>
* <p>
* Version 4.4 (Release Assembly - TC Direct Project Forum Configuration Assembly)
* <ol>
* <li>Added {@link #getDirectProjectForumTemplates(long)} method.</li>
* </ol>
* </p>
*
* <p>
* Version 4.5 (Module Assembly - TC Cockpit Enterprise Dashboard Pipeline Part) changes:
* <ol>
* <li>Add method {@link #getEnterpriseDashboardContestsPipeline(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)}</li>
* </ol>
* </p>
*
* <p>
* Version 4.6 (Release Assembly - TC Direct Cockpit Release Six) changes:
* <ol>
* <li>Add method {@link #getInvoiceNumbersFromBilling(long)}</li>
* <li>Add method {@link #getProjectsForInvoiceNumberAndBilling(String, long)}</li>
* </ol>
* </p>
*
* <p>
* Version 4.6.1 (Release Assembly - TopCoder Security Groups Release 5 v1.0) changes:
* <ol>
* <li>Updated {@link #getProjectData(TCSubject)} to populate <code>hasWritePermission</code> field.</li>
* </ol>
* </p>
*
* <p>
* Version 4.7 (Module Assembly - TopCoder Cockpit New Enterprise Dashboard Roadmap part)
* <ol>
* <li>Updated {@link #getEnterpriseDashboardFilteredProjectIds(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)}</li>
* <li>Added {@link #getEnterpriseDashboardFilteredProjects(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)} method.</li>
* </ol>
* </p>
*
* <p>
* Version 4.8 (Module Assembly - JIRA issues loading update and report creation)
* <ol>
* <li>Add method {@link #getDashboardJiraIssuesReport(com.topcoder.security.TCSubject, long, long, long, long[], java.util.Date, java.util.Date)}</li>
* </ol>
* </p>
*
* <p>
* Version 4.9 (Module Assembly - TopCoder Copilot Feedback Integration) changes:
* <ol>
* <li>Add method {@link #getAllCopilotFeedback()}</li>
* </ol>
* </p>
*
* <p>
* Version 5.0 (Release Assembly - TC Direct Cockpit Release Seven version 1.0)
* <ul>
* <li>Updated method {@link #getDashboardCostReportDetails(com.topcoder.security.TCSubject, long, long[], long[], long, long, long[], java.util.Date, java.util.Date, java.util.Map)} to store launch date</li>
* <li>Updated method {@link #getActiveContests(long)} to detect contest stalled status</li>
* <li>Updated method {@link #getContestReceipt(long, boolean)} to store showReceipt flag</li>
* </ul>
* </p>
*
* <p>
* Version 5.1 (TC Cockpit - Member Participation Metrics Report Upgrade)
* <ol>
* <li>Updated method{@link #getDashboardParticipationReport(TCSubject, long, long[], long, long, String[],
* java.util.Date, java.util.Date, ParticipationBasicReportDTO, List, List, List, List)} to fetch the
* member participation contest report </li>
* <li>Added method {@link #getDashboardParticipationExcelData(TCSubject, long, long[], long,
* long, String[], java.util.Date, java.util.Date,String)} to get the contest participation metrics excel data with
* the given parameters. </li>
* </ol>
* </p>
*
* <p>
* Version 5.2 (Module Assembly - TC Cockpit Operations Dashboard For PMs) changes:
* <ol>
* <li>Refactor method {@link #searchUserProjects(TCSubject, String)}, decompose a new method method
* {@link #getFilteredProjects(String, List<ProjectSummaryData>)} that can be reused.</li>
* <li>Added method {@link #getFilteredProjects(String, List)} to Search the project by
* searchFor criteria, and set the customer id to the project dto.</li>
* <li>Added method {@link #searchPMUserProjects(TCSubject, String)} to get the details on Platform Managers'
* projects associated with specified user and matching the specified criteria for operations dashboard page</li>
* <li>Added method {@link #getPMProjectData(TCSubject)} to get the list of Platform Managers' project summary data
* associated with specified user.</li>
* </ol>
* </p>
*
* <p>
* Version 5.3 (Release Assembly - TopCoder Direct Billing Project Links)
* <ul>
* <li>Update {@link #getProjectsCustomers(long[])} to use new queries</li>
* <li>Update {@link #getDirectProjectsForClient(String)} to use new queries</li>
* <li>Add method {@link #getDashboardClientBillingProjectMappingsV2(com.topcoder.security.TCSubject)}</li>
* </ul>
* </p>
*
*
* <p>
* Version 5.4 (Module Assembly - TC Cockpit Enterprise Dashboard Analysis 1)
* <ol>
* <li>Update method {@link #getEnterpriseDashboardVolumeView(long, long, long, long[], java.util.Date, java.util.Date, boolean)}</li>
* </ol>
* </p>
* <p>
* Version 5.5 (Module Assembly - TC Client Users Stats Report Generation v1.0) changes:
* <ol>
* <li>Add method {@link #getClientUserStats()}</li>
* </ol>
* </p>
*
* <p>
* Version 5.6 (Module Assembly - Cockpit Copilot Posting Registrants Analysis)
* <ul>
* <li>
* Add method {@link #setCopilotFullStatistics(java.util.List, long)}
* </li>
* </ul>
* </p>
*
* <p>
* Version 5.7 (Release Assembly - TC Direct Cockpit Release Eight)
* <ul>
* <li>
* Update method {@link #getPMProjectData(com.topcoder.security.TCSubject)} to add late status.
* </li>
* <li>
* Update method {@link #getActiveContests(long)} to add multiple active phases and late status.
* </li>
* </ul>
* </p>
*
* <p>
* Version 5.8 (Release Assembly - TC Cockpit Operations Dashboard Bug Fix and Improvements 1)
* <ol>
* <li>Add method {@link #getLatestThreePosters(String)}</li>
* </ol>
* </p>
*
* <p>
* Version 5.9 (Module Assembly - TC Cockpit Invoice History Page Update)
* <ol>
* <li>Update method {@link #getInvoiceRecordRelatedData(List, List, List)} to add cockpit project id.</li>
* <li>Add method {@link #getRelatedSecondInstallment(List, List)} to get second installment data.</li>
* </ol>
* </p>
* <p>
*
* Version 6.0 (Release Assembly - TC Cockpit Enterprise Dashboard Project Pipeline and Project Completion Date Update)
* <ol>
* <li>
* Update method {@link #getActiveContests(long)} to include the checkpoint / final submission number and isMultipleRound.
* </li>
* </ol>
* </p>
*
* Version 6.1 (Release Assembly - TC Cockpit Enterprise Dashboard Project Pipeline and Project Completion Date Update)
* <ol>
* <li>
* Updted {@link #setProjectGeneralInfo(com.topcoder.direct.services.view.dto.project.ProjectGeneralInfoDTO)} to
* use completion date to calculate project actual duration if the project is completed
* </li>
* <li>
* Add method {@link #getEnterpriseDashboardProjectsPipeline(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)}
* to gets the projects pipeline data.
* </li>
* </ol>
* </p>
*
* <p>
* Version 6.2 (Module Assembly - Cockpit Copilot Posting Skills Update and Submission Revamp)
* <ul>
* <li>
* Update the method {@link #setCopilotFullStatistics(java.util.List, long)} to set the copilot profile id,
* positive and negative feedback number.
* </li>
* <li>
* Add the method {@link #getCopilotSkillRules()} to get all the copilot skill rules.
* </li>
* </ul>
* </p>
*
* <p>
* Version 6.3 (Release Assembly - TC Cockpit New Enterprise Dashboard Release 1)
* <ul>
* <li></li>
* </ul>
* </p>
*
* <p>
* Version 6.3 (Module Assembly - TopCoder Cockpit Instant Search)
* <ul>
* <li>Add method {@link #getInstantSearchResult(String, long)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.4 (Release Assembly - Cockpit Enterprise Dashboard Chart Drill-In)
* <ul>
* <li>Add method {@link #getEnterpriseDashboardTotalSpendDrillIn(EnterpriseDashboardFilterForm)}</li>
* <li>Add method {@link #getEnterpriseDashboardContestsPipelineDrillIn(EnterpriseDashboardFilterForm)}</li>
* <li>Add method {@link #getEnterpriseDashboardProjectsPipelineDrillIn(EnterpriseDashboardFilterForm)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.5 (Module Assembly - TC Cockpit Operations Dashboard Improvements 2)
* <ul>
* <li>Update method {@link #getPMProjectData}</li>
* </ul>
* </p>
*
* <p>
* Version 6.6 (Release Assembly - TopCoder Cockpit - Launch Contest Update for Marathon Match)
* <ul>
* <li>Add method {@link #getActiveProblemSet()}</li>
* </ul>
* </p>
*
* <p>
* Version 6.7 (Release Assembly - TC Cockpit New Enterprise Dashboard Release 2)
* <ul>
* <li>Adds method {@link #getFilteredProjectsResult(int, int, long, long[], long, String)}</li>
* <li>Updates method {@link #getEnterpriseDashboardTotalSpendDrillIn(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm, boolean)}</li>
* <li>Updates method {@link #getEnterpriseDashboardContestsPipelineDrillIn(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm, boolean)}</li>
* <li>Updates method {@link #getEnterpriseDashboardProjectsPipelineDrillIn(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm, boolean)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.8 (Module Assembly - TC Cockpit Platform Specialist Utilization Report and Graph)
* <ul>
* <li>Add method {@link #getPlatformSpecialistReportData(long, String, String)}</li>
* <li>Add method {@link #getAllPlatformSpecialists()}</li>
* </ul>
* </p>
*
* <p>
* Version 6.9(Module Assembly - TopCoder Direct Member Payments Dashboard Backend Assembly v1.0) change notes:
* <ol>
* <li>Added method {@link #getPullablePayments()}.</li>
* <li>Added method {@link #getPaymentsByStatus(Date, Date)}.</li>
* <li>Added method {@link #getPotentialMemberPayments(Date, Date)}.</li>
* <li>Added method {@link #getPaymentHistory(PaymentHistoryCriteria)}.</li>
* <li>Added method {@link #getPaymentsTrends(PaymentTrendSearchCriteria)}.</li>
* <li>Added method {@link #getTopMemberPayments(TopMemberPaymentCriteria)}.</li>
* </ol>
* <p>
*
* <p>
* Version 6.10 (System Assembly - TopCoder Direct Member Payments Dashboard v1.0) change notes:
* <ol>
* <li>Added method {@link #concatenate(int[], String)}.</li>
* <li>Updated method {@link #getPotentialMemberPayments(java.util.Date, java.util.Date, int[])}.</li>
* <li>Updated method {@link #getPaymentsTrends(PaymentTrendSearchCriteria)}</li>
* <li>Updated method {@link #getTopMemberPayments(TopMemberPaymentCriteria)}</li>
* </ol>
* <p>
*
* <p>
* Version 6.11 (Release Assembly - TopCoder Copilot Feedback Updates)
* <ul>
* <li>Updates {@link #getAllCopilotFeedback()} to fill added copilot feedback ratings data</li>
* </ul>
* </p>
* Version 6.12 (Release Assembly - TopCoder Security Groups Release 7)
* <ul>
* <li>Updates {@link #getDashboardBillingCostReport(java.util.List, com.topcoder.security.TCSubject, long, long[], long[], long[], long, long, long, String, java.util.Date, java.util.Date, java.util.Map)}
* to use the new commands. Each command has multiple splitted queries for the invoice report.</li>
* </ul>
* </p>
* <p>
* Version 6.13 (Release Assembly - TC Cockpit Project Total Cost Fixes)
* <ul>
* <li>Updates {@link #getPMProjectData(com.topcoder.security.TCSubject)} to add project level cost</li>
* <li>Updates {@link #getDashboardProjectMetricsReport(com.topcoder.security.TCSubject, long, long, long, long[], java.util.Date, java.util.Date, java.util.List)}</li>
* <li>Updates {@link #getDashboardCostBreakDown(com.topcoder.security.TCSubject, long[], long[], java.util.Date, java.util.Date)}</li>
* <li>UPdates {@link #getDashboardCostReportDetails(com.topcoder.security.TCSubject, long, long[], long[], long, long, long[], java.util.Date, java.util.Date, java.util.Map)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.14 (FAST! 72hr! Release Assembly - TopCoder Cockpit - Tracking Marathon Matches Progress Part 1 v1.0)
* <ul>
* <li>Add {@link #getMMSubmission} method. </li>
* </ul>
* </p>
*
* <p>
* Version 6.15 (Release Assembly - TC Cockpit Enterprise Dashboard Projected Cost and Project Health Page)
* <ul>
* <li>Updates method {@link #getEnterpriseDashboardTotalSpend(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm)} to add
* projected cost data</li>
* <li>Updates method {@link #getEnterpriseDashboardTotalSpendDrillIn(com.topcoder.direct.services.view.form.enterpriseDashboard.EnterpriseDashboardFilterForm, boolean)} to add
* projected cost data</li>
* </ul>
* </p>
*
* <p>
* Version 6.16 (Module Assembly - TopCoder Cockpit Project Planner)
* <ul>
* <li>Adds {@link #getProjectCopilotPostingContests(long)} to get copilot postings of a specific cockpit project</li>
* </ul>
* </p>
*
* <p>
* Version 6.17 (Release Assembly - TC Cockpit Bug Race Cost and Fees Part 1)
* <ul>
* <li>Updated {@link #getInvoiceRecordRelatedData(List, List, List, List)} to support
* JIRA bug race contest fees.</li>
* </ul>
* </p>
*
* <p>
* Version 6.18 (Release Assembly - TC Cockpit Bug Race Cost and Fees Part 2)
* <ul>
* <li>
* Updated method {@link #getDashboardCostReportDetails(com.topcoder.security.TCSubject, long, long[], long[], long, long, long[], java.util.Date, java.util.Date, java.util.Map)}
* to include project level bug race contest fee in the project level cost details.
* </li>
* </ul>
* </p>
*
* <p>
* Version 6.19 (Release Assembly - TC Cockpit JIRA Report Update)
* <ul>
* <li>Updated {@link #getDashboardJiraIssuesReport(com.topcoder.security.TCSubject,
* long, long, long, long[], java.util.Date, java.util.Date)} to
* accept project jira issues without contest id and contest name.</li>
* </ul>
* </p>
*
* <p>
* Version 6.20 (Release Assembly - TopCoder Cockpit Operations Dashboard Improvements 4 Assembly 1.0) Change notes:
* <ol>
* <li>Updated {@link #getPMProjectData(TCSubject)} method to retrieve the list of copilots for the TC Direct
* projects, maximum delay for the project's contests launching and late phases.</li>
* </ol>
* </p>
*
* <p>
* Version 6.21 Change notes:
* <ol>
* <li>Updated {@link #getContestFinalFixes(long)} method to set the submisison ID for final fix.</li>
* </ol>
* </p>
*
* <p>
* Version 6.22 (Module Assembly - TC Cockpit Contest Milestone Association Milestone Page Update)
* <ul>
* <li>Added method {@link #getMilestoneContestAssociations(long, long, long)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.23 (BUGR - 9794) Change notes:
* <ol>
* <li>Update method {@link #getMMSubmission(long, long)} to get the latest submission by default.</li>
* </ol>
* </p>
*
*
* Version 6.25 (Release Assembly - TopCoder Cockpit Navigation Update)
* <ul>
* <li>Added method {@link #getRecentItemsMaxNumber(long)}</li>
* <li>Added method {@link #getUserRecentDirectProjects(long)}</li>
* </ul>
* </p>
*
* <p>
* Version 6.26 (BUGR-10221 TopCoder Cockpit CMC Account ID for launching new contest)
* <ul>
* <li>Added method {@link #getBillingAccountFromCMCAccountID(String)} to get billing account id
* by CMC Account ID</li>
* </ul>
* </p>
*
* <p>
* Version 6.27 (Release Assembly - TC Cockpit Private Challenge Update)
* <ul>
* <li>Added method {@link #getSecurityGroupsForBillingAccount(long)} to get the group id & name
* of a billing account</li>