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

Commit d0c91fa

Browse files
author
Wenbin Wu
committed
Update interface
1 parent 1c2578b commit d0c91fa

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,27 @@ public SoftwareCompetition createSoftwareContest(TCSubject tcSubject, SoftwareCo
614614
*/
615615
public SoftwareCompetition createSoftwareContest(TCSubject tcSubject, SoftwareCompetition contest,
616616
long tcDirectProjectId, Date regEndDate, Date multiRoundEndDate, Date endDate) throws ContestServiceException, PermissionServiceException;
617-
617+
618+
/**
619+
* <p>
620+
* Creates a new <code>SoftwareCompetition</code> in the persistence.
621+
* </p>
622+
*
623+
* @param tcSubject TCSubject instance contains the login security info for the current user
624+
* @param contest the <code>SoftwareCompetition</code> to create as a contest
625+
* @param tcDirectProjectId the TC direct project id. a <code>long</code> providing the ID of a client the new
626+
* competition belongs to.
627+
* @param regEndDate the registration end date
628+
* @param multiRoundEndDate the end date for the multiround phase. No multiround if it's null.
629+
* @param endDate the end date for submission phase. Can be null if to use default.
630+
* @param skipForum true if skip forum creation
631+
* @return the created <code>SoftwareCompetition</code> as a contest
632+
* @throws IllegalArgumentException if the input argument is invalid.
633+
* @throws ContestServiceException if an error occurs when interacting with the service layer.
634+
*/
635+
public SoftwareCompetition createSoftwareContest(TCSubject tcSubject, SoftwareCompetition contest,
636+
long tcDirectProjectId, Date regEndDate, Date multiRoundEndDate, Date endDate, boolean skipForum) throws ContestServiceException, PermissionServiceException;
637+
618638
/**
619639
* <p>
620640
* BURG-1716: We need to add a method to get software contest by project id,

0 commit comments

Comments
 (0)