Package org.nuxeo.ecm.directory.multi
Class MultiReference
java.lang.Object
org.nuxeo.ecm.directory.AbstractReference
org.nuxeo.ecm.directory.multi.MultiReference
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.nuxeo.ecm.directory.AbstractReference
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdds the links between the source id and the target idsvoidvoidAdds the links between the source ids and the target idclone()doCollect(MultiReference.Collector extractor) getSourceIdsForTarget(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 idvoidsetSourceIdsForTarget(String targetId, List<String> sourceIds) voidsetSourceIdsForTarget(String targetId, List<String> sourceIds, Session session) Sets all source ids to be associated to the given target idvoidsetTargetIdsForSource(String sourceId, List<String> targetIds) voidsetTargetIdsForSource(String sourceId, List<String> targetIds, Session session) Sets all target ids to be associated to the given source idMethods inherited from class org.nuxeo.ecm.directory.AbstractReference
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName, setTargetDirectoryName
-
Method Details
-
addLinks
-
addLinks
Description copied from interface:ReferenceAdds the links between the source id and the target ids -
addLinks
Description copied from interface:ReferenceAdds the links between the source ids and the target id -
addLinks
-
doCollect
-
getSourceIdsForTarget
- Specified by:
getSourceIdsForTargetin interfaceReference
-
getTargetIdsForSource
- Specified by:
getTargetIdsForSourcein interfaceReference
-
removeLinksForSource
- Specified by:
removeLinksForSourcein interfaceReference
-
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
-
removeLinksForTarget
- Specified by:
removeLinksForTargetin interfaceReference
-
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
-
setSourceIdsForTarget
- Specified by:
setSourceIdsForTargetin interfaceReference
-
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
- Specified by:
setTargetIdsForSourcein interfaceReference
-
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
-
clone
-