Skip to content
Snippets Groups Projects
Commit e0433c8c authored by buczekp's avatar buczekp
Browse files

[LMS-1504] use simple view mode for permlinks

SVN: 15730
parent 8953fb28
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,9 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.dto.SessionContext;
*/
public class Client implements EntryPoint, ValueChangeHandler<String>
{
private static final String SIMPLE = "simple";
public static final String SIMPLE = "simple";
private static final String VIEW_MODE_KEY = "viewMode";
public static final String VIEW_MODE_KEY = "viewMode";
/** name of the URL parameter which decides if looging is switched on or off */
private static final String LOGGING_PARAM = "log";
......
......@@ -16,6 +16,7 @@
package ch.systemsx.cisd.openbis.generic.shared.basic;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.Client;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind;
/**
......@@ -36,6 +37,7 @@ public class PermlinkUtilities
final EntityKind entityKind, final String permId)
{
URLMethodWithParameters ulrWithParameters = new URLMethodWithParameters(baseIndexURL);
ulrWithParameters.addParameter(Client.VIEW_MODE_KEY, Client.SIMPLE);
ulrWithParameters.startHistoryToken();
ulrWithParameters.addParameter(ENTITY_KIND_PARAMETER_KEY, entityKind.name());
ulrWithParameters.addParameter(PERM_ID_PARAMETER_KEY, permId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment