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
Fields inherited from class org.nuxeo.ecm.directory.AbstractReference
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
NOT IMPLEMENTED: Store new linksvoid
NOT IMPLEMENTED: Store new linksvoid
NOT IMPLEMENTED: Store new links.void
Adds the links between the source ids and the target idclone()
protected LDAPFilterMatcher
protected String
getParentDn
(String dn) int
getScope()
getSourceIdsForTarget
(String targetId) Fetches single parent, cutting the dn and trying to get the given entry.protected LDAPDirectory
protected LDAPDirectoryDescriptor
getTargetIdsForSource
(String sourceId) Fetches children, onelevel or subtree given the reference configuration.protected LDAPDirectory
protected static String
Simple helper that replaces ", " by "," in the provided dn and returns the lower case version of the result for comparison purpose.void
removeLinksForSource
(String sourceId) NOT IMPLEMENTED: Remove existing statically defined links for the given source idvoid
removeLinksForSource
(String sourceId, Session session) Removes all the links for a given source idvoid
removeLinksForTarget
(String targetId) NOT IMPLEMENTED: Remove existing statically defined links for the given target idvoid
removeLinksForTarget
(String targetId, Session session) Removes all the links for a given target idvoid
setFieldName
(String fieldName) void
void
setSourceIdsForTarget
(String targetId, List<String> sourceIds) NOT IMPLEMENTED: Edit the list of statically defined references for a given targetvoid
setSourceIdsForTarget
(String targetId, List<String> sourceIds, Session session) Sets all source ids to be associated to the given target idvoid
setTargetDirectoryName
(String targetDirectoryName) void
setTargetIdsForSource
(String sourceId, List<String> targetIds) NOT IMPLEMENTED: Set the list of statically defined references for a given sourcevoid
setTargetIdsForSource
(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:
setTargetDirectoryName
in interfaceReference
- Overrides:
setTargetDirectoryName
in classAbstractReference
-
getScope
public int getScope() -
setScope
-
getSourceDirectory
- Specified by:
getSourceDirectory
in interfaceReference
- Overrides:
getSourceDirectory
in classAbstractReference
-
getTargetDirectory
- Specified by:
getTargetDirectory
in interfaceReference
- Overrides:
getTargetDirectory
in classAbstractReference
-
getTargetLDAPDirectory
-
getSourceLDAPDirectory
-
getTargetDirectoryDescriptor
-
addLinks
NOT IMPLEMENTED: Store new links -
addLinks
NOT IMPLEMENTED: Store new links -
addLinks
Description copied from interface:Reference
Adds 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:
getSourceIdsForTarget
in 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:
getTargetIdsForSource
in 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:
removeLinksForSource
in interfaceReference
- See Also:
-
removeLinksForTarget
NOT IMPLEMENTED: Remove existing statically defined links for the given target id- Specified by:
removeLinksForTarget
in interfaceReference
- See Also:
-
setSourceIdsForTarget
NOT IMPLEMENTED: Edit the list of statically defined references for a given target- Specified by:
setSourceIdsForTarget
in interfaceReference
- See Also:
-
setSourceIdsForTarget
Description copied from interface:Reference
Sets all source ids to be associated to the given target id- Specified by:
setSourceIdsForTarget
in 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:
setTargetIdsForSource
in interfaceReference
- See Also:
-
setTargetIdsForSource
Description copied from interface:Reference
Sets all target ids to be associated to the given source id- Specified by:
setTargetIdsForSource
in interfaceReference
- Parameters:
sourceId
- the source idtargetIds
- the target idssession
- the session
-
removeLinksForTarget
Description copied from interface:Reference
Removes all the links for a given target id- Specified by:
removeLinksForTarget
in interfaceReference
- Parameters:
targetId
- the target idsession
- the session
-
removeLinksForSource
Description copied from interface:Reference
Removes all the links for a given source id- Specified by:
removeLinksForSource
in interfaceReference
- Parameters:
sourceId
- the source idsession
- the session
-
toString
-
clone
-