com.ca.jcs.converter.connector
Class DNPropertyConverter
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.converter.meta.PropertyConverter
com.ca.jcs.converter.connector.DNPropertyConverter
- All Implemented Interfaces:
- AttributeConverter, ConnectorDependantAttributeConverter
public class DNPropertyConverter
- extends PropertyConverter
- implements ConnectorDependantAttributeConverter
Convert DNs (Distinguished Names) to/from connector-speak/LDAP, by making use of
a reference to the connector itself. Settings can be configured for:
MetaDataDefs.MD_IS_DN_ABSOLUTE: whether the DNs
are relative/absolute.
MetaDataDefs.MD_DN_TEST_EXISTS: whether the objects referred to
each DN must exist.
MetaDataDefs.MD_DN_LDAP_OBJECT_CLASS: for specifying the leaf
MetaObjectClassMapping referred to by all contained DNs (mandatory when connector-speak
naming attribute ids to LDAP objectclass mapping is ambiguous).
MetaDataDefs.MD_DN_NAME_ONLY can be used for flat (non-hierarchical)
connectors to specify that only names (rather then RDNs) should be stored on the endpoint
to represent an association, for instance "fred" should be stored rather then "namingAttr=fred".
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DNPropertyConverter
public DNPropertyConverter(DataModelProperty prop,
DNConverterFactory dnConverterFactory)
DNPropertyConverter
public DNPropertyConverter(ConverterConfig config,
DataModelProperty prop,
DNConverterFactory dnConverterFactory)
DNPropertyConverter
public DNPropertyConverter(ConverterConfig config,
DataModelProperty prop)
- Calls
DNPropertyConverter(DataModelProperty, DNConverterFactory)
with a factory that creates a vanilla DNConverter instance.
DNPropertyConverter
public DNPropertyConverter(DataModelProperty prop)
isConfiguredAsLossy
public static boolean isConfiguredAsLossy(DataModelProperty prop)
checkSanity
public void checkSanity(MetaObjectClassMappings classMappings)
- Specified by:
checkSanity in interface ConnectorDependantAttributeConverter
getConnector
public MetaConnector getConnector()
- Specified by:
getConnector in interface ConnectorDependantAttributeConverter
setMetaConnector
public void setMetaConnector(MetaConnector connector)
- Specified by:
setMetaConnector in interface ConnectorDependantAttributeConverter
Created 2011-07-14 13:27 EST