public class MultiReference extends AbstractReference implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
MultiReference.Collector |
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName| Modifier and Type | Method and Description |
|---|---|
void |
addLinks(List<String> sourceIds,
String targetId) |
void |
addLinks(List<String> sourceIds,
String targetId,
Session session)
Adds the links between the source ids and the target id
|
void |
addLinks(String sourceId,
List<String> targetIds) |
void |
addLinks(String sourceId,
List<String> targetIds,
Session session)
Adds the links between the source id and the target ids
|
MultiReference |
clone() |
protected List<String> |
doCollect(MultiReference.Collector extractor) |
List<String> |
getSourceIdsForTarget(String targetId) |
List<String> |
getTargetIdsForSource(String sourceId) |
void |
removeLinksForSource(String sourceId) |
void |
removeLinksForSource(String sourceId,
Session session)
Removes all the links for a given source id
|
void |
removeLinksForTarget(String targetId) |
void |
removeLinksForTarget(String targetId,
Session session)
Removes all the links for a given target id
|
void |
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 id
|
void |
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 id
|
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName, setTargetDirectoryNamepublic void addLinks(String sourceId, List<String> targetIds, Session session)
Referencepublic void addLinks(List<String> sourceIds, String targetId, Session session)
Referenceprotected List<String> doCollect(MultiReference.Collector extractor)
public List<String> getSourceIdsForTarget(String targetId)
getSourceIdsForTarget in interface Referencepublic List<String> getTargetIdsForSource(String sourceId)
getTargetIdsForSource in interface Referencepublic void removeLinksForSource(String sourceId)
removeLinksForSource in interface Referencepublic void removeLinksForSource(String sourceId, Session session)
ReferenceremoveLinksForSource in interface ReferencesourceId - the source idsession - the sessionpublic void removeLinksForTarget(String targetId)
removeLinksForTarget in interface Referencepublic void removeLinksForTarget(String targetId, Session session)
ReferenceremoveLinksForTarget in interface ReferencetargetId - the target idsession - the sessionpublic void setSourceIdsForTarget(String targetId, List<String> sourceIds)
setSourceIdsForTarget in interface Referencepublic void setSourceIdsForTarget(String targetId, List<String> sourceIds, Session session)
ReferencesetSourceIdsForTarget in interface ReferencetargetId - the target idsourceIds - the source idssession - the sessionpublic void setTargetIdsForSource(String sourceId, List<String> targetIds)
setTargetIdsForSource in interface Referencepublic void setTargetIdsForSource(String sourceId, List<String> targetIds, Session session)
ReferencesetTargetIdsForSource in interface ReferencesourceId - the source idtargetIds - the target idssession - the sessionpublic MultiReference clone()
Copyright © 2018 Nuxeo. All rights reserved.