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
-
Field Summary
Fields inherited from class org.nuxeo.ecm.directory.AbstractReference
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Adds the links between the source id and the target idsvoid
void
Adds the links between the source ids and the target idclone()
doCollect
(MultiReference.Collector extractor) getSourceIdsForTarget
(String targetId) getTargetIdsForSource
(String sourceId) void
removeLinksForSource
(String sourceId) void
removeLinksForSource
(String sourceId, Session session) Removes all the links for a given source idvoid
removeLinksForTarget
(String targetId) void
removeLinksForTarget
(String targetId, Session session) Removes all the links for a given target idvoid
setSourceIdsForTarget
(String targetId, List<String> sourceIds) void
setSourceIdsForTarget
(String targetId, List<String> sourceIds, Session session) Sets all source ids to be associated to the given target idvoid
setTargetIdsForSource
(String sourceId, List<String> targetIds) void
setTargetIdsForSource
(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:Reference
Adds the links between the source id and the target ids -
addLinks
Description copied from interface:Reference
Adds the links between the source ids and the target id -
addLinks
-
doCollect
-
getSourceIdsForTarget
- Specified by:
getSourceIdsForTarget
in interfaceReference
-
getTargetIdsForSource
- Specified by:
getTargetIdsForSource
in interfaceReference
-
removeLinksForSource
- Specified by:
removeLinksForSource
in interfaceReference
-
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
-
removeLinksForTarget
- Specified by:
removeLinksForTarget
in interfaceReference
-
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
-
setSourceIdsForTarget
- Specified by:
setSourceIdsForTarget
in interfaceReference
-
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
- Specified by:
setTargetIdsForSource
in interfaceReference
-
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
-
clone
-