From 659521f5b44cd0cd56cc6eb0bc65d47d9a008cce Mon Sep 17 00:00:00 2001 From: Teo Sarca Date: Wed, 29 Nov 2017 20:32:14 +0200 Subject: [PATCH] ViewRowAttributesRestController_OLD: assertDeprecatedRestAPIAllowed https://github.com/metasfresh/metasfresh-webui-frontend/issues/1357 --- .../ui/web/view/ViewRowAttributesRestController_OLD.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/de/metas/ui/web/view/ViewRowAttributesRestController_OLD.java b/src/main/java/de/metas/ui/web/view/ViewRowAttributesRestController_OLD.java index 135c9266f..a5e8bec0e 100644 --- a/src/main/java/de/metas/ui/web/view/ViewRowAttributesRestController_OLD.java +++ b/src/main/java/de/metas/ui/web/view/ViewRowAttributesRestController_OLD.java @@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; +import de.metas.ui.web.session.UserSession; import de.metas.ui.web.view.json.JSONViewRowAttributes; import de.metas.ui.web.view.json.JSONViewRowAttributesLayout; import de.metas.ui.web.window.datatypes.json.JSONDocument; @@ -52,6 +53,9 @@ public class ViewRowAttributesRestController_OLD private static final String PARAM_RowId = "rowId"; /* package */static final String ENDPOINT = ViewRestController.ENDPOINT + "/{" + PARAM_ViewId + "}/{" + PARAM_RowId + "}"; + @Autowired + private UserSession userSession; + @Autowired private ViewRowAttributesRestController delegate; @@ -62,6 +66,7 @@ public JSONViewRowAttributesLayout getAttributesLayout( , @PathVariable(PARAM_RowId) final String rowIdStr // ) { + userSession.assertDeprecatedRestAPIAllowed(); return delegate.getAttributesLayout(windowIdStr, viewIdStr, rowIdStr); } @@ -72,6 +77,7 @@ public JSONViewRowAttributes getData( , @PathVariable(PARAM_RowId) final String rowIdStr // ) { + userSession.assertDeprecatedRestAPIAllowed(); return delegate.getData(windowIdStr, viewIdStr, rowIdStr); } @@ -83,6 +89,7 @@ public List processChanges( , @RequestBody final List events // ) { + userSession.assertDeprecatedRestAPIAllowed(); return delegate.processChanges(windowIdStr, viewIdStr, rowIdStr, events); } @@ -95,6 +102,7 @@ public JSONLookupValuesList getAttributeTypeahead( , @RequestParam(name = "query", required = true) final String query // ) { + userSession.assertDeprecatedRestAPIAllowed(); return delegate.getAttributeTypeahead(windowIdStr, viewIdStr, rowIdStr, attributeName, query); } @@ -106,6 +114,7 @@ public JSONLookupValuesList getAttributeDropdown( , @PathVariable("attributeName") final String attributeName // ) { + userSession.assertDeprecatedRestAPIAllowed(); return delegate.getAttributeDropdown(windowIdStr, viewIdStr, rowIdStr, attributeName); } }