|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.directory.AbstractReference org.nuxeo.ecm.directory.ldap.LDAPReference
public class LDAPReference
Implementation of the directory Reference interface that leverage two common ways of storing relationships in LDAP directories:
Field Summary | |
---|---|
static List<String> |
EMPTY_STRING_LIST
|
boolean |
forceDnConsistencyCheck
|
Constructor Summary | |
---|---|
LDAPReference()
|
Method Summary | |
---|---|
void |
addLinks(List<String> sourceIds,
String targetId)
Store new links using the LDAP staticAttributeId strategy. |
void |
addLinks(String sourceId,
List<String> targetIds)
Store new links using the LDAP staticAttributeId strategy. |
String |
getDynamicAttributeId()
|
List<LDAPDynamicReferenceDescriptor> |
getDynamicAttributes()
|
List<String> |
getLdapTargetIds(Attributes attributes)
Optimized method to spare a LDAP request when the caller is a LDAPSession object that has already fetched the LDAP Attribute instances. |
Directory |
getSourceDirectory()
|
List<String> |
getSourceIdsForTarget(String targetId)
Fetch both statically and dynamically defined references and merge the results. |
String |
getStaticAttributeId()
|
String |
getStaticAttributeId(DirectoryFieldMapper sourceFM)
|
Directory |
getTargetDirectory()
|
List<String> |
getTargetIdsForSource(String sourceId)
Fetches both statically and dynamically defined references and merges the results. |
boolean |
isDynamic()
|
boolean |
isStatic()
|
void |
removeLinksForSource(String sourceId)
Remove existing statically defined links for the given source id (dynamic references remain unaltered) |
void |
removeLinksForTarget(String targetId)
Remove existing statically defined links for the given target id (dynamic references remain unaltered) |
void |
setFieldName(String fieldName)
|
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds)
Edit the list of statically defined references for a given target (dynamic references remain unaltered) |
void |
setTargetDirectoryName(String targetDirectoryName)
|
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds)
Set the list of statically defined references for a given source (dynamic references remain unaltered) |
String |
toString()
|
Methods inherited from class org.nuxeo.ecm.directory.AbstractReference |
---|
getFieldName, setSourceDirectoryName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean forceDnConsistencyCheck
public static final List<String> EMPTY_STRING_LIST
Constructor Detail |
---|
public LDAPReference()
Method Detail |
---|
public void setFieldName(String fieldName)
public boolean isStatic() throws DirectoryException
DirectoryException
public String getStaticAttributeId() throws DirectoryException
DirectoryException
public String getStaticAttributeId(DirectoryFieldMapper sourceFM) throws DirectoryException
DirectoryException
public List<LDAPDynamicReferenceDescriptor> getDynamicAttributes()
public String getDynamicAttributeId()
public boolean isDynamic()
public void setTargetDirectoryName(String targetDirectoryName)
setTargetDirectoryName
in interface Reference
setTargetDirectoryName
in class AbstractReference
public Directory getSourceDirectory() throws DirectoryException
getSourceDirectory
in interface Reference
getSourceDirectory
in class AbstractReference
DirectoryException
public Directory getTargetDirectory() throws DirectoryException
getTargetDirectory
in interface Reference
getTargetDirectory
in class AbstractReference
DirectoryException
public void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
Reference.addLinks(String, List)
public void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
DirectoryException
Reference.addLinks(List, String)
public List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
DirectoryException
Reference.getSourceIdsForTarget(String)
public List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
DirectoryException
Reference.getSourceIdsForTarget(String)
public List<String> getLdapTargetIds(Attributes attributes) throws DirectoryException
This method should return the same results as the sister method: org.nuxeo.ecm.directory.Reference#getTargetIdsForSource(java.lang.String)
DirectoryException
public void removeLinksForSource(String sourceId) throws DirectoryException
DirectoryException
Reference.removeLinksForSource(String)
public void removeLinksForTarget(String targetId) throws DirectoryException
DirectoryException
Reference.removeLinksForTarget(String)
public void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
DirectoryException
Reference.setSourceIdsForTarget(String,
List)
public void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
Reference.setTargetIdsForSource(String,
List)
public String toString()
toString
in class Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |