| | |
| | | this.memberDNs = memberDNs; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initializeGroupImplementation(StaticGroupImplementationCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | // No additional initialization is required. |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public StaticGroup newInstance(ServerContext serverContext, Entry groupEntry) throws DirectoryException |
| | | { |
| | |
| | | return new StaticGroup(serverContext, groupEntry.getName(), someMemberAttributeType, someMemberDNs); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public SearchFilter getGroupDefinitionFilter() |
| | | throws DirectoryException |
| | |
| | | return SearchFilter.createFilterFromString(filterString); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isGroupDefinition(Entry entry) |
| | | { |
| | |
| | | return entry.hasObjectClass(DirectoryConfig.getObjectClass(ocName, true)); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public DN getGroupDN() |
| | | { |
| | | return groupEntryDN; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void setGroupDN(DN groupDN) |
| | | { |
| | | groupEntryDN = groupDN; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean supportsNestedGroups() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public List<DN> getNestedGroupDNs() |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isMember(DN userDN, Set<DN> examinedGroups) throws DirectoryException |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isMember(Entry userEntry, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public MemberList getMembers() throws DirectoryException |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public MemberList getMembers(DN baseDN, SearchScope scope, SearchFilter filter) throws DirectoryException |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean mayAlterMemberList() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void updateMembers(List<Modification> modifications) |
| | | throws UnsupportedOperationException, DirectoryException |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void addMember(Entry userEntry) throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void removeMember(DN userDN) throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | newLinkedList(control), groupEntryDN, mods); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | |
| | | return compactDn.toDn(); |
| | | } |
| | | } |
| | | |