-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/programming-exercises/matlab-temp…
…late
- Loading branch information
Showing
1,746 changed files
with
17,395 additions
and
14,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ Refer to [Using JHipster in production](http://www.jhipster.tech/production) for | |
The following command can automate the deployment to a server. The example shows the deployment to the main Artemis test server (which runs a virtual machine): | ||
|
||
```shell | ||
./artemis-server-cli deploy [email protected] -w build/libs/Artemis-7.8.3.war | ||
./artemis-server-cli deploy [email protected] -w build/libs/Artemis-7.9.0.war | ||
``` | ||
|
||
## Architecture | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/de/tum/cit/aet/artemis/atlas/api/LearnerProfileApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package de.tum.cit.aet.artemis.atlas.api; | ||
|
||
import static de.tum.cit.aet.artemis.core.config.Constants.PROFILE_CORE; | ||
|
||
import java.util.Set; | ||
|
||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.stereotype.Controller; | ||
|
||
import de.tum.cit.aet.artemis.atlas.service.profile.CourseLearnerProfileService; | ||
import de.tum.cit.aet.artemis.atlas.service.profile.LearnerProfileService; | ||
import de.tum.cit.aet.artemis.core.domain.Course; | ||
import de.tum.cit.aet.artemis.core.domain.User; | ||
|
||
@Controller | ||
@Profile(PROFILE_CORE) | ||
public class LearnerProfileApi extends AbstractAtlasApi { | ||
|
||
private final LearnerProfileService learnerProfileService; | ||
|
||
private final CourseLearnerProfileService courseLearnerProfileService; | ||
|
||
public LearnerProfileApi(LearnerProfileService learnerProfileService, CourseLearnerProfileService courseLearnerProfileService) { | ||
this.learnerProfileService = learnerProfileService; | ||
this.courseLearnerProfileService = courseLearnerProfileService; | ||
} | ||
|
||
public void deleteAllForCourse(Course course) { | ||
courseLearnerProfileService.deleteAllForCourse(course); | ||
} | ||
|
||
public void createCourseLearnerProfile(Course course, User user) { | ||
courseLearnerProfileService.createCourseLearnerProfile(course, user); | ||
} | ||
|
||
public void createCourseLearnerProfiles(Course course, Set<User> students) { | ||
courseLearnerProfileService.createCourseLearnerProfiles(course, students); | ||
} | ||
|
||
public void deleteCourseLearnerProfile(Course course, User user) { | ||
courseLearnerProfileService.deleteCourseLearnerProfile(course, user); | ||
} | ||
|
||
public void createProfile(User user) { | ||
learnerProfileService.createProfile(user); | ||
} | ||
|
||
public void deleteProfile(User user) { | ||
learnerProfileService.deleteProfile(user); | ||
} | ||
} |
Oops, something went wrong.