Skip to content
Snippets Groups Projects
Commit ca63c924 authored by Moritzjenny's avatar Moritzjenny
Browse files

no-jira: repackage doceditor webservice

parent eff7fefd
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
* @author mjenny, moritz.jenny@frentix.com, http://www.frentix.com
*/
public class BigBlueButtonWebService {
public class BigBlueButtonStatsWebService {
/**
* Return the statistics about Big Blue Button
......
......@@ -18,7 +18,7 @@
* <p>
*/
package org.olat.core.commons.services.doceditor.restapi;
package org.olat.restapi.system;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
......@@ -30,6 +30,7 @@ import javax.ws.rs.core.Response;
import org.olat.core.CoreSpringFactory;
import org.olat.core.commons.services.doceditor.DocEditor.Mode;
import org.olat.core.commons.services.doceditor.wopi.WopiService;
import org.olat.restapi.system.vo.DocEditorStatisticsVO;
import org.springframework.stereotype.Component;
import io.swagger.v3.oas.annotations.Operation;
......
......@@ -18,7 +18,7 @@
* <p>
*/
package org.olat.core.commons.services.doceditor.restapi;
package org.olat.restapi.system;
import javax.ws.rs.Path;
......@@ -35,7 +35,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
*
*/
@Tag(name = "Document Editor")
@Path("doceditor")
@Component
public class DocEditorWebService {
......
......@@ -52,7 +52,8 @@ public class MonitoringWebService {
private static final ThreadsWebService threadsWebService = new ThreadsWebService();
private static final OpenOLATStatisticsWebService ooStatsWebService = new OpenOLATStatisticsWebService();
private static final VFSStatsWebService vfsStatsWebService = new VFSStatsWebService();
private static final BigBlueButtonWebService bigBlueButtonWebService = new BigBlueButtonWebService();
private static final BigBlueButtonStatsWebService bigBlueButtonStatsWebService = new BigBlueButtonStatsWebService();
private static final DocEditorWebService docEditorWebService = new DocEditorWebService();
public MonitoringWebService() {
//make Spring happy
......@@ -94,8 +95,13 @@ public class MonitoringWebService {
}
@Path("bigbluebutton")
public BigBlueButtonWebService getBigBlueButtonStatistics() {
return bigBlueButtonWebService;
public BigBlueButtonStatsWebService getBigBlueButtonStatistics() {
return bigBlueButtonStatsWebService;
}
@Path("doceditor")
public DocEditorWebService getDocEditorWebService() {
return docEditorWebService;
}
......
......@@ -19,7 +19,7 @@
*/
package org.olat.core.commons.services.doceditor.restapi;
package org.olat.restapi.system.vo;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
......
......@@ -37,12 +37,12 @@ import org.olat.core.commons.persistence.DB;
import org.olat.core.commons.services.doceditor.DocEditor.Mode;
import org.olat.core.commons.services.doceditor.DocEditorSecurityCallback;
import org.olat.core.commons.services.doceditor.DocEditorSecurityCallbackBuilder;
import org.olat.core.commons.services.doceditor.restapi.DocEditorStatisticsVO;
import org.olat.core.commons.services.doceditor.wopi.Access;
import org.olat.core.commons.services.doceditor.wopi.WopiService;
import org.olat.core.commons.services.vfs.VFSMetadata;
import org.olat.core.commons.services.vfs.manager.VFSMetadataDAO;
import org.olat.core.id.Identity;
import org.olat.restapi.system.vo.DocEditorStatisticsVO;
import org.olat.test.JunitTestHelper;
import org.olat.test.OlatRestTestCase;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -85,7 +85,7 @@ public class DocEditorWebServiceTest extends OlatRestTestCase {
Assert.assertNotNull(access1);
Assert.assertNotNull(access2);
URI request = UriBuilder.fromUri(getContextURI()).path("doceditor").path("sessions").path(randomAppName).build();
URI request = UriBuilder.fromUri(getContextURI()).path("system").path("monitoring").path("doceditor").path("sessions").path(randomAppName).build();
HttpGet method = conn.createGet(request, MediaType.APPLICATION_JSON, true);
HttpResponse response = conn.execute(method);
Assert.assertEquals(200, response.getStatusLine().getStatusCode());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment