Skip to content

Commit

Permalink
Fixed the groupsFor method in GroupServiceBean, and clarified the doc…
Browse files Browse the repository at this point in the history
…umentation in ExplicitGroupServiceBean
  • Loading branch information
michbarsinai committed Jul 1, 2015
1 parent 86f36bd commit c02e100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public Set<Group> groupsFor( RoleAssignee ra, DvObject dvo ) {
while ( ! perimeter.isEmpty() ) {
ExplicitGroup g = perimeter.iterator().next();
perimeter.remove(g);
groups.add(g);

Set<ExplicitGroup> discovered = explicitGroupProvider.groupsFor(g, dvo);
discovered.removeAll(visited); // Ideally the conjunction is always empty, as we don't allow cycles.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public Set<ExplicitGroup> findAvailableFor( DvObject d ) {
/**
* Finds all the groups {@code ra} belongs to in the context of {@code o}. In effect,
* collects all the groups {@code ra} belongs to and that are defined at {@code o}
* or one of its ancestors.
* or one of its ancestors. Does not take group containment into account.
*
* @param ra The role assignee that belongs to the groups
* @param o the DvObject that defines the context of the search.
Expand Down

0 comments on commit c02e100

Please sign in to comment.