Skip to content
Snippets Groups Projects
Commit d1352eec authored by tpylak's avatar tpylak
Browse files

LMS-2139 minor: url resolver helper

SVN: 20514
parent 95d9c507
No related branches found
No related tags found
No related merge requests found
package ch.systemsx.cisd.openbis.generic.client.web.client.application.locator; package ch.systemsx.cisd.openbis.generic.client.web.client.application.locator;
import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException; import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind;
...@@ -46,6 +45,19 @@ public abstract class AbstractViewLocatorResolver implements IViewLocatorResolve ...@@ -46,6 +45,19 @@ public abstract class AbstractViewLocatorResolver implements IViewLocatorResolve
return new Boolean(value); return new Boolean(value);
} }
protected static final boolean getOptionalBooleanParameter(ViewLocator locator,
String paramName, boolean defaultValue)
{
Boolean valueOrNull = getOptionalBooleanParameter(locator, paramName);
if (valueOrNull == null)
{
return defaultValue;
} else
{
return valueOrNull.booleanValue();
}
}
protected static final String getMandatoryParameter(ViewLocator locator, String paramName) protected static final String getMandatoryParameter(ViewLocator locator, String paramName)
{ {
String valueOrNull = getOptionalParameter(locator, paramName); String valueOrNull = getOptionalParameter(locator, paramName);
......
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