- Oct 24, 2012
-
-
Paul-Christian Volkmer authored
-
Paul-Christian Volkmer authored
This adds URI "/session/mysessions" in addition to the old URI which still can be used.
-
Paul-Christian Volkmer authored
All feedback methods are available in class FeedbackController, all question methods are available in class QuestionController. None of the URIs are changed! Added second URI for method QuestionController::getSkillQuestions that matches common URI rules in ARSnova: "/session/{sessionkey}/skillquestions" Both, the old an the new URI can be used equally.
-
- Oct 18, 2012
-
-
Paul-Christian Volkmer authored
-
Paul-Christian Volkmer authored
-
-
Paul-Christian Volkmer authored
If some kinds of feedback values do not exist do not throw the exception NotFoundException. This only indicates, that these values should be '0' which is the default value. NotFoundException should only be thrown if the requested session of feedback does not exist. Every session has a feedback - sometimes with only 0 values.
-
- Oct 17, 2012
-
-
Julian Hochstetter authored
questions object
-
-
Paul-Christian Volkmer authored
-
Christoph Thelen authored
-
Christoph Thelen authored
The properties are needed by the client and must not be ignored.
-
Christoph Thelen authored
-
Christoph Thelen authored
-
Paul-Christian Volkmer authored
-
-
Paul-Christian Volkmer authored
-
Christoph Thelen authored
-
Paul-Christian Volkmer authored
-
Julian Hochstetter authored
-
Julian Hochstetter authored
Conflicts: src/main/java/de/thm/arsnova/SessionController.java src/main/java/de/thm/arsnova/dao/IDatabaseDao.java src/main/java/de/thm/arsnova/services/ISessionService.java src/main/java/de/thm/arsnova/services/SessionService.java src/test/java/de/thm/arsnova/dao/StubDatabaseDao.java
-
Paul-Christian Volkmer authored
-
Paul-Christian Volkmer authored
Use this method to implement further checks on session membership. The old HTTP code assert should never be reached because an UnauthroizedException should have been thrown first.
-
Paul-Christian Volkmer authored
This checks if there is a user in current security context. If not, an UnauthorizedException is thrown which will result in HTTP - 401.
-
Julian Hochstetter authored
-
Christoph Thelen authored
-
Christoph Thelen authored
-
Paul-Christian Volkmer authored
-
Paul-Christian Volkmer authored
This patch uses AbstractController class to add exception handlers into controllers. These handlers are used to detect some runtime exceptions which can be thrown in any layer e.g. DAO or service layer. They recognize NotFoundException and ForbiddenException. Test classes are able to check if any of these exceptions are thrown during runtime.
-
Paul-Christian Volkmer authored
-
- Oct 16, 2012
-
-
Julian Hochstetter authored
-
Julian Hochstetter authored
/getSkillQuestions/{sessionkey}, by default sort by subject but if getSkillQuestions/{sessionkey}?sort=text the result will be sorted by subject and text
-
Julian Hochstetter authored
doesnt throw exceptions if fields are not set. remove info output
-
Paul-Christian Volkmer authored
If a session was not found in database this will result in http 404, if the session is not accessable for the current user the request will result in http 403. The old behavior was to check for null. This was the response if the session was not found or the current user could not access this session (not owner and inactive sessions). Both ended up with http 404 - not found.
-
Julian Hochstetter authored
-
Julian Hochstetter authored
-
Paul-Christian Volkmer authored
The URI to be used contains the session id the question is linked to. If the resulting question object did not match the given session id an error HTTP - NOT FOUND will be send. This will also be done if no question was found.
-
- Oct 13, 2012
-
-
Paul-Christian Volkmer authored
This method uses the same entity as used for websockets. It needs a valid session key in request path. This session key MUST match the session key used in entity to provide semantic URIs
-
Paul-Christian Volkmer authored
-
Paul-Christian Volkmer authored
-