Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 667169d

Browse files
author
Dushyant Bhalgami
committed
allow multiple submissions for challenge type of Marathon Match
1 parent 68b7418 commit 667169d

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

services/contest_service_facade/src/java/main/com/topcoder/service/facade/contest/ejb/ContestServiceFacadeBean.java

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,10 +922,18 @@
922922
* <ul>
923923
* <li>Add enable effort hours</li>
924924
* </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>
925933
*
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
927935
* @author isv, GreatKevin, Veve, deedee, TCSCODER, TCSASSEMBLER
928-
* @version 3.13
936+
* @version 3.14
929937
*/
930938
@Stateless
931939
@TransactionManagement(TransactionManagementType.CONTAINER)
@@ -3223,6 +3231,17 @@ private boolean isStudio(SoftwareCompetition contest) {
32233231
return contest.getProjectHeader().getProjectCategory().getProjectType().getId() == ProjectType.STUDIO.getId();
32243232
}
32253233

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+
32263245
/**
32273246
* <p>
32283247
* Creates a new <code>SoftwareCompetition</code> in the persistence.
@@ -3783,7 +3802,7 @@ else if (isDevContest)
37833802
if (contest.getProjectHeader().getProperty(ProjectPropertyType.DIGITAL_RRUN_FLAG_PROJECT_PROPERTY_KEY) == null)
37843803
{ contest.getProjectHeader().setProperty(ProjectPropertyType.DIGITAL_RRUN_FLAG_PROJECT_PROPERTY_KEY, "On"); }
37853804

3786-
if(isF2FContest(contest) || isDesignF2FContest(contest)) {
3805+
if(isF2FContest(contest) || isDesignF2FContest(contest) || isMMContest(conetst)) {
37873806
contest.getProjectHeader().setProperty(ProjectPropertyType.ALLOW_MULTIPLE_SUBMISSIONS_PROPERTY_KEY, "true");
37883807
}
37893808

0 commit comments

Comments
 (0)