public class RegularExpressionIdentityMapper extends IdentityMapper<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
Constructor and Description |
---|
RegularExpressionIdentityMapper()
Creates a new instance of this regular expression identity mapper.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration) |
void |
finalizeIdentityMapper()
Performs any finalization that may be necessary for this identity mapper.
|
Entry |
getEntryForID(String id)
Retrieves the user entry that was mapped to the provided identification string.
|
void |
initializeIdentityMapper(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration)
Initializes this identity mapper based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this identity mapper.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
public RegularExpressionIdentityMapper()
initializeIdentityMapper
method.public void initializeIdentityMapper(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
IdentityMapper
initializeIdentityMapper
in class IdentityMapper<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
configuration
- The configuration for the identity mapper.org.forgerock.opendj.config.server.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.public void finalizeIdentityMapper()
IdentityMapper
finalizeIdentityMapper
in class IdentityMapper<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
public Entry getEntryForID(String id) throws DirectoryException
IdentityMapper
getEntryForID
in class IdentityMapper<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
id
- The identification string that is to be mapped to a user.null
if no users were found
that could be mapped to the provided ID.DirectoryException
- If a problem occurs while attempting to map the given ID to a user entry, or if there are multiple
user entries that could map to the provided ID.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
IdentityMapper
isConfigurationAcceptable
in class IdentityMapper<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
configuration
- The identity mapper configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.true
if the provided configuration is acceptable for this identity mapper, or false
if
not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RegularExpressionIdentityMapperCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.