public class MultiReference extends AbstractReference
Modifier and Type | Class and Description |
---|---|
protected static interface |
MultiReference.Collector |
directoryService, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName
Modifier and Type | Method and Description |
---|---|
void |
addLinks(List<String> sourceIds,
String targetId) |
void |
addLinks(String sourceId,
List<String> targetIds) |
AbstractReference |
clone()
Returns a clone, added for hot reload support.
|
protected List<String> |
doCollect(MultiReference.Collector extractor) |
List<String> |
getSourceIdsForTarget(String targetId) |
List<String> |
getTargetIdsForSource(String sourceId) |
protected AbstractReference |
newInstance()
Override to instantiate sub class, used in
AbstractReference.clone() method |
void |
removeLinksForSource(String sourceId) |
void |
removeLinksForTarget(String targetId) |
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds) |
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds) |
getDirectoryService, getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName, setTargetDirectoryName
public void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
public void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
DirectoryException
protected List<String> doCollect(MultiReference.Collector extractor) throws DirectoryException
DirectoryException
public List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
DirectoryException
public List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
DirectoryException
public void removeLinksForSource(String sourceId) throws DirectoryException
DirectoryException
public void removeLinksForTarget(String targetId) throws DirectoryException
DirectoryException
public void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
DirectoryException
public void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
protected AbstractReference newInstance()
AbstractReference
AbstractReference.clone()
methodnewInstance
in class AbstractReference
public AbstractReference clone()
Reference
clone
in interface Reference
clone
in class AbstractReference
Copyright © 2015 Nuxeo SA. All rights reserved.