public class LDAPTreeReference extends AbstractReference
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
EMPTY_STRING_LIST |
protected int |
scope |
protected LDAPDirectoryDescriptor |
targetDirectoryDescriptor |
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName| Constructor and Description |
|---|
LDAPTreeReference() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLinks(List<String> sourceIds,
String targetId)
NOT IMPLEMENTED: Store new links.
|
void |
addLinks(String sourceId,
List<String> targetIds)
NOT IMPLEMENTED: Store new links
|
LDAPTreeReference |
clone()
Returns a clone, added for hot reload support.
|
protected LDAPFilterMatcher |
getFilterMatcher() |
protected String |
getParentDn(String dn) |
int |
getScope() |
Directory |
getSourceDirectory() |
List<String> |
getSourceIdsForTarget(String targetId)
Fetches single parent, cutting the dn and trying to get the given entry.
|
protected LDAPDirectory |
getSourceLDAPDirectory() |
Directory |
getTargetDirectory() |
protected LDAPDirectoryDescriptor |
getTargetDirectoryDescriptor() |
List<String> |
getTargetIdsForSource(String sourceId)
Fetches children, onelevel or subtree given the reference configuration.
|
protected LDAPDirectory |
getTargetLDAPDirectory() |
protected static String |
pseudoNormalizeDn(String dn)
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 id
|
void |
removeLinksForTarget(String targetId)
NOT IMPLEMENTED: Remove existing statically defined links for the given target id
|
void |
setFieldName(String fieldName) |
void |
setScope(String scope) |
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds)
NOT IMPLEMENTED: Edit the list of statically defined references for a given target
|
void |
setTargetDirectoryName(String targetDirectoryName) |
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds)
NOT IMPLEMENTED: Set the list of statically defined references for a given source
|
String |
toString() |
getFieldName, setSourceDirectoryNamepublic static final List<String> EMPTY_STRING_LIST
protected LDAPDirectoryDescriptor targetDirectoryDescriptor
protected int scope
public LDAPTreeReference()
public void setFieldName(String fieldName)
protected LDAPFilterMatcher getFilterMatcher()
public void setTargetDirectoryName(String targetDirectoryName)
setTargetDirectoryName in interface ReferencesetTargetDirectoryName in class AbstractReferencepublic int getScope()
public void setScope(String scope) throws DirectoryException
DirectoryExceptionpublic Directory getSourceDirectory() throws DirectoryException
getSourceDirectory in interface ReferencegetSourceDirectory in class AbstractReferenceDirectoryExceptionpublic Directory getTargetDirectory() throws DirectoryException
getTargetDirectory in interface ReferencegetTargetDirectory in class AbstractReferenceDirectoryExceptionprotected LDAPDirectory getTargetLDAPDirectory() throws DirectoryException
DirectoryExceptionprotected LDAPDirectory getSourceLDAPDirectory() throws DirectoryException
DirectoryExceptionprotected LDAPDirectoryDescriptor getTargetDirectoryDescriptor() throws DirectoryException
DirectoryExceptionpublic void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryExceptionReference.addLinks(String, List)public void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
DirectoryExceptionReference.addLinks(List, String)public List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
DirectoryExceptionReference.getSourceIdsForTarget(String)public List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
Removes entries with same id than parent to only get real children.
DirectoryExceptionReference.getTargetIdsForSource(String)protected static String pseudoNormalizeDn(String dn) throws InvalidNameException
dn - the raw unnormalized dnInvalidNameExceptionprotected String getParentDn(String dn)
public void removeLinksForSource(String sourceId) throws DirectoryException
DirectoryExceptionReference.removeLinksForSource(String)public void removeLinksForTarget(String targetId) throws DirectoryException
DirectoryExceptionReference.removeLinksForTarget(String)public void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
DirectoryExceptionReference.setSourceIdsForTarget(String, List)public void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryExceptionReference.setTargetIdsForSource(String, List)public LDAPTreeReference clone()
Referenceclone in interface Referenceclone in class AbstractReferenceCopyright © 2016 Nuxeo SA. All rights reserved.