| | |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.forgerock.opendj.ldap.schema.Schema; |
| | | import org.forgerock.opendj.server.config.server.VirtualStaticGroupImplementationCfg; |
| | | import org.opends.server.api.Group; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | |
| | | // Get the target group DN attribute from the entry, if there is one. |
| | | DN targetDN = null; |
| | | AttributeType targetType = DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(ATTR_TARGET_GROUP_DN); |
| | | for (Attribute a : groupEntry.getAllAttributes(targetType)) |
| | | for (Attribute a : groupEntry.getAllAttributes(ATTR_TARGET_GROUP_DN)) |
| | | { |
| | | for (ByteString v : a) |
| | | { |
| | |
| | | ifNull(entry); |
| | | |
| | | // FIXME -- This needs to exclude enhanced groups once we have support for them. |
| | | return entry.hasObjectClass(DirectoryServer.getInstance().getServerContext().getSchema().getObjectClass(OC_VIRTUAL_STATIC_GROUP)); |
| | | Schema schema = DirectoryServer.getInstance().getServerContext().getSchema(); |
| | | return entry.hasObjectClass(schema.getObjectClass(OC_VIRTUAL_STATIC_GROUP)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return false; |
| | | } |
| | | |
| | | Group targetGroup = |
| | | Group<?> targetGroup = |
| | | DirectoryServer.getGroupManager().getGroupInstance(targetGroupDN); |
| | | if (targetGroup == null) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | Group targetGroup = |
| | | Group<?> targetGroup = |
| | | DirectoryServer.getGroupManager().getGroupInstance(targetGroupDN); |
| | | if (targetGroup == null) |
| | | { |
| | |
| | | public MemberList getMembers() |
| | | throws DirectoryException |
| | | { |
| | | Group targetGroup = |
| | | Group<?> targetGroup = |
| | | DirectoryServer.getGroupManager().getGroupInstance(targetGroupDN); |
| | | if (targetGroup == null) |
| | | { |
| | |
| | | SearchFilter filter) |
| | | throws DirectoryException |
| | | { |
| | | Group targetGroup = |
| | | Group<?> targetGroup = |
| | | DirectoryServer.getGroupManager().getGroupInstance(targetGroupDN); |
| | | if (targetGroup == null) |
| | | { |