equal
deleted
inserted
replaced
32 /** |
32 /** |
33 * This class implements a group of principals. |
33 * This class implements a group of principals. |
34 * @author Satish Dharmaraj |
34 * @author Satish Dharmaraj |
35 */ |
35 */ |
36 public class GroupImpl implements Group { |
36 public class GroupImpl implements Group { |
37 private Vector<Principal> groupMembers = new Vector<Principal>(50, 100); |
37 private Vector<Principal> groupMembers = new Vector<>(50, 100); |
38 private String group; |
38 private String group; |
39 |
39 |
40 /** |
40 /** |
41 * Constructs a Group object with no members. |
41 * Constructs a Group object with no members. |
42 * @param groupName the name of the group |
42 * @param groupName the name of the group |
129 // principal. |
129 // principal. |
130 // |
130 // |
131 if (groupMembers.contains(member)) { |
131 if (groupMembers.contains(member)) { |
132 return true; |
132 return true; |
133 } else { |
133 } else { |
134 Vector<Group> alreadySeen = new Vector<Group>(10); |
134 Vector<Group> alreadySeen = new Vector<>(10); |
135 return isMemberRecurse(member, alreadySeen); |
135 return isMemberRecurse(member, alreadySeen); |
136 } |
136 } |
137 } |
137 } |
138 |
138 |
139 /** |
139 /** |