Skip to content

Commit

Permalink
#183 delete deprecated API from UserSession
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Feb 23, 2017
1 parent 197787d commit 61de14d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ public static UserSession getCurrent() throws NotLoggedInException
@Value("${metasfresh.webui.debug.showColumnNamesForCaption:false}")
private boolean default_showColumnNamesForCaption;

@Value("${metasfresh.webui.userSession.dashboardUrl:}")
private String dashboardUrl;

public static final String PARAM_DisableDeprecatedRestAPI = "metasfresh.webui.debug.DisableDeprecatedRestAPI";
@Value("${" + PARAM_DisableDeprecatedRestAPI + ":true}")
private boolean default_disableDeprecatedRestAPI;
Expand Down Expand Up @@ -318,12 +315,6 @@ public IUserRolePermissions getUserRolePermissions()
return Env.getUserRolePermissions(getCtx());
}

@Deprecated
public String getDashboardUrl()
{
return dashboardUrl;
}

public <T extends Serializable> Object setProperty(final String name, final T value)
{
return properties.put(name, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import de.metas.ui.web.config.WebConfig;
Expand Down Expand Up @@ -70,12 +69,4 @@ public String getAD_Language()
{
return userSession.getAD_Language();
}

@RequestMapping(value = "/dashboardUrl", method = RequestMethod.GET)
@Deprecated
public String getDashboardUrl_DEPRECATED()
{
userSession.assertDeprecatedRestAPIAllowed();
return userSession.getDashboardUrl();
}
}

0 comments on commit 61de14d

Please sign in to comment.