Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
d1352eec
Commit
d1352eec
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2139 minor: url resolver helper
SVN: 20514
parent
95d9c507
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/AbstractViewLocatorResolver.java
+13
-1
13 additions, 1 deletion
...ient/application/locator/AbstractViewLocatorResolver.java
with
13 additions
and
1 deletion
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/AbstractViewLocatorResolver.java
+
13
−
1
View file @
d1352eec
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment