Package org.opends.server.extensions
Class PasswordPolicySubentryVirtualAttributeProvider
- java.lang.Object
-
- org.opends.server.api.VirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>
-
- org.opends.server.extensions.PasswordPolicySubentryVirtualAttributeProvider
-
public class PasswordPolicySubentryVirtualAttributeProvider extends VirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>
This class implements a virtual attribute provider to serve the pwdPolicySubentry operational attribute as described in Password Policy for LDAP Directories Internet-Draft.
-
-
Constructor Summary
Constructors Constructor Description PasswordPolicySubentryVirtualAttributeProvider()Creates a new instance of this pwdPolicySubentry virtual attribute provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributegetValues(Entry entry, VirtualAttributeRule rule)Generates an unmodifiable attribute with the values for the provided entry.booleanisMultiValued()Indicates whether this virtual attribute provider may generate multiple values.booleanisSearchable(VirtualAttributeRule rule, SearchOperation searchOperation, boolean isPreIndexed)Indicates whether this attribute may be included in search filters as part of the criteria for locating entries.voidprocessSearch(VirtualAttributeRule rule, SearchOperation searchOperation)Processes the provided search operation in which the search criteria includes an operation targeted at this virtual attribute.-
Methods inherited from class org.opends.server.api.VirtualAttributeProvider
approximatelyEqualTo, finalizeVirtualAttributeProvider, greaterThanOrEqualTo, hasAllValues, hasValue, hasValue, initializeVirtualAttributeProvider, isConfigurationAcceptable, lessThanOrEqualTo, matchesEqualityAssertion, matchesSubstring
-
-
-
-
Method Detail
-
isMultiValued
public boolean isMultiValued()
Description copied from class:VirtualAttributeProviderIndicates whether this virtual attribute provider may generate multiple values.- Specified by:
isMultiValuedin classVirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>- Returns:
trueif this virtual attribute provider may generate multiple values, orfalseif not.
-
getValues
public Attribute getValues(Entry entry, VirtualAttributeRule rule)
Description copied from class:VirtualAttributeProviderGenerates an unmodifiable attribute with the values for the provided entry.- Specified by:
getValuesin classVirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>- Parameters:
entry- The entry for which the values are to be generated.rule- The virtual attribute rule which defines the constraints for the virtual attribute.- Returns:
- The unmodifiable attribute with the values generated for the
provided entry. It may be empty, but it must not be
null.
-
isSearchable
public boolean isSearchable(VirtualAttributeRule rule, SearchOperation searchOperation, boolean isPreIndexed)
Description copied from class:VirtualAttributeProviderIndicates whether this attribute may be included in search filters as part of the criteria for locating entries.- Specified by:
isSearchablein classVirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>- Parameters:
rule- The virtual attribute rule which defines the constraints for the virtual attribute.searchOperation- The search operation for which to make the determination.isPreIndexed- Indicates if we expect the search on the virtual attribute to be faster than an index search.- Returns:
trueif this attribute may be included in search filters, orfalseif not.
-
processSearch
public void processSearch(VirtualAttributeRule rule, SearchOperation searchOperation)
Description copied from class:VirtualAttributeProviderProcesses the provided search operation in which the search criteria includes an operation targeted at this virtual attribute. This method should only be called ifisSearchablereturns true and it is not possible to construct a manageable candidate list by processing other elements of the search criteria.- Specified by:
processSearchin classVirtualAttributeProvider<PasswordPolicySubentryVirtualAttributeCfg>- Parameters:
rule- The virtual attribute rule which defines the constraints for the virtual attribute.searchOperation- The search operation to be processed.
-
-