-
Shape "<%=aResourceShape.getTitle()%>"
-
+
<%=aResourceShape.getName()%>
- About URI:
- <%=aResourceShape.getAbout()%>
-
-
-
Describes
-
- <%for(URI next : aResourceShape.getDescribes()) {
+ Describes:
+ <%if(aResourceShape.getDescribes().length == 1) {%>
+ <%=aResourceShape.getDescribes()[0]%>
+ <%} else {%>
+
+ <%for(URI next : aResourceShape.getDescribes()) {
String[] split = next.toString().split("[#/]+");
String shortName = (split.length > 1) ? split[split.length -1] : next.toString();
- %>
- - <%=shortName%>
- <%}%>
-
+ %>
+ - <%=shortName%>
+ <%}%>
+
+ <%}%>
+
+ <%if(null != aResourceShape.getTitle()) {%>
+
+ Summary:
+ <%=aResourceShape.getTitle()%>
+
+ <%}%>
+ <%if(null != aResourceShape.getDescription()) {%>
+
+ Description:
+ <%=aResourceShape.getDescription()%>
+
+ <%}%>
Properties
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/selectiondialogsampleclient.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/selectiondialogsampleclient.jsp
index 647455e9..b4eca0fa 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/selectiondialogsampleclient.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/selectiondialogsampleclient.jsp
@@ -2,28 +2,28 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Andrii Berezovskyi - initial implementation of a sample delegated UI client
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider" %>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
String selectionDialogUri = request.getParameter("selectionUri");
selectionDialogUri += "#oslc-core-postMessage-1.0";
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -43,7 +43,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovider.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovider.jsp
index d36c6476..e33e893a 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovider.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovider.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -32,12 +26,15 @@
<%@ page import="org.eclipse.lyo.oslc4j.core.model.CreationFactory" %>
<%@ page import="org.eclipse.lyo.oslc4j.core.model.ResourceShape" %>
<%@ page import="org.eclipse.lyo.oslc4j.core.model.QueryCapability" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
ServiceProvider serviceProvider = (ServiceProvider)request.getAttribute("serviceProvider");
Service[] services = (Service[])request.getAttribute("services");
+String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -57,7 +54,7 @@ Service[] services = (Service[])request.getAttribute("services");
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovidercatalog.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovidercatalog.jsp
index 65fa0cc2..65c524d3 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovidercatalog.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/serviceprovidercatalog.jsp
@@ -1,34 +1,31 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="org.eclipse.lyo.oslc4j.core.model.ServiceProviderCatalog" %>
<%@ page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
ServiceProviderCatalog catalog = (ServiceProviderCatalog)request.getAttribute("catalog");
+String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -52,7 +49,7 @@ ServiceProviderCatalog catalog = (ServiceProviderCatalog)request.getAttribute("c
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/statetohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/statetohtml.jsp
index 21dfcf79..a3686664 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/statetohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/statetohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.cm.State"%>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcase.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcase.jsp
index 4bb92b28..7b87ff27 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcase.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcase.jsp
@@ -1,26 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -50,6 +42,7 @@
<%
TestCase aTestCase = (TestCase) request.getAttribute("aTestCase");
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -77,7 +70,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaselargepreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaselargepreview.jsp
index 1384f7e6..212fcd71 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaselargepreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaselargepreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasescollection.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasescollection.jsp
index 81737937..f5448e20 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasescollection.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasescollection.jsp
@@ -1,41 +1,37 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.AbstractResource"%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JConstants"%>
<%@page import="java.util.List" %>
+
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestCase"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
List resources = (List) request.getAttribute("resources");
String queryUri = (String)request.getAttribute("queryUri");
String nextPageUri = (String)request.getAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE);
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -62,7 +58,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaseselector.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaseselector.jsp
index ca355094..15a1b8c6 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaseselector.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcaseselector.jsp
@@ -1,23 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=422448)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasesmallpreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasesmallpreview.jsp
index 1384f7e6..212fcd71 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasesmallpreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasesmallpreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasetohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasetohtml.jsp
index ee98845e..1d6518a7 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasetohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testcasetohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestCase"%>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecord.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecord.jsp
index 7ed0a3de..40f972a9 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecord.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecord.jsp
@@ -1,26 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -50,6 +42,7 @@
<%
TestExecutionRecord aTestExecutionRecord = (TestExecutionRecord) request.getAttribute("aTestExecutionRecord");
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -77,7 +70,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordlargepreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordlargepreview.jsp
index 0ce24bc2..e2dfd8d7 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordlargepreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordlargepreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordscollection.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordscollection.jsp
index f869d926..57b22c3c 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordscollection.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordscollection.jsp
@@ -1,41 +1,37 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.AbstractResource"%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JConstants"%>
<%@page import="java.util.List" %>
+
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestExecutionRecord"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
List resources = (List) request.getAttribute("resources");
String queryUri = (String)request.getAttribute("queryUri");
String nextPageUri = (String)request.getAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE);
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -62,7 +58,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordselector.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordselector.jsp
index 77b68470..1b996e6c 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordselector.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordselector.jsp
@@ -1,23 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=422448)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordsmallpreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordsmallpreview.jsp
index 0ce24bc2..e2dfd8d7 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordsmallpreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordsmallpreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordtohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordtohtml.jsp
index 0af1a56a..127624f5 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordtohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testexecutionrecordtohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestExecutionRecord"%>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplan.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplan.jsp
index 505b805d..04a1a776 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplan.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplan.jsp
@@ -1,26 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -50,6 +42,7 @@
<%
TestPlan aTestPlan = (TestPlan) request.getAttribute("aTestPlan");
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -77,7 +70,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanlargepreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanlargepreview.jsp
index fe2d2023..6a1ab4b8 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanlargepreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanlargepreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanscollection.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanscollection.jsp
index ea3ebe6c..578dfd8a 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanscollection.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanscollection.jsp
@@ -1,41 +1,37 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.AbstractResource"%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JConstants"%>
<%@page import="java.util.List" %>
+
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestPlan"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
List resources = (List) request.getAttribute("resources");
String queryUri = (String)request.getAttribute("queryUri");
String nextPageUri = (String)request.getAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE);
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -62,7 +58,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanselector.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanselector.jsp
index 27f0b617..eefbb8a9 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanselector.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplanselector.jsp
@@ -1,23 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=422448)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplansmallpreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplansmallpreview.jsp
index fe2d2023..6a1ab4b8 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplansmallpreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplansmallpreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplantohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplantohtml.jsp
index 5d6e17da..d2c53b05 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplantohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testplantohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestPlan"%>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresult.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresult.jsp
index 04ee14ee..0e67a2b5 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresult.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresult.jsp
@@ -1,26 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -50,6 +42,7 @@
<%
TestResult aTestResult = (TestResult) request.getAttribute("aTestResult");
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -77,7 +70,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultlargepreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultlargepreview.jsp
index ae8a01c7..83619800 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultlargepreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultlargepreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultscollection.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultscollection.jsp
index a8300cf7..cff4fcd2 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultscollection.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultscollection.jsp
@@ -1,41 +1,37 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.AbstractResource"%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JConstants"%>
<%@page import="java.util.List" %>
+
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestResult"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
List resources = (List) request.getAttribute("resources");
String queryUri = (String)request.getAttribute("queryUri");
String nextPageUri = (String)request.getAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE);
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -62,7 +58,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultselector.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultselector.jsp
index 909d1c65..22fc28b8 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultselector.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultselector.jsp
@@ -1,23 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=422448)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultsmallpreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultsmallpreview.jsp
index ae8a01c7..83619800 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultsmallpreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresultsmallpreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresulttohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresulttohtml.jsp
index f00510ed..6ac3ec8c 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresulttohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testresulttohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestResult"%>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscript.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscript.jsp
index 1c1c9a23..7f7568ed 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscript.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscript.jsp
@@ -1,26 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -50,6 +42,7 @@
<%
TestScript aTestScript = (TestScript) request.getAttribute("aTestScript");
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -77,7 +70,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptlargepreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptlargepreview.jsp
index fe34b765..e774a7f8 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptlargepreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptlargepreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptscollection.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptscollection.jsp
index cec7053f..a67cd62c 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptscollection.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptscollection.jsp
@@ -1,41 +1,37 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
- Frédéric Loiret - Support for UI Preview (494303)
- Andrii Berezovskyi - Support for UI Preview (494303)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
+<%@page import="javax.ws.rs.core.UriBuilder"%>
+<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.ServiceProvider"%>
<%@page import="org.eclipse.lyo.oslc4j.core.model.AbstractResource"%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JConstants"%>
<%@page import="java.util.List" %>
+
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestScript"%>
<%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %>
<%
List resources = (List) request.getAttribute("resources");
String queryUri = (String)request.getAttribute("queryUri");
String nextPageUri = (String)request.getAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE);
+ String catalogUrl = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/catalog/singleton").build().toString();
%>
@@ -62,7 +58,7 @@
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptselector.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptselector.jsp
index 358b2f38..3d303ea5 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptselector.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptselector.jsp
@@ -1,23 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (https://bugs.eclipse.org/bugs/show_bug.cgi?id=422448)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptsmallpreview.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptsmallpreview.jsp
index fe34b765..e774a7f8 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptsmallpreview.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscriptsmallpreview.jsp
@@ -1,24 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2011, 2012, 2017 IBM Corporation and others.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Sam Padgett - initial API and implementation
- Michael Fiedler - adapted for OSLC4J
- Jad El-khoury - initial implementation of code generator (422448)
- Frédéric Loiret - Switch the template to Bootstrap (519699)
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscripttohtml.jsp b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscripttohtml.jsp
index 0ef92e25..84ee11a9 100644
--- a/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscripttohtml.jsp
+++ b/src/server-qm/src/main/webapp/co/oslc/refimpl/qm/gen/testscripttohtml.jsp
@@ -1,20 +1,17 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2018 Jad El-khoury.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Jad El-khoury - Migrate toHtml methods from the resource pojos to be embedded in jsp pages.
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc.domains.qm.TestScript"%>
diff --git a/src/server-qm/src/main/webapp/index.jsp b/src/server-qm/src/main/webapp/index.jsp
index 69ae6107..54bec7c2 100644
--- a/src/server-qm/src/main/webapp/index.jsp
+++ b/src/server-qm/src/main/webapp/index.jsp
@@ -1,21 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2017 KTH Royal Institute of Technology.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- Contributors:
-
- Andrew Berezovskyi - initial implementation
-
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
@@ -56,7 +53,7 @@
Use Swagger UI To interact with the adaptor services dedicated for RDF.
- You can also copy ">this OpenAPI specification document (yaml file) of this adaptor to a ">Swagger Editor to generate client SDK code for a number of languages and platforms.
+
You can also copy ">this OpenAPI specification document (yaml file) of this adaptor to a ">Swagger Editor to generate client SDK code for a number of languages and platforms.
diff --git a/src/server-qm/src/main/webapp/static/js/delegated-ui-helper.js b/src/server-qm/src/main/webapp/static/js/delegated-ui-helper.js
index 3b26915c..4e753174 100644
--- a/src/server-qm/src/main/webapp/static/js/delegated-ui-helper.js
+++ b/src/server-qm/src/main/webapp/static/js/delegated-ui-helper.js
@@ -18,6 +18,19 @@ This file is generated by org.eclipse.lyo.oslc4j.codegenerator
*******************************************************************************/
// End of user code
+//register an addEventListener that handles the response form the Selection DelegatedUI iframe to the parent window.
+//The function passes the message payload without any processing.
+function registerSelectionDUIRawResponseListener(iframeElement, oslcMessageHandler) {
+ window.addEventListener('message', function (e) {
+ var HEADER = "oslc-response:";
+ if (e.source == iframeElement.contentWindow
+ && e.data.indexOf(HEADER) == 0) {
+ var message = e.data;
+ oslcMessageHandler(message);
+ }
+ }, false);
+}
+
//register an addEventListener that handles the response form the Selection DelegatedUI iframe to the parent window.
//For each of the selected OSLC resource, the function will call oslcSelectionPresentationFunction with the url and label of that resource.
function registerSelectionDUIResponseListener(iframeElement, oslcSelectionPreprocessingFunction, oslcSelectionPresentationFunction) {
@@ -35,7 +48,6 @@ function registerSelectionDUIResponseListener(iframeElement, oslcSelectionPrepro
}, false);
}
-
//register an addEventListener that handles the response form the Creation DelegatedUI iframe to the parent window.
//For the created OSLC resource, the function will call oslcCreationPresentationFunction with the url and label of that resource.
function registerCreationDUIResponseListener(iframeElement, oslcCreationPreprocessingFunction, oslcCreationPresentationFunction) {
diff --git a/src/server-qm/src/main/webapp/static/js/ui-preview-helper.js b/src/server-qm/src/main/webapp/static/js/ui-preview-helper.js
index f3aede45..5f9161aa 100644
--- a/src/server-qm/src/main/webapp/static/js/ui-preview-helper.js
+++ b/src/server-qm/src/main/webapp/static/js/ui-preview-helper.js
@@ -32,12 +32,18 @@ function setupUiPreviewOnPopover(oslcLinkElements) {
oslcLinkElements.on("show.bs.popover", function () {
var uiElem = $(this);
var popoverElem = uiElem.data('bs.popover');
- getUiPreviewIframe(this.getAttribute("href"), attachIframeToHyperlinkElement, uiElem);
+ getUiPreviewIframes(this.getAttribute("href"), attachIframeToHyperlinkElement, uiElem);
})
}
-function attachIframeToHyperlinkElement(iframeTitle, iframeHtml, resourceCompactStructure, uiElem) {
- uiElem.attr('data-original-title', iframeTitle);
+function attachIframeToHyperlinkElement(compactStructure, uiElem) {
+ uiElem.attr('data-original-title', compactStructure.title);
+ var preview = compactStructure.small;
+ var w = preview.width ? preview.width : "450em";
+ var h = preview.height ? preview.height : "100em";
+ var iframeHtml = "";
uiElem.attr('data-content', iframeHtml);
uiElem.data('bs.popover').setContent();
}
@@ -45,9 +51,9 @@ function attachIframeToHyperlinkElement(iframeTitle, iframeHtml, resourceCompact
//Perform an asynch GET request to obtain the resource's UI-Preview information (an OSLC Compact resource).
//callbackFunction is then called once the request response is obtained.
//The caller should supply this callbackFunction, with any desired paramters under "callbackParamter"
-//callbackFunction will be called with the following paramters (a) iframeTitle, (b) iframeHtml, (c) compactStructure, (d) callbackParamter
+//callbackFunction will be called with the following parameters (a) compactStructure, (d) callbackParamter
//where compactStructure represents more detailed about the OSLC Compact resource.
-function getUiPreviewIframe(resourceUrl, callbackFunction, callbackParamter) {
+function getUiPreviewIframes(resourceUrl, callbackFunction, callbackParamter) {
xmlhttp = new XMLHttpRequest();
xmlhttp.onload = function () {
if (this.status==200) {
@@ -55,21 +61,16 @@ function getUiPreviewIframe(resourceUrl, callbackFunction, callbackParamter) {
try {
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(data,"text/xml");
- var compactStructure = parseOslcCompactXmlDocument(xmlDoc);
- var w = compactStructure.width ? compactStructure.width : "45em";
- var h = compactStructure.height ? compactStructure.height : "11em";
- var iframeHtml = "";
- callbackFunction(compactStructure.title, iframeHtml, compactStructure, callbackParamter);
+ var compactStructure = oslcCompactJsonStructure(xmlDoc);
+ callbackFunction(compactStructure, callbackParamter);
} catch (e) {
iframeHtml = "Error parsing preview dialog info";
- callbackFunction("Error", iframeHtml, null, callbackParamter);
+ callbackFunction("Error", callbackParamter);
}
}
else {
iframeHtml = "Error loading the preview dialog status:" + this.status;
- callbackFunction("Error", iframeHtml, null, callbackParamter);
+ callbackFunction("Error", callbackParamter);
}
};
xmlhttp.open("GET", resourceUrl, true);
@@ -77,8 +78,8 @@ function getUiPreviewIframe(resourceUrl, callbackFunction, callbackParamter) {
xmlhttp.send();
}
-//returns a JSON struct representing a large or small UI-Preview info (uri, title, height and width) based on an OSLC Compact RDF resource.
-function parseOslcCompactXmlDocument(oslcCompactXmlDocument) {
+//returns a JSON struct representing a large and small UI-Preview info (uri, title, height and width) based on an OSLC Compact RDF resource.
+function oslcCompactJsonStructure(oslcCompactXmlDocument) {
var compactStructure = {};
var compact = findFirstChildNode(findFirstChildNode(oslcCompactXmlDocument));
@@ -86,20 +87,32 @@ function parseOslcCompactXmlDocument(oslcCompactXmlDocument) {
compactStructure.title = titleChild.textContent;
var smallPrev = findFirstChildNodeNamed(compact, 'oslc:smallPreview');
- var largePrev = findFirstChildNodeNamed(compact, 'oslc:largePreview');
- var preview;
if (smallPrev !== null) {
- preview = findFirstChildNode(smallPrev);
- } else {
- preview = findFirstChildNode(largePrev);
+ var preview = findFirstChildNode(smallPrev);
+ if (preview) {
+ compactStructure.small = {};
+ var document = findFirstChildNodeNamed(preview, 'oslc:document');
+ if (document)
+ compactStructure.small.uri = document.getAttribute('rdf:resource');
+ var height = findFirstChildNodeNamed(preview, 'oslc:hintHeight');
+ compactStructure.small.height = height.textContent;
+ var width = findFirstChildNodeNamed(preview, 'oslc:hintWidth');
+ compactStructure.small.width = width.textContent;
+ }
}
- if (preview) {
- var document = findFirstChildNodeNamed(preview, 'oslc:document');
- if (document) compactStructure.uri = document.getAttribute('rdf:resource');
- var height = findFirstChildNodeNamed(preview, 'oslc:hintHeight');
- compactStructure.height = height.textContent;
- var width = findFirstChildNodeNamed(preview, 'oslc:hintWidth');
- compactStructure.width = width.textContent;
+ var largePrev = findFirstChildNodeNamed(compact, 'oslc:largePreview');
+ if (largePrev !== null) {
+ var preview = findFirstChildNode(largePrev);
+ if (preview) {
+ compactStructure.large = {};
+ var document = findFirstChildNodeNamed(preview, 'oslc:document');
+ if (document)
+ compactStructure.large.uri = document.getAttribute('rdf:resource');
+ var height = findFirstChildNodeNamed(preview, 'oslc:hintHeight');
+ compactStructure.large.height = height.textContent;
+ var width = findFirstChildNodeNamed(preview, 'oslc:hintWidth');
+ compactStructure.large.width = width.textContent;
+ }
}
return compactStructure;
}
diff --git a/src/server-qm/src/main/webapp/swagger-ui/index.jsp b/src/server-qm/src/main/webapp/swagger-ui/index.jsp
index e8d57b06..d6c9348c 100644
--- a/src/server-qm/src/main/webapp/swagger-ui/index.jsp
+++ b/src/server-qm/src/main/webapp/swagger-ui/index.jsp
@@ -1,17 +1,18 @@
<%--To avoid the overriding of any manual code changes upon subsequent code generations, disable "Generate JSP Files" option in the Adaptor model.--%>
<%--
- Copyright (c) 2020 KTH Royal Institute of Technology.
-
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- and Eclipse Distribution License v. 1.0 which accompanies this distribution.
-
- The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- and the Eclipse Distribution License is available at
+ Copyright (c) 2020 Contributors to the Eclipse Foundation
+
+ See the NOTICE file(s) distributed with this work for additional
+ information regarding copyright ownership.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Distribution License 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
+
+ SPDX-License-Identifier: BSD-3-Simple
- This file is generated by org.eclipse.lyo.oslc4j.codegenerator
+ This file is generated by Lyo Designer (https://www.eclipse.org/lyo/)
--%>
<%@page import="org.eclipse.lyo.oslc4j.core.OSLC4JUtils"%>
@@ -22,15 +23,13 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
-File swaggerFolder = new File(application.getRealPath("/swagger-ui/dist"));
-URI yamlPath = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/swagger.yaml").build();
+URI yamlPath = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/openapi.yaml").build();
%>
Swagger UI
- <%if(swaggerFolder.exists()) {%>
@@ -55,16 +54,8 @@ URI yamlPath = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/swagger.ya
background: #fafafa;
}
- <%}else{%>
- " rel="stylesheet">
- " rel="stylesheet">
-
- ">
- ">
- <%}%>
- <%if(swaggerFolder.exists()) {%>
@@ -89,41 +80,5 @@ URI yamlPath = UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("/swagger.ya
window.ui = ui
}
- <%}else{%>
-
-
-
-
Swagger UI
-
-
You don't seem to have fully configured your project to use a local standalone distribution of Swagger UI!
-
-
-
-
- <%}%>
diff --git a/src/server-rm/pom.xml b/src/server-rm/pom.xml
index 2958252e..3f1faef4 100644
--- a/src/server-rm/pom.xml
+++ b/src/server-rm/pom.xml
@@ -1,223 +1,250 @@
-
- 4.0.0
-
+
+
+ 4.0.0
+
+
+
co.oslc.refimpl
- parent
- 0.0.1-SNAPSHOT
-
- OSLC Requirements Management Server (2020 RefImpl)
- server-rm
- war
+ server-rm
+ 0.2.0-SNAPSHOT
+ war
+ RM
+
+ UTF-8
+ UTF-8
+ 1.8
+ 1.8
+ 5.0.0-SNAPSHOT
+ 2.25.1
+ 2.1.2
+ 3.52.3
+
+ 7.7.3
+ 4.3.2
+
+
+
+
+
+
+
+ lyo-releases
+ Eclipse Lyo Releases
+ https://repo.eclipse.org/content/repositories/lyo-releases/
+
+ false
+
+
+
+ lyo-snapshots
+ Eclipse Lyo Snapshots
+ https://repo.eclipse.org/content/repositories/lyo-snapshots/
+
+ false
+
+
+
+
+
+
+
+
+
+ co.oslc.refimpl
+ lib-common
+ 0.0.1-SNAPSHOT
+
+
+ org.apache.lucene
+ lucene-core
+ ${v.lucene}
+
+
+ org.apache.lucene
+ lucene-queryparser
+ ${v.lucene}
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
+
+ io.rest-assured
+ rest-assured
+ ${v.rest-assured}
+ test
+
+
+ io.rest-assured
+ xml-path
+ ${v.rest-assured}
+ test
+
+
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.21
+ runtime
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
+
+
+ org.glassfish.jersey.containers
+ jersey-container-servlet
+ ${jersey.version}
+
+
+
+ org.eclipse.lyo.oslc4j.core
+ oslc4j-core
+ ${version.lyo}
+
+
+ org.eclipse.lyo.oslc4j.core
+ oslc4j-jena-provider
+ ${version.lyo}
+
+
+ org.eclipse.lyo.oslc4j.core
+ oslc4j-json4j-provider
+ ${version.lyo}
+
+
+ org.eclipse.lyo.clients
+ oslc-client
+ ${version.lyo}
+
+
+ org.eclipse.lyo.server
+ oauth-core
+ ${version.lyo}
+
+
+ org.eclipse.lyo.server
+ oauth-consumer-store
+ ${version.lyo}
+
+
+ org.eclipse.lyo.server
+ oauth-webapp
+ ${version.lyo}
+ war
+
-
- 7.7.3
- 4.3.2
-
-
-
-
-
- org.apache.lucene
- lucene-core
- ${v.lucene}
-
-
- org.apache.lucene
- lucene-queryparser
- ${v.lucene}
-
-
-
- io.swagger
- swagger-jersey2-jaxrs
-
-
-
-
- org.slf4j
- slf4j-simple
- runtime
-
-
-
-
-
- org.eclipse.lyo.oslc4j.core
- oslc4j-core
-
-
- org.eclipse.lyo
- oslc-domains
-
-
- org.eclipse.lyo.oslc4j.core
- oslc4j-jena-provider
-
-
- org.eclipse.lyo.oslc4j.core
- oslc4j-json4j-provider
-
-
- org.eclipse.lyo.clients
- oslc-client
-
-
-
-
-
- org.eclipse.lyo.server
- oauth-core
-
-
- org.eclipse.lyo.server
- oauth-consumer-store
-
-
- org.eclipse.lyo.server
- oauth-webapp
- war
-
-
-
-
-
- org.glassfish.jersey.core
- jersey-server
-
-
- javax.ws.rs
- javax.ws.rs-api
-
-
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
-
-
- javax.ws.rs
- javax.ws.rs-api
-
-
-
-
- javax.servlet
- javax.servlet-api
- provided
-
-
- javax.servlet.jsp.jstl
- javax.servlet.jsp.jstl-api
- provided
-
-
-
-
-
- junit
- junit
- test
-
-
- io.rest-assured
- rest-assured
- ${v.rest-assured}
- test
-
-
- io.rest-assured
- xml-path
- ${v.rest-assured}
- test
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-dependency-plugin
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
-
-
-
- ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/3.25.0
-
- **/*.*
-
- /swagger-ui/dist
-
-
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
- 3.0.0-M5
-
-
-
- integration-test
- verify
-
-
-
-
-
- org.eclipse.jetty
- jetty-maven-plugin
- 9.4.35.v20201120
-
-
- /
-
-
- manual
- 5
-
- 8800
-
- 18800
- jetty
-
-
- co.oslc.refimpl.rm.gen.servlet.baseurl
- ${lyo.baseurl}
-
-
-
-
-
- start-jetty
- pre-integration-test
-
- start
-
-
- 0
-
-
-
-
- stop-jetty
- post-integration-test
-
- stop
-
-
-
-
-
-
+
+
+ io.swagger.core.v3
+ swagger-jaxrs2
+ ${swagger.version}
+
+
+ io.swagger.core.v3
+ swagger-jaxrs2-servlet-initializer-v2
+ ${swagger.version}
+
+
+
+
+
+
+
+
+
+
+ org.eclipse.jetty
+ jetty-maven-plugin
+ 10.0.7
+
+
+ /
+
+
+ 8800
+
+ 5
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 3.1.2
+
+
+ prepare-package
+
+ unpack
+
+
+
+
+ org.webjars
+ swagger-ui
+ ${swagger-ui.version}
+
+
+ ${project.build.directory}/swagger-ui
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.2.3
+
+
+
+ ${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}
+
+ **/*.*
+
+ /swagger-ui/dist
+
+
+
+
+
+
+
+
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/RMManager.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/RMManager.java
index fe584403..1a563883 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/RMManager.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/RMManager.java
@@ -191,7 +191,7 @@ public static ServiceProviderInfo[] getServiceProviderInfos(HttpServletRequest h
return serviceProviderInfos;
}
- public static List queryRequirements(HttpServletRequest httpServletRequest, final String serviceProviderId, String where, String prefix, int page, int limit)
+ public static List queryRequirements(HttpServletRequest httpServletRequest, final String serviceProviderId, String where, String prefix, boolean paging, int page, int limit)
{
List resources = null;
@@ -268,7 +268,7 @@ public static Requirement createRequirementFromDialog(HttpServletRequest httpSer
}
- public static List queryRequirementCollections(HttpServletRequest httpServletRequest, final String serviceProviderId, String where, String prefix, int page, int limit)
+ public static List queryRequirementCollections(HttpServletRequest httpServletRequest, final String serviceProviderId, String where, String prefix, boolean paging, int page, int limit)
{
List resources = null;
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/resources/package-info.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/resources/package-info.java
index e7daf343..4727c189 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/resources/package-info.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/resources/package-info.java
@@ -28,9 +28,9 @@
@OslcNamespaceDefinition(prefix = OslcConstants.OSLC_DATA_NAMESPACE_PREFIX, namespaceURI = OslcConstants.OSLC_DATA_NAMESPACE),
@OslcNamespaceDefinition(prefix = OslcConstants.RDF_NAMESPACE_PREFIX, namespaceURI = OslcConstants.RDF_NAMESPACE),
@OslcNamespaceDefinition(prefix = OslcConstants.RDFS_NAMESPACE_PREFIX, namespaceURI = OslcConstants.RDFS_NAMESPACE),
- @OslcNamespaceDefinition(prefix = DctermsDomainConstants.DUBLIN_CORE_NAMSPACE_PREFIX, namespaceURI = DctermsDomainConstants.DUBLIN_CORE_NAMSPACE),
- @OslcNamespaceDefinition(prefix = FoafDomainConstants.FOAF_NAMSPACE_PREFIX, namespaceURI = FoafDomainConstants.FOAF_NAMSPACE),
- @OslcNamespaceDefinition(prefix = OslcDomainConstants.OSLC_NAMSPACE_PREFIX, namespaceURI = OslcDomainConstants.OSLC_NAMSPACE),
+ @OslcNamespaceDefinition(prefix = DctermsDomainConstants.DUBLIN_CORE_NAMSPACE_PREFIX, namespaceURI = DctermsDomainConstants.DUBLIN_CORE_NAMSPACE),
+ @OslcNamespaceDefinition(prefix = FoafDomainConstants.FOAF_NAMSPACE_PREFIX, namespaceURI = FoafDomainConstants.FOAF_NAMSPACE),
+ @OslcNamespaceDefinition(prefix = OslcDomainConstants.OSLC_NAMSPACE_PREFIX, namespaceURI = OslcDomainConstants.OSLC_NAMSPACE),
@OslcNamespaceDefinition(prefix = Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE_PREFIX, namespaceURI = Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_NAMSPACE)
})
package co.oslc.refimpl.rm.gen.resources;
@@ -39,8 +39,8 @@
import org.eclipse.lyo.oslc4j.core.annotation.OslcSchema;
import org.eclipse.lyo.oslc4j.core.model.OslcConstants;
-import org.eclipse.lyo.oslc.domains.DctermsDomainConstants;
-import org.eclipse.lyo.oslc.domains.FoafDomainConstants;
-import org.eclipse.lyo.oslc4j.core.model.OslcDomainConstants;
+import org.eclipse.lyo.oslc.domains.DctermsDomainConstants;
+import org.eclipse.lyo.oslc.domains.FoafDomainConstants;
+import org.eclipse.lyo.oslc4j.core.model.OslcDomainConstants;
import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/Requirement_collectionsService.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/Requirement_collectionsService.java
index 5b969edc..1d560e30 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/Requirement_collectionsService.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/Requirement_collectionsService.java
@@ -83,13 +83,14 @@
import co.oslc.refimpl.rm.gen.RMManager;
import co.oslc.refimpl.rm.gen.RMConstants;
-import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
+import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import co.oslc.refimpl.rm.gen.servlet.ServiceProviderCatalogSingleton;
import org.eclipse.lyo.oslc.domains.Person;
import org.eclipse.lyo.oslc.domains.rm.RequirementCollection;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.media.Content;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
// Start of user code imports
// End of user code
@@ -98,7 +99,6 @@
// End of user code
@OslcService(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_DOMAIN)
@Path("serviceProviders/{serviceProviderId}/service2/requirementCollections")
-@Api(value = "OSLC Service for {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}")
public class Requirement_collectionsService
{
@Context private HttpServletRequest httpServletRequest;
@@ -138,21 +138,28 @@ private void addCORSHeaders (final HttpServletResponse httpServletResponse) {
@GET
@Path("query")
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
- notes = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
+ description = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)})
+ }
)
public RequirementCollection[] queryRequirementCollections(
@PathParam("serviceProviderId") final String serviceProviderId ,
@QueryParam("oslc.where") final String where,
@QueryParam("oslc.prefix") final String prefix,
+ @QueryParam("oslc.paging") final String pagingString,
@QueryParam("page") final String pageString,
- @QueryParam("oslc.pageSize") final String pageSizeString) throws IOException, ServletException
+ @QueryParam("oslc.pageSize") final String pageSizeString) throws IOException, ServletException
{
+ boolean paging=false;
int page=0;
int pageSize=20;
+ if (null != pagingString) {
+ paging = Boolean.parseBoolean(pagingString);
+ }
if (null != pageString) {
page = Integer.parseInt(pageString);
}
@@ -164,13 +171,22 @@ public RequirementCollection[] queryRequirementCollections(
// Here additional logic can be implemented that complements main action taken in RMManager
// End of user code
- final List resources = RMManager.queryRequirementCollections(httpServletRequest, serviceProviderId, where, prefix, page, pageSize);
- httpServletRequest.setAttribute("queryUri",
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true");
+ final List resources = RMManager.queryRequirementCollections(httpServletRequest, serviceProviderId, where, prefix, paging, page, pageSize);
+ UriBuilder uriBuilder = UriBuilder.fromUri(uriInfo.getAbsolutePath())
+ .queryParam("oslc.paging", "true")
+ .queryParam("oslc.pageSize", pageSize)
+ .queryParam("page", page);
+ if (null != where) {
+ uriBuilder.queryParam("oslc.where", where);
+ }
+ if (null != prefix) {
+ uriBuilder.queryParam("oslc.prefix", prefix);
+ }
+ httpServletRequest.setAttribute("queryUri", uriBuilder.build().toString());
if (resources.size() > pageSize) {
resources.remove(resources.size() - 1);
- httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE,
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true&oslc.pageSize=" + pageSize + "&page=" + (page + 1));
+ uriBuilder.replaceQueryParam("page", page + 1);
+ httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE, uriBuilder.build().toString());
}
return resources.toArray(new RequirementCollection [resources.size()]);
}
@@ -178,21 +194,28 @@ public RequirementCollection[] queryRequirementCollections(
@GET
@Path("query")
@Produces({ MediaType.TEXT_HTML })
- @ApiOperation(
- value = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
- notes = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
+ description = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)})
+ }
)
public void queryRequirementCollectionsAsHtml(
@PathParam("serviceProviderId") final String serviceProviderId ,
@QueryParam("oslc.where") final String where,
@QueryParam("oslc.prefix") final String prefix,
+ @QueryParam("oslc.paging") final String pagingString,
@QueryParam("page") final String pageString,
- @QueryParam("oslc.pageSize") final String pageSizeString) throws ServletException, IOException
+ @QueryParam("oslc.pageSize") final String pageSizeString) throws ServletException, IOException
{
+ boolean paging=false;
int page=0;
int pageSize=20;
+ if (null != pagingString) {
+ paging = Boolean.parseBoolean(pagingString);
+ }
if (null != pageString) {
page = Integer.parseInt(pageString);
}
@@ -203,25 +226,34 @@ public void queryRequirementCollectionsAsHtml(
// Start of user code queryRequirementCollectionsAsHtml
// End of user code
- final List resources = RMManager.queryRequirementCollections(httpServletRequest, serviceProviderId, where, prefix, page, pageSize);
+ final List resources = RMManager.queryRequirementCollections(httpServletRequest, serviceProviderId, where, prefix, paging, page, pageSize);
if (resources!= null) {
httpServletRequest.setAttribute("resources", resources);
// Start of user code queryRequirementCollectionsAsHtml_setAttributes
// End of user code
- httpServletRequest.setAttribute("queryUri",
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true");
+ UriBuilder uriBuilder = UriBuilder.fromUri(uriInfo.getAbsolutePath())
+ .queryParam("oslc.paging", "true")
+ .queryParam("oslc.pageSize", pageSize)
+ .queryParam("page", page);
+ if (null != where) {
+ uriBuilder.queryParam("oslc.where", where);
+ }
+ if (null != prefix) {
+ uriBuilder.queryParam("oslc.prefix", prefix);
+ }
+ httpServletRequest.setAttribute("queryUri", uriBuilder.build().toString());
if (resources.size() > pageSize) {
resources.remove(resources.size() - 1);
- httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE,
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true&oslc.pageSize=" + pageSize + "&page=" + (page + 1));
+
+ uriBuilder.replaceQueryParam("page", page + 1);
+ httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE, uriBuilder.build().toString());
}
RequestDispatcher rd = httpServletRequest.getRequestDispatcher("/co/oslc/refimpl/rm/gen/requirementcollectionscollection.jsp");
rd.forward(httpServletRequest,httpServletResponse);
return;
}
-
throw new WebApplicationException(Status.NOT_FOUND);
}
@@ -259,6 +291,7 @@ public Response RequirementCollectionSelector(
JSONObject r = new JSONObject();
r.put("oslc:label", resource.toString());
r.put("rdf:resource", resource.getAbout().toString());
+ r.put("Label", resource.toString());
// Start of user code RequirementCollectionSelector_setResponse
// End of user code
resourceArray.add(r);
@@ -295,11 +328,13 @@ public Response RequirementCollectionSelector(
@Path("create")
@Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON })
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "Creation factory for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
- notes = "Creation factory for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Creation factory for resources of type {" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}",
+ description = "Creation factory for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE)})
+ }
)
public Response createRequirementCollection(
@PathParam("serviceProviderId") final String serviceProviderId ,
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/RequirementsService.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/RequirementsService.java
index cdc2416a..95f09e15 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/RequirementsService.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/RequirementsService.java
@@ -83,13 +83,14 @@
import co.oslc.refimpl.rm.gen.RMManager;
import co.oslc.refimpl.rm.gen.RMConstants;
-import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
+import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import co.oslc.refimpl.rm.gen.servlet.ServiceProviderCatalogSingleton;
import org.eclipse.lyo.oslc.domains.Person;
import org.eclipse.lyo.oslc.domains.rm.Requirement;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.media.Content;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
// Start of user code imports
// End of user code
@@ -98,7 +99,6 @@
// End of user code
@OslcService(Oslc_rmDomainConstants.REQUIREMENTS_MANAGEMENT_SHAPES_DOMAIN)
@Path("serviceProviders/{serviceProviderId}/service1/requirements")
-@Api(value = "OSLC Service for {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}")
public class RequirementsService
{
@Context private HttpServletRequest httpServletRequest;
@@ -138,21 +138,28 @@ private void addCORSHeaders (final HttpServletResponse httpServletResponse) {
@GET
@Path("query")
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
- notes = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
+ description = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)})
+ }
)
public Requirement[] queryRequirements(
@PathParam("serviceProviderId") final String serviceProviderId ,
@QueryParam("oslc.where") final String where,
@QueryParam("oslc.prefix") final String prefix,
+ @QueryParam("oslc.paging") final String pagingString,
@QueryParam("page") final String pageString,
- @QueryParam("oslc.pageSize") final String pageSizeString) throws IOException, ServletException
+ @QueryParam("oslc.pageSize") final String pageSizeString) throws IOException, ServletException
{
+ boolean paging=false;
int page=0;
int pageSize=20;
+ if (null != pagingString) {
+ paging = Boolean.parseBoolean(pagingString);
+ }
if (null != pageString) {
page = Integer.parseInt(pageString);
}
@@ -164,13 +171,22 @@ public Requirement[] queryRequirements(
// Here additional logic can be implemented that complements main action taken in RMManager
// End of user code
- final List resources = RMManager.queryRequirements(httpServletRequest, serviceProviderId, where, prefix, page, pageSize);
- httpServletRequest.setAttribute("queryUri",
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true");
+ final List resources = RMManager.queryRequirements(httpServletRequest, serviceProviderId, where, prefix, paging, page, pageSize);
+ UriBuilder uriBuilder = UriBuilder.fromUri(uriInfo.getAbsolutePath())
+ .queryParam("oslc.paging", "true")
+ .queryParam("oslc.pageSize", pageSize)
+ .queryParam("page", page);
+ if (null != where) {
+ uriBuilder.queryParam("oslc.where", where);
+ }
+ if (null != prefix) {
+ uriBuilder.queryParam("oslc.prefix", prefix);
+ }
+ httpServletRequest.setAttribute("queryUri", uriBuilder.build().toString());
if (resources.size() > pageSize) {
resources.remove(resources.size() - 1);
- httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE,
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true&oslc.pageSize=" + pageSize + "&page=" + (page + 1));
+ uriBuilder.replaceQueryParam("page", page + 1);
+ httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE, uriBuilder.build().toString());
}
return resources.toArray(new Requirement [resources.size()]);
}
@@ -178,21 +194,28 @@ public Requirement[] queryRequirements(
@GET
@Path("query")
@Produces({ MediaType.TEXT_HTML })
- @ApiOperation(
- value = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
- notes = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Query capability for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
+ description = "Query capability for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML)})
+ }
)
public void queryRequirementsAsHtml(
@PathParam("serviceProviderId") final String serviceProviderId ,
@QueryParam("oslc.where") final String where,
@QueryParam("oslc.prefix") final String prefix,
+ @QueryParam("oslc.paging") final String pagingString,
@QueryParam("page") final String pageString,
- @QueryParam("oslc.pageSize") final String pageSizeString) throws ServletException, IOException
+ @QueryParam("oslc.pageSize") final String pageSizeString) throws ServletException, IOException
{
+ boolean paging=false;
int page=0;
int pageSize=20;
+ if (null != pagingString) {
+ paging = Boolean.parseBoolean(pagingString);
+ }
if (null != pageString) {
page = Integer.parseInt(pageString);
}
@@ -203,25 +226,34 @@ public void queryRequirementsAsHtml(
// Start of user code queryRequirementsAsHtml
// End of user code
- final List resources = RMManager.queryRequirements(httpServletRequest, serviceProviderId, where, prefix, page, pageSize);
+ final List resources = RMManager.queryRequirements(httpServletRequest, serviceProviderId, where, prefix, paging, page, pageSize);
if (resources!= null) {
httpServletRequest.setAttribute("resources", resources);
// Start of user code queryRequirementsAsHtml_setAttributes
// End of user code
- httpServletRequest.setAttribute("queryUri",
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true");
+ UriBuilder uriBuilder = UriBuilder.fromUri(uriInfo.getAbsolutePath())
+ .queryParam("oslc.paging", "true")
+ .queryParam("oslc.pageSize", pageSize)
+ .queryParam("page", page);
+ if (null != where) {
+ uriBuilder.queryParam("oslc.where", where);
+ }
+ if (null != prefix) {
+ uriBuilder.queryParam("oslc.prefix", prefix);
+ }
+ httpServletRequest.setAttribute("queryUri", uriBuilder.build().toString());
if (resources.size() > pageSize) {
resources.remove(resources.size() - 1);
- httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE,
- uriInfo.getAbsolutePath().toString() + "?oslc.paging=true&oslc.pageSize=" + pageSize + "&page=" + (page + 1));
+
+ uriBuilder.replaceQueryParam("page", page + 1);
+ httpServletRequest.setAttribute(OSLC4JConstants.OSLC4J_NEXT_PAGE, uriBuilder.build().toString());
}
RequestDispatcher rd = httpServletRequest.getRequestDispatcher("/co/oslc/refimpl/rm/gen/requirementscollection.jsp");
rd.forward(httpServletRequest,httpServletResponse);
return;
}
-
throw new WebApplicationException(Status.NOT_FOUND);
}
@@ -259,6 +291,7 @@ public Response RequirementSelector(
JSONObject r = new JSONObject();
r.put("oslc:label", resource.toString());
r.put("rdf:resource", resource.getAbout().toString());
+ r.put("Label", resource.toString());
// Start of user code RequirementSelector_setResponse
// End of user code
resourceArray.add(r);
@@ -295,11 +328,13 @@ public Response RequirementSelector(
@Path("create")
@Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON })
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "Creation factory for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
- notes = "Creation factory for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
+ @Operation(
+ summary = "Creation factory for resources of type {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "}",
+ description = "Creation factory for resources of type {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}" +
", with respective resource shapes {" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE)})
+ }
)
public Response createRequirement(
@PathParam("serviceProviderId") final String serviceProviderId ,
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/ServiceProviderCatalogService.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/ServiceProviderCatalogService.java
index da70b856..765eff2a 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/ServiceProviderCatalogService.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/ServiceProviderCatalogService.java
@@ -111,7 +111,7 @@ public Response getServiceProviderCatalogs() throws IOException, URISyntaxExcept
@GET
@Path("{serviceProviderCatalogId}") // Required to distinguish from array result. But, ignored.
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- public ServiceProviderCatalog getServiceProviderCatalog()
+ public ServiceProviderCatalog getServiceProviderCatalog(@PathParam("serviceProviderCatalogId") final String serviceProviderCatalogId)
{
ServiceProviderCatalog catalog = ServiceProviderCatalogSingleton.getServiceProviderCatalog(httpServletRequest);
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/WebServiceBasic.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/WebServiceBasic.java
index 4c07f772..b1aae870 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/WebServiceBasic.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/services/WebServiceBasic.java
@@ -81,13 +81,14 @@
import co.oslc.refimpl.rm.gen.RMManager;
import co.oslc.refimpl.rm.gen.RMConstants;
-import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
+import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import org.eclipse.lyo.oslc.domains.rm.Oslc_rmDomainConstants;
import co.oslc.refimpl.rm.gen.servlet.ServiceProviderCatalogSingleton;
import org.eclipse.lyo.oslc.domains.rm.Requirement;
import org.eclipse.lyo.oslc.domains.rm.RequirementCollection;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.media.Content;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
// Start of user code imports
// End of user code
@@ -95,7 +96,6 @@
// Start of user code pre_class_code
// End of user code
@Path("")
-@Api(value = "Web Service for {" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + ", " + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "}")
public class WebServiceBasic
{
@Context private HttpServletRequest httpServletRequest;
@@ -127,11 +127,13 @@ private void addCORSHeaders (final HttpServletResponse httpServletResponse) {
@GET
@Path("Requirement/{serviceProviderId}/{resourceId}")
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Requirement getRequirement(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -156,11 +158,13 @@ public Requirement getRequirement(
@GET
@Path("Requirement/{serviceProviderId}/{resourceId}")
@Produces({ MediaType.TEXT_HTML })
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public void getRequirementAsHtml(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -187,11 +191,13 @@ public void getRequirementAsHtml(
@GET
@Path("Requirement/{serviceProviderId}/{resourceId}")
@Produces({OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML})
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Compact getRequirementCompact(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -293,11 +299,13 @@ public void getRequirementAsHtmlLargePreview(
@GET
@Path("RequirementCollection/{serviceProviderId}/{resourceId}")
@Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public RequirementCollection getRequirementCollection(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -322,11 +330,13 @@ public RequirementCollection getRequirementCollection(
@GET
@Path("RequirementCollection/{serviceProviderId}/{resourceId}")
@Produces({ MediaType.TEXT_HTML })
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public void getRequirementCollectionAsHtml(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -353,11 +363,13 @@ public void getRequirementCollectionAsHtml(
@GET
@Path("RequirementCollection/{serviceProviderId}/{resourceId}")
@Produces({OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML})
- @ApiOperation(
- value = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
- notes = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "GET for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
+ description = "GET for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Compact getRequirementCollectionCompact(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -458,11 +470,13 @@ public void getRequirementCollectionAsHtmlLargePreview(
}
@DELETE
@Path("Requirement/{serviceProviderId}/{resourceId}")
- @ApiOperation(
- value = "DELETE for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
- notes = "DELETE for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "DELETE for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
+ description = "DELETE for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Response deleteRequirement(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -486,11 +500,13 @@ public Response deleteRequirement(
@DELETE
@Path("RequirementCollection/{serviceProviderId}/{resourceId}")
- @ApiOperation(
- value = "DELETE for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
- notes = "DELETE for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "DELETE for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
+ description = "DELETE for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Response deleteRequirementCollection(
@PathParam("serviceProviderId") final String serviceProviderId, @PathParam("resourceId") final String resourceId
@@ -515,11 +531,13 @@ public Response deleteRequirementCollection(
@PUT
@Path("Requirement/{serviceProviderId}/{resourceId}")
@Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON })
- @ApiOperation(
- value = "PUT for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
- notes = "PUT for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "PUT for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "'}",
+ description = "PUT for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENT_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Response updateRequirement(
@HeaderParam("If-Match") final String eTagHeader,
@@ -553,11 +571,13 @@ public Response updateRequirement(
@PUT
@Path("RequirementCollection/{serviceProviderId}/{resourceId}")
@Consumes({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_JSON_LD, OslcMediaType.TEXT_TURTLE, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON })
- @ApiOperation(
- value = "PUT for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
- notes = "PUT for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
+ @Operation(
+ summary = "PUT for resources of type {'" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "'}",
+ description = "PUT for resources of type {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}" +
", with respective resource shapes {'" + "" + Oslc_rmDomainConstants.REQUIREMENTCOLLECTION_LOCALNAME + "" + "'}",
- produces = OslcMediaType.APPLICATION_RDF_XML + ", " + OslcMediaType.APPLICATION_XML + ", " + OslcMediaType.APPLICATION_JSON + ", " + OslcMediaType.TEXT_TURTLE + ", " + MediaType.TEXT_HTML + ", " + OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML
+ responses = {
+ @ApiResponse(description = "default response", content = {@Content(mediaType = OslcMediaType.APPLICATION_RDF_XML), @Content(mediaType = OslcMediaType.APPLICATION_XML), @Content(mediaType = OslcMediaType.APPLICATION_JSON), @Content(mediaType = OslcMediaType.TEXT_TURTLE), @Content(mediaType = MediaType.TEXT_HTML), @Content(mediaType = OslcMediaType.APPLICATION_X_OSLC_COMPACT_XML)})
+ }
)
public Response updateRequirementCollection(
@HeaderParam("If-Match") final String eTagHeader,
diff --git a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/servlet/Application.java b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/servlet/Application.java
index 23ffa68c..96ee971b 100644
--- a/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/servlet/Application.java
+++ b/src/server-rm/src/main/java/co/oslc/refimpl/rm/gen/servlet/Application.java
@@ -24,6 +24,7 @@
package co.oslc.refimpl.rm.gen.servlet;
import java.net.URISyntaxException;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@@ -51,6 +52,11 @@
import org.eclipse.lyo.oslc4j.provider.jena.JenaProvidersRegistry;
import org.eclipse.lyo.oslc4j.provider.json4j.Json4JProvidersRegistry;
+import io.swagger.v3.jaxrs2.integration.resources.AcceptHeaderOpenApiResource;
+import io.swagger.v3.jaxrs2.integration.resources.OpenApiResource;
+import io.swagger.v3.oas.annotations.OpenAPIDefinition;
+import io.swagger.v3.oas.annotations.info.Info;
+import io.swagger.v3.oas.annotations.servers.Server;
import co.oslc.refimpl.rm.gen.services.RootServicesService;
import co.oslc.refimpl.rm.gen.services.ServiceProviderCatalogService;
import co.oslc.refimpl.rm.gen.services.ServiceProviderService;
@@ -74,8 +80,10 @@
// End of user code
/**
- * Generated by Lyo Designer 4.1.0.202106271359
+ * Generated by Lyo Designer 4.2.0.202112291732
*/
+
+@OpenAPIDefinition(info = @Info(title = "RM", version = "1.0.0"), servers = @Server(url = "services/"))
public class Application extends javax.ws.rs.core.Application {
private static final Set> RESOURCE_CLASSES = new HashSet>();
@@ -87,6 +95,10 @@ public class Application extends javax.ws.rs.core.Application {
// Start of user code class_methods
// End of user code
+ @Override
+ public Set