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

Commit ee3f2d9

Browse files
committed
Add Basic Marathon Match Creation And Update In Direct App
1 parent b075276 commit ee3f2d9

File tree

19 files changed

+1176
-125
lines changed

19 files changed

+1176
-125
lines changed

components/project_management/build.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
<property name="typesafe_enum.jar.name" value="typesafe_enum.jar" />
139139
<property name="typesafe_enum.path" value="typesafe_enum/${typesafe_enum.version}" />
140140
<property name="typesafe_enum.jar" value="${tcs_libdir}/${typesafe_enum.path}/${typesafe_enum.jar.name}" />
141+
<property name="shared.jar.name" value="shared.jar"/>
142+
<property name="shared.jar" value="${tcs_libdir}/${shared.jar.name}"/>
143+
141144
<!-- 3rd Party Dependencies -->
142145
<property name="jaxb-api.jar" value="${ext_libdir}/jaxb/2.1.7/jaxb-api.jar"/>
143146
<property name="junit.jar" value="${ext_libdir}/junit/3.8.2/junit.jar"/>
@@ -167,6 +170,7 @@
167170
<pathelement location="${data_validation.jar}" />
168171
<pathelement location="${configdir}" />
169172
<pathelement location="${testfiles}" />
173+
<pathelement location="${shared.jar}" />
170174
</path>
171175

172176
<path id="test.build.classpath">
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/*
2+
* Copyright (C) 2017 TopCoder Inc., All Rights Reserved.
3+
*/
4+
package com.topcoder.management.project;
5+
6+
import java.io.Serializable;
7+
import java.util.Date;
8+
9+
/**
10+
* <p>
11+
* This is a MMContest entity which represents the Marathon Match Contest entry.
12+
* </p>
13+
*
14+
* @author TCSCODER
15+
* @version 1.0
16+
*/
17+
public class MMContest implements Serializable {
18+
/**
19+
* Contest Id
20+
*/
21+
private long id = -1L;
22+
23+
/**
24+
* Contest name
25+
*/
26+
private String name;
27+
28+
/**
29+
* Contest start_date
30+
*/
31+
private Date startDate;
32+
33+
/**
34+
* Contest end_date
35+
*/
36+
private Date endDate;
37+
38+
/**
39+
* Contest registration end date
40+
*/
41+
private Date regEndDate;
42+
43+
/**
44+
* Default ctor
45+
*/
46+
public MMContest() {
47+
48+
}
49+
50+
/**
51+
* Getter contest_id
52+
* @return id
53+
*/
54+
public long getId() {
55+
return id;
56+
}
57+
58+
/**
59+
* Setter for contest id
60+
* @param id contest id
61+
*/
62+
public void setId(long id) {
63+
this.id = id;
64+
}
65+
66+
/**
67+
* Getter contest name
68+
* @return contest name
69+
*/
70+
public String getName() {
71+
return name;
72+
}
73+
74+
/**
75+
* Setter contest name
76+
* @param name contest name
77+
*/
78+
public void setName(String name) {
79+
this.name = name;
80+
}
81+
82+
/**
83+
* Getter contest start_date
84+
* @return contest start_date
85+
*/
86+
public Date getStartDate() {
87+
return startDate;
88+
}
89+
90+
/**
91+
* Setter contest start_Date
92+
* @param startDate contest start_Date
93+
*/
94+
public void setStartDate(Date startDate) {
95+
this.startDate = startDate;
96+
}
97+
98+
/**
99+
* Getter contest end_date
100+
* @return contest end_date
101+
*/
102+
public Date getEndDate() {
103+
return endDate;
104+
}
105+
106+
/**
107+
* Setter contest end date
108+
* @param endDate contest end_date
109+
*/
110+
public void setEndDate(Date endDate) {
111+
this.endDate = endDate;
112+
}
113+
114+
/**
115+
* Getter contest registration end_date
116+
* @return contest reg end_date
117+
*/
118+
public Date getRegEndDate() {
119+
return regEndDate;
120+
}
121+
122+
/**
123+
* Setter contest registration end_date
124+
* @param regEndDate contest reg end_date
125+
*/
126+
public void setRegEndDate(Date regEndDate) {
127+
this.regEndDate = regEndDate;
128+
}
129+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
* Copyright (C) 2017 TopCoder Inc., All Rights Reserved.
3+
*/
4+
package com.topcoder.management.project;
5+
6+
import java.io.Serializable;
7+
8+
/**
9+
* <p>
10+
* This is a MMProblem entity which represents the Marathon Match Problem entry.
11+
* </p>
12+
*
13+
* @author TCSCODER
14+
* @version 1.0
15+
*/
16+
public class MMProblem implements Serializable {
17+
/**
18+
* Problem Id
19+
*/
20+
private long id = -1L;
21+
22+
/**
23+
* Problem name
24+
*/
25+
private String name;
26+
27+
/**
28+
* Problem full text
29+
*/
30+
private String problemText;
31+
32+
/**
33+
* Problem name default format
34+
*/
35+
public static final String DEFAULT_PROBLEM_NAME = "Match Problem: %s";
36+
37+
/**
38+
* Problem text default format
39+
*/
40+
public static final String DEFAULT_PROBLEM_TEXT = "Match Problem: <br/>%s <br/> Match Rule:<br/>%s";
41+
42+
/**
43+
* Getter for problem Id
44+
*
45+
* @return problem Id
46+
*/
47+
public long getId() {
48+
return id;
49+
}
50+
51+
/**
52+
* Setter for problem Id
53+
*
54+
* @param id problem Id
55+
*/
56+
public void setId(long id) {
57+
this.id = id;
58+
}
59+
60+
/**
61+
* Getter for problem name
62+
*
63+
* @return problem name
64+
*/
65+
public String getName() {
66+
return name;
67+
}
68+
69+
/**
70+
* Setter for problem name
71+
*
72+
* @param name problem name
73+
*/
74+
public void setName(String name) {
75+
this.name = name;
76+
}
77+
78+
/**
79+
* Getter for problem text
80+
*
81+
* @return problem text
82+
*/
83+
public String getProblemText() {
84+
return problemText;
85+
}
86+
87+
/**
88+
* Setter for problem text
89+
*
90+
* @param problemText problem text
91+
*/
92+
public void setProblemText(String problemText) {
93+
this.problemText = problemText;
94+
}
95+
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/*
2+
* Copyright (C) 2017 TopCoder Inc., All Rights Reserved.
3+
*/
4+
package com.topcoder.management.project;
5+
6+
/**
7+
* <p>
8+
* This is a MMRound entity which represents the Marathon Match Round entry.
9+
* </p>
10+
*
11+
* @author TCSCODER
12+
* @version 1.0
13+
*/
14+
import java.io.Serializable;
15+
import java.util.List;
16+
17+
public class MMRound implements Serializable {
18+
/**
19+
* Round Id
20+
*/
21+
private long id = -1L;
22+
23+
/**
24+
* MM contest
25+
*/
26+
private MMContest contest;
27+
28+
/**
29+
* Round name
30+
*/
31+
private String name;
32+
33+
/**
34+
* ROund short name
35+
*/
36+
private String shortName;
37+
38+
/**
39+
* List of round segments
40+
*/
41+
private List<MMRoundSegment> segments;
42+
43+
/**
44+
* Default round name format
45+
*/
46+
public static final String DEFAULT_ROUND_NAME = "%s ROUND";
47+
48+
/**
49+
* Getter for round id
50+
* @return round id
51+
*/
52+
public long getId() {
53+
return id;
54+
}
55+
56+
/**
57+
* Setter for round id
58+
* @param id round id
59+
*/
60+
public void setId(long id) {
61+
this.id = id;
62+
}
63+
64+
/**
65+
* Getter for round contest
66+
* @return contest
67+
*/
68+
public MMContest getContest() {
69+
return contest;
70+
}
71+
72+
/**
73+
* Setter for round contest
74+
* @param contest round contest
75+
*/
76+
public void setContest(MMContest contest) {
77+
this.contest = contest;
78+
}
79+
80+
/**
81+
* Getter for round name
82+
* @return round name
83+
*/
84+
public String getName() {
85+
return name;
86+
}
87+
88+
/**
89+
* Setter for round name
90+
* @param name round name
91+
*/
92+
public void setName(String name) {
93+
this.name = name;
94+
}
95+
96+
/**
97+
* Getter for round short name
98+
* @return short name
99+
*/
100+
public String getShortName() {
101+
return shortName;
102+
}
103+
104+
/**
105+
* Setter for round short name
106+
* @param shortName short name
107+
*/
108+
public void setShortName(String shortName) {
109+
this.shortName = shortName;
110+
}
111+
112+
/**
113+
* Getter for list of round segments
114+
* @return round segments
115+
*/
116+
public List<MMRoundSegment> getSegments() {
117+
return segments;
118+
}
119+
120+
/**
121+
* Setter for round segments
122+
* @param segments list of round segments
123+
*/
124+
public void setSegments(List<MMRoundSegment> segments) {
125+
this.segments = segments;
126+
}
127+
}

0 commit comments

Comments
 (0)