Package org.nuxeo.ecm.directory.ldap
Class LDAPTreeReference
java.lang.Object
org.nuxeo.ecm.directory.AbstractReference
org.nuxeo.ecm.directory.ldap.LDAPTreeReference
Implementation of the directory Reference interface that makes it possible to retrieve children of a node in the LDAP
tree structure.
- Author:
- Anahide Tchertchian
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.directory.AbstractReference
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNOT IMPLEMENTED: Store new linksvoidNOT IMPLEMENTED: Store new linksvoidNOT IMPLEMENTED: Store new links.voidAdds the links between the source ids and the target idclone()protected LDAPFilterMatcherprotected StringgetParentDn(String dn) intgetScope()getSourceIdsForTarget(String targetId) Fetches single parent, cutting the dn and trying to get the given entry.protected LDAPDirectoryprotected LDAPDirectoryDescriptorgetTargetIdsForSource(String sourceId) Fetches children, onelevel or subtree given the reference configuration.protected LDAPDirectoryprotected static StringSimple helper that replaces ", " by "," in the provided dn and returns the lower case version of the result for comparison purpose.voidremoveLinksForSource(String sourceId) NOT IMPLEMENTED: Remove existing statically defined links for the given source idvoidremoveLinksForSource(String sourceId, Session session) Removes all the links for a given source idvoidremoveLinksForTarget(String targetId) NOT IMPLEMENTED: Remove existing statically defined links for the given target idvoidremoveLinksForTarget(String targetId, Session session) Removes all the links for a given target idvoidsetFieldName(String fieldName) voidvoidsetSourceIdsForTarget(String targetId, List<String> sourceIds) NOT IMPLEMENTED: Edit the list of statically defined references for a given targetvoidsetSourceIdsForTarget(String targetId, List<String> sourceIds, Session session) Sets all source ids to be associated to the given target idvoidsetTargetDirectoryName(String targetDirectoryName) voidsetTargetIdsForSource(String sourceId, List<String> targetIds) NOT IMPLEMENTED: Set the list of statically defined references for a given sourcevoidsetTargetIdsForSource(String sourceId, List<String> targetIds, Session session) Sets all target ids to be associated to the given source idtoString()Methods inherited from class org.nuxeo.ecm.directory.AbstractReference
getFieldName, setSourceDirectoryName
-
Field Details
-
EMPTY_STRING_LIST
-
targetDirectoryDescriptor
-
scope
protected int scope
-
-
Constructor Details
-
LDAPTreeReference
public LDAPTreeReference() -
LDAPTreeReference
-
-
Method Details
-
setFieldName
-
getFilterMatcher
-
setTargetDirectoryName
- Specified by:
setTargetDirectoryNamein interfaceReference- Overrides:
setTargetDirectoryNamein classAbstractReference
-
getScope
public int getScope() -
setScope
-
getSourceDirectory
- Specified by:
getSourceDirectoryin interfaceReference- Overrides:
getSourceDirectoryin classAbstractReference
-
getTargetDirectory
- Specified by:
getTargetDirectoryin interfaceReference- Overrides:
getTargetDirectoryin classAbstractReference
-
getTargetLDAPDirectory
-
getSourceLDAPDirectory
-
getTargetDirectoryDescriptor
-
addLinks
NOT IMPLEMENTED: Store new links -
addLinks
NOT IMPLEMENTED: Store new links -
addLinks
Description copied from interface:ReferenceAdds the links between the source ids and the target id -
addLinks
NOT IMPLEMENTED: Store new links. -
getSourceIdsForTarget
Fetches single parent, cutting the dn and trying to get the given entry.- Specified by:
getSourceIdsForTargetin interfaceReference- See Also:
-
getTargetIdsForSource
Fetches children, onelevel or subtree given the reference configuration.Removes entries with same id than parent to only get real children.
- Specified by:
getTargetIdsForSourcein interfaceReference- See Also:
-
pseudoNormalizeDn
Simple helper that replaces ", " by "," in the provided dn and returns the lower case version of the result for comparison purpose.- Parameters:
dn- the raw unnormalized dn- Returns:
- lowercase version without whitespace after commas
- Throws:
InvalidNameException
-
getParentDn
-
removeLinksForSource
NOT IMPLEMENTED: Remove existing statically defined links for the given source id- Specified by:
removeLinksForSourcein interfaceReference- See Also:
-
removeLinksForTarget
NOT IMPLEMENTED: Remove existing statically defined links for the given target id- Specified by:
removeLinksForTargetin interfaceReference- See Also:
-
setSourceIdsForTarget
NOT IMPLEMENTED: Edit the list of statically defined references for a given target- Specified by:
setSourceIdsForTargetin interfaceReference- See Also:
-
setSourceIdsForTarget
Description copied from interface:ReferenceSets all source ids to be associated to the given target id- Specified by:
setSourceIdsForTargetin interfaceReference- Parameters:
targetId- the target idsourceIds- the source idssession- the session
-
setTargetIdsForSource
NOT IMPLEMENTED: Set the list of statically defined references for a given source- Specified by:
setTargetIdsForSourcein interfaceReference- See Also:
-
setTargetIdsForSource
Description copied from interface:ReferenceSets all target ids to be associated to the given source id- Specified by:
setTargetIdsForSourcein interfaceReference- Parameters:
sourceId- the source idtargetIds- the target idssession- the session
-
removeLinksForTarget
Description copied from interface:ReferenceRemoves all the links for a given target id- Specified by:
removeLinksForTargetin interfaceReference- Parameters:
targetId- the target idsession- the session
-
removeLinksForSource
Description copied from interface:ReferenceRemoves all the links for a given source id- Specified by:
removeLinksForSourcein interfaceReference- Parameters:
sourceId- the source idsession- the session
-
toString
-
clone
-