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
c776d1d2
Commit
c776d1d2
authored
12 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
Refactor: change misleading variable name.
SVN: 28624
parent
1554e9fe
No related branches found
No related tags found
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/server/authorization/CapabilityMap.java
+4
-4
4 additions, 4 deletions
...d/openbis/generic/server/authorization/CapabilityMap.java
with
4 additions
and
4 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/server/authorization/CapabilityMap.java
+
4
−
4
View file @
c776d1d2
...
@@ -94,7 +94,7 @@ class CapabilityMap
...
@@ -94,7 +94,7 @@ class CapabilityMap
filePath
));
filePath
));
continue
;
continue
;
}
}
final
String
method
Name
=
splitted
[
0
];
final
String
capability
Name
=
splitted
[
0
];
final
String
roleNames
=
splitted
[
1
];
final
String
roleNames
=
splitted
[
1
];
final
String
[]
roleNameArray
=
StringUtils
.
split
(
roleNames
,
","
);
final
String
[]
roleNameArray
=
StringUtils
.
split
(
roleNames
,
","
);
for
(
String
roleName
:
roleNameArray
)
for
(
String
roleName
:
roleNameArray
)
...
@@ -102,18 +102,18 @@ class CapabilityMap
...
@@ -102,18 +102,18 @@ class CapabilityMap
try
try
{
{
final
RoleWithHierarchy
role
=
RoleWithHierarchy
.
valueOf
(
roleName
);
final
RoleWithHierarchy
role
=
RoleWithHierarchy
.
valueOf
(
roleName
);
Collection
<
RoleWithHierarchy
>
roles
=
capMap
.
get
(
method
Name
);
Collection
<
RoleWithHierarchy
>
roles
=
capMap
.
get
(
capability
Name
);
if
(
roles
==
null
)
if
(
roles
==
null
)
{
{
roles
=
new
HashSet
<
RoleWithHierarchy
>();
roles
=
new
HashSet
<
RoleWithHierarchy
>();
capMap
.
put
(
method
Name
,
roles
);
capMap
.
put
(
capability
Name
,
roles
);
}
}
roles
.
add
(
role
);
roles
.
add
(
role
);
if
(
operationLog
.
isDebugEnabled
())
if
(
operationLog
.
isDebugEnabled
())
{
{
operationLog
.
debug
(
String
operationLog
.
debug
(
String
.
format
(
"Add to map: '%s' -> %s"
,
method
Name
,
role
));
.
format
(
"Add to map: '%s' -> %s"
,
capability
Name
,
role
));
}
}
}
catch
(
IllegalArgumentException
ex
)
}
catch
(
IllegalArgumentException
ex
)
{
{
...
...
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