Package org.nuxeo.ecm.directory
Interface Reference
- All Known Implementing Classes:
- AbstractReference,- InverseReference,- LDAPReference,- LDAPTreeReference,- MongoDBReference,- MultiReference,- TableReference
public interface Reference
Base interface for references between directory fields.
 
References are used to leverage SQL joins or attributes that store a list of distinguished names in LDAP servers (e.g. uniqueMember).
In nuxeo directories, references are special entry fields that are string list of entry ids of a target directory.
- Author:
- ogrisel
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidAdds the links between the source id and the target idsvoidvoidAdds the links between the source ids and the target idgetSourceIdsForTarget(String targetId) getTargetIdsForSource(String sourceId) voidremoveLinksForSource(String sourceId) voidremoveLinksForSource(String sourceId, Session session) Removes all the links for a given source idvoidremoveLinksForTarget(String targetId) voidremoveLinksForTarget(String targetId, Session session) Removes all the links for a given target idvoidsetSourceDirectoryName(String sourceDirectoryName) voidsetSourceIdsForTarget(String targetId, List<String> sourceIds) voidsetSourceIdsForTarget(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) voidsetTargetIdsForSource(String sourceId, List<String> targetIds, Session session) Sets all target ids to be associated to the given source id
- 
Method Details- 
getFieldNameString getFieldName()
- 
getSourceDirectoryDirectory getSourceDirectory()
- 
setSourceDirectoryName
- 
getTargetDirectoryDirectory getTargetDirectory()
- 
setTargetDirectoryName
- 
addLinks
- 
addLinks
- 
removeLinksForSource
- 
removeLinksForTarget
- 
getTargetIdsForSource
- 
getSourceIdsForTarget
- 
setTargetIdsForSource
- 
setSourceIdsForTarget
- 
addLinksAdds the links between the source id and the target ids- Parameters:
- sourceId- the source id
- targetIds- the target ids
- session- the session
- Since:
- 9.2
 
- 
addLinksAdds the links between the source ids and the target id- Parameters:
- sourceIds- the source ids
- targetId- the target id
- session- the session
- Since:
- 9.2
 
- 
setSourceIdsForTargetSets all source ids to be associated to the given target id- Parameters:
- targetId- the target id
- sourceIds- the source ids
- session- the session
- Since:
- 9.2
 
- 
setTargetIdsForSourceSets all target ids to be associated to the given source id- Parameters:
- sourceId- the source id
- targetIds- the target ids
- session- the session
- Since:
- 9.2
 
- 
removeLinksForTargetRemoves all the links for a given target id- Parameters:
- targetId- the target id
- session- the session
- Since:
- 9.2
 
- 
removeLinksForSourceRemoves all the links for a given source id- Parameters:
- sourceId- the source id
- session- the session
- Since:
- 9.2
 
 
-