| | |
| | | # |
| | | # |
| | | # Copyright 2006-2010 Sun Microsystems, Inc. |
| | | # Portions Copyright 2010 ForgeRock AS. |
| | | # Portions Copyright 2010-2011 ForgeRock AS. |
| | | # |
| | | # |
| | | # This file contains the attribute type and objectclass definitions for use |
| | |
| | | ds-cfg-enabled $ |
| | | ds-cfg-attribute-type ) |
| | | MAY ( ds-cfg-base-dn $ |
| | | ds-cfg-scope $ |
| | | ds-cfg-group-dn $ |
| | | ds-cfg-filter $ |
| | | ds-cfg-conflict-behavior ) |
| | |
| | | ! |
| | | ! |
| | | ! Copyright 2007-2008 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2011 ForgeRock AS |
| | | ! --> |
| | | <adm:managed-object name="virtual-attribute" |
| | | plural-name="virtual-attributes" package="org.opends.server.admin.std" |
| | |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="scope"> |
| | | <adm:synopsis> |
| | | Specifies the LDAP scope associated with base DNs for entries that are |
| | | eligible to use this virtual attribute. |
| | | </adm:synopsis> |
| | | <adm:default-behavior> |
| | | <adm:defined> |
| | | <adm:value>whole-subtree</adm:value> |
| | | </adm:defined> |
| | | </adm:default-behavior> |
| | | <adm:syntax> |
| | | <adm:enumeration> |
| | | <adm:value name="base-object"> |
| | | <adm:synopsis>Search the base object only.</adm:synopsis> |
| | | </adm:value> |
| | | <adm:value name="single-level"> |
| | | <adm:synopsis> |
| | | Search the immediate children of the base object but do not |
| | | include any of their descendants or the base object itself. |
| | | </adm:synopsis> |
| | | </adm:value> |
| | | <adm:value name="subordinate-subtree"> |
| | | <adm:synopsis> |
| | | Search the entire subtree below the base object but do not |
| | | include the base object itself. |
| | | </adm:synopsis> |
| | | </adm:value> |
| | | <adm:value name="whole-subtree"> |
| | | <adm:synopsis> |
| | | Search the base object and the entire subtree below the base |
| | | object. |
| | | </adm:synopsis> |
| | | </adm:value> |
| | | </adm:enumeration> |
| | | </adm:syntax> |
| | | <adm:profile name="ldap"> |
| | | <ldap:attribute> |
| | | <ldap:name>ds-cfg-scope</ldap:name> |
| | | </ldap:attribute> |
| | | </adm:profile> |
| | | </adm:property> |
| | | <adm:property name="group-dn" multi-valued="true"> |
| | | <adm:synopsis> |
| | | Specifies the DNs of the groups whose members can be eligible to |
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | import org.opends.server.types.SearchScope; |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(cfg.getAttributeType(), provider, |
| | | cfg.getBaseDN(), cfg.getGroupDN(), |
| | | filters, cfg.getConflictBehavior()); |
| | | cfg.getBaseDN(), |
| | | SearchScope.valueOf(cfg.getScope().name()), |
| | | cfg.getGroupDN(), |
| | | filters, cfg.getConflictBehavior()); |
| | | rules.put(cfg.dn(), rule); |
| | | DirectoryServer.registerVirtualAttribute(rule); |
| | | } |
| | |
| | | { |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(configuration.getAttributeType(), provider, |
| | | configuration.getBaseDN(), |
| | | configuration.getGroupDN(), |
| | | filters, |
| | | configuration.getConflictBehavior()); |
| | | configuration.getBaseDN(), |
| | | SearchScope.valueOf(configuration.getScope().name()), |
| | | configuration.getGroupDN(), |
| | | filters, |
| | | configuration.getConflictBehavior()); |
| | | |
| | | rules.put(configuration.dn(), rule); |
| | | DirectoryServer.registerVirtualAttribute(rule); |
| | |
| | | { |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(configuration.getAttributeType(), provider, |
| | | configuration.getBaseDN(), |
| | | configuration.getGroupDN(), |
| | | filters, |
| | | configuration.getConflictBehavior()); |
| | | configuration.getBaseDN(), |
| | | SearchScope.valueOf(configuration.getScope().name()), |
| | | configuration.getGroupDN(), |
| | | filters, |
| | | configuration.getConflictBehavior()); |
| | | |
| | | rules.put(configuration.dn(), rule); |
| | | if (existingRule == null) |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.common; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | |
| | | extends VirtualAttributeProvider<UserDefinedVirtualAttributeCfg> |
| | | implements ConfigurationChangeListener<UserDefinedVirtualAttributeCfg> |
| | | { |
| | | |
| | | /* |
| | | * The base DN of the changelog is a constant. |
| | | * TODO: This shouldn't be a virtual attribute, but directly |
| | | * registered in the RootDSE. |
| | | */ |
| | | private final Set<AttributeValue> values; |
| | | |
| | | |
| | | /** |
| | | * Creates a new instance of this member virtual attribute provider. |
| | | */ |
| | |
| | | { |
| | | super(); |
| | | |
| | | // All initialization should be performed in the |
| | | // initializeVirtualAttributeProvider method. |
| | | AttributeValue value = |
| | | AttributeValues.create( |
| | | ByteString.valueOf(ServerConstants.DN_EXTERNAL_CHANGELOG_ROOT), |
| | | ByteString.valueOf(ServerConstants.DN_EXTERNAL_CHANGELOG_ROOT)); |
| | | values=Collections.singleton(value); |
| | | } |
| | | |
| | | |
| | |
| | | @Override() |
| | | public Set<AttributeValue> getValues(Entry entry,VirtualAttributeRule rule) |
| | | { |
| | | Set<AttributeValue> values = new HashSet<AttributeValue>(); |
| | | AttributeValue value = |
| | | AttributeValues.create( |
| | | ByteString.valueOf(ServerConstants.DN_EXTERNAL_CHANGELOG_ROOT), |
| | | ByteString.valueOf(ServerConstants.DN_EXTERNAL_CHANGELOG_ROOT)); |
| | | values=Collections.singleton(value); |
| | | return values; |
| | | } |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.common; |
| | | |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.InitializationException; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // There's only a value for the rootDSE, i.e. the Null DN. |
| | | return entry.getDN().isNullDN(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | |
| | | @Override() |
| | | public Set<AttributeValue> getValues(Entry entry,VirtualAttributeRule rule) |
| | | { |
| | | Set<AttributeValue> values = new HashSet<AttributeValue>(); |
| | | String first="0"; |
| | | try |
| | | { |
| | | if (!entry.getDN().equals(DN.decode(""))) |
| | | { |
| | | return values; |
| | | } |
| | | ECLWorkflowElement eclwe = (ECLWorkflowElement) |
| | | DirectoryServer.getWorkflowElement("EXTERNAL CHANGE LOG"); |
| | | if (eclwe!=null) |
| | |
| | | } |
| | | catch(Exception e) |
| | | { |
| | | // We got an error computing the first change number. |
| | | // Rather than returning 0 which is no change, return -1 to |
| | | // indicate the error. |
| | | first = "-1"; |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | AttributeValue value = |
| | | AttributeValues.create( |
| | | ByteString.valueOf(first), |
| | | ByteString.valueOf(first)); |
| | | values=Collections.singleton(value); |
| | | Set<AttributeValue> values=Collections.singleton(value); |
| | | return values; |
| | | } |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.common; |
| | | |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.InitializationException; |
| | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // There's only a value for the rootDSE, i.e. the Null DN. |
| | | return entry.getDN().isNullDN(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | public Set<AttributeValue> getValues(Entry entry,VirtualAttributeRule rule) |
| | | { |
| | | Set<AttributeValue> values = new HashSet<AttributeValue>(); |
| | | String last = "0"; |
| | | try |
| | | { |
| | | if (!entry.getDN().equals(DN.decode(""))) |
| | | { |
| | | return values; |
| | | } |
| | | ECLWorkflowElement eclwe = (ECLWorkflowElement) |
| | | DirectoryServer.getWorkflowElement("EXTERNAL CHANGE LOG"); |
| | | if (eclwe!=null) |
| | |
| | | } |
| | | catch(Exception e) |
| | | { |
| | | // We got an error computing the first change number. |
| | | // Rather than returning 0 which is no change, return -1 to |
| | | // indicate the error. |
| | | last = "-1"; |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | AttributeValue value = |
| | | AttributeValues.create( |
| | | ByteString.valueOf(last), |
| | | ByteString.valueOf(last)); |
| | | values=Collections.singleton(value); |
| | | Set<AttributeValue> values =Collections.singleton(value); |
| | | return values; |
| | | } |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.replication.common; |
| | |
| | | @Override() |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // Indicates whether this virtual attribute provider will generate |
| | | // at least one value for the provided entry. |
| | | // True is the DN is the one of the root DSE : "". |
| | | return entry.getDN().toNormalizedString().equalsIgnoreCase(""); |
| | | // There's only a value for the rootDSE, i.e. the Null DN. |
| | | return entry.getDN().isNullDN(); |
| | | |
| | | } |
| | | |
| | |
| | | import org.opends.server.workflowelement.externalchangelog.ECLWorkflowElement; |
| | | |
| | | import com.sleepycat.je.DatabaseException; |
| | | import org.opends.server.types.SearchScope; |
| | | |
| | | /** |
| | | * ReplicationServer Listener. |
| | |
| | | baseDNs.add(DN.decode("")); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(attributeType, provider, |
| | | baseDNs, groupDNs, filters, conflictBehavior); |
| | | baseDNs, SearchScope.BASE_OBJECT, |
| | | groupDNs, filters, conflictBehavior); |
| | | |
| | | DirectoryServer.registerVirtualAttribute(rule); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | // virtual attribute. |
| | | private final Set<DN> baseDNs; |
| | | |
| | | // The scope of entries eligible to have this virtual attribute, |
| | | // under the base DNs. |
| | | private final SearchScope scope; |
| | | |
| | | // The set of DNs for groups whose members are eligible to have this |
| | | // virtual attribute. |
| | | private final Set<DN> groupDNs; |
| | |
| | | * @param baseDNs The set of base DNs for branches that |
| | | * are eligible to have this virtual |
| | | * attribute. |
| | | * @param scope The scope of entries, related to the |
| | | * base DNs, that are eligible to have |
| | | * this virtual attribute. |
| | | * @param groupDNs The set of DNs for groups whose members |
| | | * are eligible to have this virtual |
| | | * attribute. |
| | |
| | | public VirtualAttributeRule(AttributeType attributeType, |
| | | VirtualAttributeProvider<? extends VirtualAttributeCfg> |
| | | provider, |
| | | Set<DN> baseDNs, Set<DN> groupDNs, |
| | | Set<DN> baseDNs, SearchScope scope, Set<DN> groupDNs, |
| | | Set<SearchFilter> filters, |
| | | VirtualAttributeCfgDefn.ConflictBehavior |
| | | conflictBehavior) |
| | |
| | | this.attributeType = attributeType; |
| | | this.provider = provider; |
| | | this.baseDNs = baseDNs; |
| | | this.scope = scope; |
| | | this.groupDNs = groupDNs; |
| | | this.filters = filters; |
| | | this.conflictBehavior = conflictBehavior; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Retrieves the scope of entries in the base DNs that are eligible |
| | | * to have this virtual attribute. |
| | | * |
| | | * @return The scope of entries that are eligible to |
| | | * have this virtual attribute. |
| | | */ |
| | | public SearchScope getScope() |
| | | { |
| | | return scope; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the set of DNs for groups whose members are eligible to |
| | |
| | | boolean found = false; |
| | | for (DN dn : baseDNs) |
| | | { |
| | | if (entryDN.isDescendantOf(dn)) |
| | | if (entryDN.matchesBaseAndScope(dn , scope)) |
| | | { |
| | | found = true; |
| | | break; |
| | |
| | | |
| | | buffer.append("\""); |
| | | } |
| | | |
| | | buffer.append("}, groupDNs={"); |
| | | buffer.append("}, scope="); |
| | | buffer.append(scope.toString()); |
| | | buffer.append(", groupDNs={"); |
| | | if (! groupDNs.isEmpty()) |
| | | { |
| | | buffer.append("\""); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(entryUUIDType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(governingStructureRuleType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | new IsMemberOfVirtualAttributeProvider(); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | new IsMemberOfVirtualAttributeProvider(); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | new IsMemberOfVirtualAttributeProvider(); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | new IsMemberOfVirtualAttributeProvider(); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | new IsMemberOfVirtualAttributeProvider(); |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(isMemberOfType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(structuralObjectClassType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | |
| | | VirtualAttributeRule rule = |
| | | new VirtualAttributeRule(subschemaSubentryType, provider, |
| | | Collections.<DN>emptySet(), Collections.<DN>emptySet(), |
| | | Collections.<DN>emptySet(), SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | VirtualAttributeCfgDefn.ConflictBehavior. |
| | | VIRTUAL_OVERRIDES_REAL); |
| | |
| | | // Test all types of ops. |
| | | ECLAllOps(); // Do not clean the db for the next test |
| | | |
| | | // Test that ECL Operational, virtual attributes are not visible |
| | | // outside rootDSE. Next test will test access in RootDSE. |
| | | // This one checks in data. |
| | | ECLOperationalAttributesFailTest(); |
| | | |
| | | // First and last should be ok whenever a request has been done or not |
| | | // in compat mode. |
| | | ECLCompatTestLimits(1,4,true);replicationServer.clearDb(); |
| | | |
| | | |
| | | // Test with a mix of domains, a mix of DSes |
| | | ECLTwoDomains(); replicationServer.clearDb(); |
| | | |
| | |
| | | // Test all types of ops. |
| | | ECLAllOps(); // Do not clean the db for the next test |
| | | |
| | | // Test that ECL Operational, virtual attributes are not visible |
| | | // outside rootDSE. Next test will test access in RootDSE. |
| | | // This one checks in data. |
| | | ECLOperationalAttributesFailTest(); |
| | | |
| | | // First and last should be ok whenever a request has been done or not |
| | | // in compat mode. |
| | | ECLCompatTestLimits(1,4, true);replicationServer.clearDb(); |
| | |
| | | } |
| | | debugInfo(tn, "Ending test with success"); |
| | | } |
| | | |
| | | private void ECLOperationalAttributesFailTest() |
| | | { |
| | | String tn = "ECLOperationalAttributesFailTest"; |
| | | // The goal is to verify that the Changelog attributes are not |
| | | // available in other entries. We u |
| | | debugInfo(tn, "Starting test \n\n"); |
| | | try |
| | | { |
| | | LinkedHashSet<String> attributes = new LinkedHashSet<String>(); |
| | | |
| | | attributes.add("firstchangenumber"); |
| | | attributes.add("lastchangenumber"); |
| | | attributes.add("changelog"); |
| | | attributes.add("lastExternalChangelogCookie"); |
| | | |
| | | debugInfo(tn, " Search: "+ TEST_ROOT_DN_STRING); |
| | | InternalSearchOperation searchOp = |
| | | connection.processSearch( |
| | | ByteString.valueOf(TEST_ROOT_DN_STRING), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | 0, // Size limit |
| | | 0, // Time limit |
| | | false, // Types only |
| | | LDAPFilter.decode("(objectclass=*)"), |
| | | attributes, |
| | | NO_CONTROL, |
| | | null); |
| | | waitOpResult(searchOp, ResultCode.SUCCESS); |
| | | assertEquals(searchOp.getSearchEntries().size(), 1); |
| | | |
| | | LinkedList<SearchResultEntry> entries = searchOp.getSearchEntries(); |
| | | assertEquals(entries.size(), 1); |
| | | for (SearchResultEntry resultEntry : entries) |
| | | { |
| | | debugInfo(tn, "Result entry returned:" + resultEntry.toLDIFString()); |
| | | assertEquals(getAttributeValue(resultEntry, "firstchangenumber"), |
| | | null); |
| | | assertEquals(getAttributeValue(resultEntry, "lastchangenumber"), |
| | | null); |
| | | assertEquals(getAttributeValue(resultEntry, "changelog"), |
| | | null); |
| | | assertEquals(getAttributeValue(resultEntry, "lastExternalChangelogCookie"), |
| | | null); |
| | | } |
| | | |
| | | debugInfo(tn, "Ending test with success"); |
| | | } |
| | | catch(Exception e) |
| | | { |
| | | fail("Ending "+tn+" test with exception:\n" |
| | | + stackTraceToSingleLineString(e)); |
| | | } |
| | | } |
| | | |
| | | private void ECLCompatTestLimits(int expectedFirst, int expectedLast, |
| | | boolean eclEnabled) |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, dnSet1, |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, dnSet2, |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, dnSet3, |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), groupSet1, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, groupSet1, |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | true |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), groupSet2, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, groupSet2, |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | false |
| | |
| | | new Object[] |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), groupSet3, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, groupSet3, |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | true |
| | |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), filterSet1, |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | true |
| | |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), filterSet2, |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | true |
| | |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), filterSet3, |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | false |
| | |
| | | { |
| | | new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), filterSet4, |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL), |
| | | true |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | |
| | | virtualAttributeRule = new VirtualAttributeRule(entryDNType, provider, |
| | | Collections.<DN>emptySet(), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | Collections.<DN>emptySet(), |
| | | Collections.<SearchFilter>emptySet(), |
| | | ConflictBehavior.VIRTUAL_OVERRIDES_REAL); |