Package org.opends.server.extensions
Class MemberVirtualAttributeProvider
- java.lang.Object
-
- org.opends.server.api.VirtualAttributeProvider<MemberVirtualAttributeCfg>
-
- org.opends.server.extensions.MemberVirtualAttributeProvider
-
- All Implemented Interfaces:
ConfigurationChangeListener<MemberVirtualAttributeCfg>
public class MemberVirtualAttributeProvider extends VirtualAttributeProvider<MemberVirtualAttributeCfg> implements ConfigurationChangeListener<MemberVirtualAttributeCfg>
This class implements a virtual attribute provider that works in conjunction with virtual static groups to generate the values for the member or uniqueMember attribute.
-
-
Constructor Summary
Constructors Constructor Description MemberVirtualAttributeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(MemberVirtualAttributeCfg configuration)Applies the configuration changes to this change listener.AttributegetAttribute(Entry entry, AttributeDescription attributeDescription)Generates an unmodifiable attribute with the values for the provided entry.voidinitializeVirtualAttributeProvider(MemberVirtualAttributeCfg configuration)Initializes this virtual attribute based on the information in the provided configuration entry.booleanisConfigurationChangeAcceptable(MemberVirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.booleanisMultiValued()Indicates whether this virtual attribute provider may generate multiple values.-
Methods inherited from class org.opends.server.api.VirtualAttributeProvider
finalizeVirtualAttributeProvider, getServerContext, initializeVirtualAttributeProvider, isConfigurationAcceptable, isSearchable, processSearch
-
-
-
-
Method Detail
-
initializeVirtualAttributeProvider
public void initializeVirtualAttributeProvider(MemberVirtualAttributeCfg configuration)
Description copied from class:VirtualAttributeProviderInitializes this virtual attribute based on the information in the provided configuration entry.- Overrides:
initializeVirtualAttributeProviderin classVirtualAttributeProvider<MemberVirtualAttributeCfg>- Parameters:
configuration- The configuration to use to initialize this virtual attribute provider.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(MemberVirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
Description copied from interface:ConfigurationChangeListenerIndicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptablein interfaceConfigurationChangeListener<MemberVirtualAttributeCfg>- Parameters:
configuration- The new configuration containing the changes.unacceptableReasons- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
public ConfigChangeResult applyConfigurationChange(MemberVirtualAttributeCfg configuration)
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<MemberVirtualAttributeCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
isMultiValued
public boolean isMultiValued()
Description copied from class:VirtualAttributeProviderIndicates whether this virtual attribute provider may generate multiple values.- Specified by:
isMultiValuedin classVirtualAttributeProvider<MemberVirtualAttributeCfg>- Returns:
trueif this virtual attribute provider may generate multiple values, orfalseif not.
-
getAttribute
public Attribute getAttribute(Entry entry, AttributeDescription attributeDescription)
Description copied from class:VirtualAttributeProviderGenerates an unmodifiable attribute with the values for the provided entry.- Specified by:
getAttributein classVirtualAttributeProvider<MemberVirtualAttributeCfg>- Parameters:
entry- The entry for which the values are to be generated.attributeDescription- the attribute description corresponding to this virtual attribute- Returns:
- The unmodifiable attribute with the values generated for the provided entry. It may be empty, but it must
not be
null.
-
-