From a12636714bd858e917c2c54ade77560f77bd5d83 Mon Sep 17 00:00:00 2001 From: Maximilian Junker Date: Tue, 3 Jul 2018 13:43:25 +0200 Subject: [PATCH] fixes the issue where the hp details service breaks the saving of changes. --- .../internal/services/HPConnector.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bundles/specmate-hp-connector/src/com/specmate/connectors/hpconnector/internal/services/HPConnector.java b/bundles/specmate-hp-connector/src/com/specmate/connectors/hpconnector/internal/services/HPConnector.java index 4ab402f17..289f8af85 100644 --- a/bundles/specmate-hp-connector/src/com/specmate/connectors/hpconnector/internal/services/HPConnector.java +++ b/bundles/specmate-hp-connector/src/com/specmate/connectors/hpconnector/internal/services/HPConnector.java @@ -6,6 +6,7 @@ import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; +import org.eclipse.emf.ecore.EObject; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.ConfigurationPolicy; @@ -105,6 +106,21 @@ public boolean canGet(Object target) { return false; } + @Override + public boolean canPut(Object target, EObject object) { + return false; + } + + @Override + public boolean canPost(Object object2, EObject object) { + return false; + } + + @Override + public boolean canDelete(Object object) { + return false; + } + /** * Behavior for GET requests. For requirements the current data is fetched * from the HP server.