@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class VirtualAttributeRule extends Object
Constructor and Description |
---|
VirtualAttributeRule(org.forgerock.opendj.ldap.schema.AttributeType attributeType,
VirtualAttributeProvider<? extends org.forgerock.opendj.server.config.server.VirtualAttributeCfg> provider,
Set<org.forgerock.opendj.ldap.Dn> baseDNs,
org.forgerock.opendj.ldap.SearchScope scope,
Set<org.forgerock.opendj.ldap.Dn> groupDNs,
Set<SearchFilter> anyFilter,
org.forgerock.opendj.server.config.meta.VirtualAttributeCfgDefn.ConflictBehavior conflictBehavior)
Creates a new virtual attribute rule with the provided information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
appliesToEntry(Entry entry)
Indicates whether this virtual attribute rule applies to the provided entry, taking into account the eligibility
requirements defined in the rule.
|
org.forgerock.opendj.ldap.schema.AttributeType |
getAttributeType()
Retrieves the attribute type for which the values should be generated.
|
Set<org.forgerock.opendj.ldap.Dn> |
getBaseDNs()
Retrieves the set of base DNs for branches that are eligible to have this virtual attribute.
|
org.forgerock.opendj.server.config.meta.VirtualAttributeCfgDefn.ConflictBehavior |
getConflictBehavior()
Retrieves the behavior that the server should exhibit for entries that already have one or more real values for
the target attribute.
|
Set<org.forgerock.opendj.ldap.Dn> |
getGroupDNs()
Retrieves the set of DNs for groups whose members are eligible to have this virtual attribute.
|
VirtualAttributeProvider<? extends org.forgerock.opendj.server.config.server.VirtualAttributeCfg> |
getProvider()
Retrieves the virtual attribute provider used to generate the values.
|
org.forgerock.opendj.ldap.SearchScope |
getScope()
Retrieves the scope of entries in the base DNs that are eligible to have this virtual attribute.
|
String |
toString() |
public VirtualAttributeRule(org.forgerock.opendj.ldap.schema.AttributeType attributeType, VirtualAttributeProvider<? extends org.forgerock.opendj.server.config.server.VirtualAttributeCfg> provider, Set<org.forgerock.opendj.ldap.Dn> baseDNs, org.forgerock.opendj.ldap.SearchScope scope, Set<org.forgerock.opendj.ldap.Dn> groupDNs, Set<SearchFilter> anyFilter, org.forgerock.opendj.server.config.meta.VirtualAttributeCfgDefn.ConflictBehavior conflictBehavior)
attributeType
- The attribute type for which the values should be generated.provider
- The virtual attribute provider to use to generate the values.baseDNs
- The set of base DNs for branches that are eligible to have this virtual attribute.scope
- The scope of entries, related to the base DNs, that are eligible to have this virtual attribute.groupDNs
- The set of DNs for groups whose members are eligible to have this virtual attribute.anyFilter
- The set of search filters for entries that are eligible to have this virtual attribute.conflictBehavior
- The behavior that the server should exhibit for entries that already have one or more real values for
the target attribute.public org.forgerock.opendj.ldap.schema.AttributeType getAttributeType()
public VirtualAttributeProvider<? extends org.forgerock.opendj.server.config.server.VirtualAttributeCfg> getProvider()
public Set<org.forgerock.opendj.ldap.Dn> getBaseDNs()
public org.forgerock.opendj.ldap.SearchScope getScope()
public Set<org.forgerock.opendj.ldap.Dn> getGroupDNs()
public org.forgerock.opendj.server.config.meta.VirtualAttributeCfgDefn.ConflictBehavior getConflictBehavior()
public boolean appliesToEntry(Entry entry)
entry
- The entry for which to make the determination.true
if this virtual attribute rule may be used to generate values for the entry, or
false
if not.Copyright © 2010–2017 ForgeRock AS. All rights reserved.