|
922 | 922 | * <ul>
|
923 | 923 | * <li>Add enable effort hours</li>
|
924 | 924 | * </ul>
|
| 925 | + * |
| 926 | + * Version 3.14 (Topcoder - Allow Multiple Subs for MM): |
| 927 | + * <ul> |
| 928 | + * <li>Added method {@link #isMMContest(com.topcoder.service.project.SoftwareCompetition)} to check if |
| 929 | + * the contest is of type Marathon Match</li> |
| 930 | + * <li>Updated method {@link #createUpdateAssetDTO(com.topcoder.security.TCSubject, com.topcoder.service.project.SoftwareCompetition)} |
| 931 | + * to set project properties For Marathon Match to allow multiple submissions.</li> |
| 932 | + * </ul> |
925 | 933 | *
|
926 |
| - * @author snow01, pulky, murphydog, waits, BeBetter, hohosky, isv, tangzx, GreatKevin, lmmortal, minhu, GreatKevin, tangzx |
| 934 | + * @author snow01, pulky, murphydog, waits, BeBetter, hohosky, isv, tangzx, GreatKevin, lmmortal, minhu, GreatKevin, tangzx, dushyantb |
927 | 935 | * @author isv, GreatKevin, Veve, deedee, TCSCODER, TCSASSEMBLER
|
928 |
| - * @version 3.13 |
| 936 | + * @version 3.14 |
929 | 937 | */
|
930 | 938 | @Stateless
|
931 | 939 | @TransactionManagement(TransactionManagementType.CONTAINER)
|
@@ -3223,6 +3231,17 @@ private boolean isStudio(SoftwareCompetition contest) {
|
3223 | 3231 | return contest.getProjectHeader().getProjectCategory().getProjectType().getId() == ProjectType.STUDIO.getId();
|
3224 | 3232 | }
|
3225 | 3233 |
|
| 3234 | + /** |
| 3235 | + * Checks if the contest is of type Marathon Match. |
| 3236 | + * |
| 3237 | + * @param contest the contest |
| 3238 | + * @return true if yes |
| 3239 | + * @since 3.14 |
| 3240 | + */ |
| 3241 | + private boolean isMMConetst(SoftwareCompetition contest) { |
| 3242 | + return contest.getProjectHeader().getProjectCategory().getId() == ProjectCategory.MARATHON_MATCH.getId(); |
| 3243 | + } |
| 3244 | + |
3226 | 3245 | /**
|
3227 | 3246 | * <p>
|
3228 | 3247 | * Creates a new <code>SoftwareCompetition</code> in the persistence.
|
@@ -3783,7 +3802,7 @@ else if (isDevContest)
|
3783 | 3802 | if (contest.getProjectHeader().getProperty(ProjectPropertyType.DIGITAL_RRUN_FLAG_PROJECT_PROPERTY_KEY) == null)
|
3784 | 3803 | { contest.getProjectHeader().setProperty(ProjectPropertyType.DIGITAL_RRUN_FLAG_PROJECT_PROPERTY_KEY, "On"); }
|
3785 | 3804 |
|
3786 |
| - if(isF2FContest(contest) || isDesignF2FContest(contest)) { |
| 3805 | + if(isF2FContest(contest) || isDesignF2FContest(contest) || isMMContest(conetst)) { |
3787 | 3806 | contest.getProjectHeader().setProperty(ProjectPropertyType.ALLOW_MULTIPLE_SUBMISSIONS_PROPERTY_KEY, "true");
|
3788 | 3807 | }
|
3789 | 3808 |
|
|
0 commit comments