Package org.opends.server.extensions
Class PasswordExpirationTimeVirtualAttributeProvider
- java.lang.Object
-
- org.opends.server.api.VirtualAttributeProvider<PasswordExpirationTimeVirtualAttributeCfg>
-
- org.opends.server.extensions.PasswordExpirationTimeVirtualAttributeProvider
-
public class PasswordExpirationTimeVirtualAttributeProvider extends VirtualAttributeProvider<PasswordExpirationTimeVirtualAttributeCfg>
Provider for the password expiration time virtual attribute.
-
-
Constructor Summary
Constructors Constructor Description PasswordExpirationTimeVirtualAttributeProvider()Default constructor.
-
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.booleanhasValue(Entry entry, VirtualAttributeRule rule)Indicates whether this virtual attribute provider will generate at least one value 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, 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<PasswordExpirationTimeVirtualAttributeCfg>- 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<PasswordExpirationTimeVirtualAttributeCfg>- 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<PasswordExpirationTimeVirtualAttributeCfg>- 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<PasswordExpirationTimeVirtualAttributeCfg>- Parameters:
rule- The virtual attribute rule which defines the constraints for the virtual attribute.searchOperation- The search operation to be processed.
-
hasValue
public boolean hasValue(Entry entry, VirtualAttributeRule rule)
Description copied from class:VirtualAttributeProviderIndicates whether this virtual attribute provider will generate at least one value for the provided entry.- Overrides:
hasValuein classVirtualAttributeProvider<PasswordExpirationTimeVirtualAttributeCfg>- Parameters:
entry- The entry for which to make the determination.rule- The virtual attribute rule which defines the constraints for the virtual attribute.- Returns:
trueif this virtual attribute provider will generate at least one value for the provided entry, orfalseif not.
-
-