| | |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import static org.opends.server.protocols.internal.InternalClientConnection.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.Validator.*; |
| | | import static org.forgerock.util.Reject.*; |
| | | |
| | | |
| | | |
| | |
| | | super(); |
| | | |
| | | |
| | | ensureNotNull(groupEntryDN, memberAttributeType, memberDNs); |
| | | ifNull(groupEntryDN, memberAttributeType, memberDNs); |
| | | |
| | | this.groupEntryDN = groupEntryDN; |
| | | this.memberAttributeType = memberAttributeType; |
| | |
| | | public StaticGroup newInstance(Entry groupEntry) |
| | | throws DirectoryException |
| | | { |
| | | ensureNotNull(groupEntry); |
| | | ifNull(groupEntry); |
| | | |
| | | |
| | | // Determine whether it is a groupOfNames, groupOfEntries or |
| | |
| | | @Override() |
| | | public boolean isGroupDefinition(Entry entry) |
| | | { |
| | | ensureNotNull(entry); |
| | | ifNull(entry); |
| | | |
| | | // FIXME -- This needs to exclude enhanced groups once we have support for |
| | | //them. |
| | |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ensureNotNull(nestedGroupDN); |
| | | ifNull(nestedGroupDN); |
| | | |
| | | synchronized (this) |
| | | { |
| | |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ensureNotNull(nestedGroupDN); |
| | | ifNull(nestedGroupDN); |
| | | |
| | | synchronized (this) |
| | | { |
| | |
| | | public void addMember(Entry userEntry) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ensureNotNull(userEntry); |
| | | ifNull(userEntry); |
| | | |
| | | synchronized (this) |
| | | { |
| | |
| | | public void removeMember(DN userDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ensureNotNull(userDN); |
| | | ifNull(userDN); |
| | | |
| | | ByteString userDNString = ByteString.valueOf(userDN.toNormalizedString()); |
| | | synchronized (this) |