Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2021-01-12 20:21:57 +0000
committerRyan Brooks2021-01-13 20:35:21 +0000
commitf221a5b7f4a44df379e9260ee4b38e36337fd048 (patch)
treeca8648db5d2fd6415368921294c89c9da8fa92a0
parentd59d1de73ac5dfe7552d77be0535441ed5b4c6a8 (diff)
downloadorg.eclipse.osee-f221a5b7f4a44df379e9260ee4b38e36337fd048.tar.gz
org.eclipse.osee-f221a5b7f4a44df379e9260ee4b38e36337fd048.tar.xz
org.eclipse.osee-f221a5b7f4a44df379e9260ee4b38e36337fd048.zip
refactor[TW18593]: Remove unnecessary dependency on resource.management
-rw-r--r--features/org.eclipse.osee.disposition.feature/feature.xml1
-rw-r--r--plugins/org.eclipse.osee.disposition.rest/META-INF/MANIFEST.MF2
-rw-r--r--plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/HttpSystemManagerCreationInfo.java38
-rw-r--r--plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/ServletResourceBridge.java68
5 files changed, 0 insertions, 110 deletions
diff --git a/features/org.eclipse.osee.disposition.feature/feature.xml b/features/org.eclipse.osee.disposition.feature/feature.xml
index 7f3aa0599c1..e4889a9f5fd 100644
--- a/features/org.eclipse.osee.disposition.feature/feature.xml
+++ b/features/org.eclipse.osee.disposition.feature/feature.xml
@@ -22,7 +22,6 @@
<import plugin="org.eclipse.osee.framework.core"/>
<import plugin="org.eclipse.osee.framework.core.model"/>
<import plugin="org.eclipse.osee.framework.jdk.core"/>
- <import plugin="org.eclipse.osee.framework.resource.management"/>
<import plugin="org.eclipse.osee.logger"/>
<import plugin="org.eclipse.osee.orcs"/>
<import plugin="org.eclipse.osee.template.engine"/>
diff --git a/plugins/org.eclipse.osee.disposition.rest/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.disposition.rest/META-INF/MANIFEST.MF
index 9c224fc9b40..2db52d52e4e 100644
--- a/plugins/org.eclipse.osee.disposition.rest/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.disposition.rest/META-INF/MANIFEST.MF
@@ -25,8 +25,6 @@ Import-Package:
org.eclipse.osee.framework.jdk.core.type,
org.eclipse.osee.framework.jdk.core.util,
org.eclipse.osee.framework.jdk.core.util.io.xml,
- org.eclipse.osee.framework.resource.management,
- org.eclipse.osee.framework.resource.management.util,
org.eclipse.osee.logger,
org.eclipse.osee.orcs,
org.eclipse.osee.orcs.data,
diff --git a/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
index 2133f1379d1..4bff76426c0 100644
--- a/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.server.ide/META-INF/MANIFEST.MF
@@ -18,7 +18,6 @@ Import-Package: javax.servlet,
org.eclipse.osee.framework.core.util,
org.eclipse.osee.framework.jdk.core.type,
org.eclipse.osee.framework.jdk.core.util,
- org.eclipse.osee.framework.resource.management,
org.eclipse.osee.framework.server.ide.api,
org.eclipse.osee.framework.server.ide.api.client,
org.eclipse.osee.framework.server.ide.api.client.model,
diff --git a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/HttpSystemManagerCreationInfo.java b/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/HttpSystemManagerCreationInfo.java
deleted file mode 100644
index 5a9a397dda2..00000000000
--- a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/HttpSystemManagerCreationInfo.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*********************************************************************
- * Copyright (c) 2004, 2007 Boeing
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Boeing - initial API and implementation
- **********************************************************************/
-
-package org.eclipse.osee.framework.server.ide.data;
-
-import javax.servlet.http.HttpServletRequest;
-
-/**
- * @author Donald G. Dunne
- */
-public class HttpSystemManagerCreationInfo {
-
- private final String userId;
- private final String sessionId;
-
- public HttpSystemManagerCreationInfo(HttpServletRequest req) {
- userId = req.getParameter("userId");
- sessionId = req.getParameter("sessionId");
- }
-
- public String getUserId() {
- return userId;
- }
-
- public String getSessionId() {
- return sessionId;
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/ServletResourceBridge.java b/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/ServletResourceBridge.java
deleted file mode 100644
index a95b24e777d..00000000000
--- a/plugins/org.eclipse.osee.framework.server.ide/src/org/eclipse/osee/framework/server/ide/data/ServletResourceBridge.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*********************************************************************
- * Copyright (c) 2004, 2007 Boeing
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Boeing - initial API and implementation
- **********************************************************************/
-
-package org.eclipse.osee.framework.server.ide.data;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-import javax.servlet.http.HttpServletRequest;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.resource.management.IResource;
-import org.eclipse.osee.framework.resource.management.IResourceLocator;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ServletResourceBridge implements IResource {
-
- private static final String IS_COMPRESSED = "is.compressed";
-
- private final HttpServletRequest request;
- private final IResourceLocator locator;
-
- public ServletResourceBridge(HttpServletRequest request, IResourceLocator locator) {
- this.request = request;
- this.locator = locator;
- }
-
- @Override
- public InputStream getContent() {
- try {
- return request.getInputStream();
- } catch (IOException ex) {
- throw OseeCoreException.wrap(ex);
- }
- }
-
- @Override
- public URI getLocation() {
- return locator.getLocation();
- }
-
- @Override
- public String getName() {
- String path = locator.getLocation().toASCIIString();
- int index = path.lastIndexOf("/");
- if (index != -1 && index + 1 < path.length()) {
- path = path.substring(index + 1, path.length());
- }
- return path;
- }
-
- @Override
- public boolean isCompressed() {
- return Boolean.valueOf(request.getParameter(IS_COMPRESSED));
- }
-
-}

Back to the top