| | |
| | | public void initializeGroupImplementation(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No additional initialization is required. |
| | | } |
| | | |
| | |
| | | public StaticGroup newInstance(Entry groupEntry) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(groupEntry); |
| | | |
| | | |
| | |
| | | public SearchFilter getGroupDefinitionFilter() |
| | | throws DirectoryException |
| | | { |
| | | |
| | | // FIXME -- This needs to exclude enhanced groups once we have support for |
| | | // them. |
| | | String filterString = |
| | |
| | | @Override() |
| | | public DN getGroupDN() |
| | | { |
| | | |
| | | return groupEntryDN; |
| | | } |
| | | |
| | |
| | | @Override() |
| | | public boolean supportsNestedGroups() |
| | | { |
| | | |
| | | // FIXME -- We should add support for nested groups. |
| | | return false; |
| | | } |
| | |
| | | @Override() |
| | | public List<DN> getNestedGroupDNs() |
| | | { |
| | | |
| | | // FIXME -- We should add support for nested groups. |
| | | return Collections.<DN>emptyList(); |
| | | } |
| | |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | |
| | | // FIXME -- We should add support for nested groups. |
| | | throw new UnsupportedOperationException(); |
| | | } |
| | |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | |
| | | // FIXME -- We should add support for nested groups. |
| | | throw new UnsupportedOperationException(); |
| | | } |
| | |
| | | public boolean isMember(DN userDN) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | return memberDNs.contains(userDN); |
| | | } |
| | | |
| | |
| | | public boolean isMember(Entry userEntry) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | return memberDNs.contains(userEntry.getDN()); |
| | | } |
| | | |
| | |
| | | public MemberList getMembers() |
| | | throws DirectoryException |
| | | { |
| | | |
| | | return new SimpleStaticGroupMemberList(groupEntryDN, memberDNs); |
| | | } |
| | | |
| | |
| | | SearchFilter filter) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | if ((baseDN == null) && (filter == null)) |
| | | { |
| | | return new SimpleStaticGroupMemberList(groupEntryDN, memberDNs); |
| | |
| | | @Override() |
| | | public boolean mayAlterMemberList() |
| | | { |
| | | |
| | | return true; |
| | | } |
| | | |
| | |
| | | public void addMember(Entry userEntry) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(userEntry); |
| | | |
| | | synchronized (this) |
| | |
| | | public void removeMember(DN userDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(userDN); |
| | | |
| | | synchronized (this) |
| | |
| | | @Override() |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("StaticGroup("); |
| | | buffer.append(groupEntryDN); |
| | | buffer.append(")"); |