public class InverseReference extends AbstractReference
Modifier and Type | Field and Description |
---|---|
protected Reference |
dualReference |
protected String |
dualReferenceName |
protected boolean |
readOnly
Indicates if the target directory can be updated from the current reference
|
fieldName, sourceDirectory, sourceDirectoryName, targetDirectory, targetDirectoryName
Constructor and Description |
---|
InverseReference() |
Modifier and Type | Method and Description |
---|---|
void |
addLinks(List<String> sourceIds,
String targetId) |
void |
addLinks(String sourceId,
List<String> targetIds) |
protected void |
checkDualReference() |
InverseReference |
clone()
Returns a clone, added for hot reload support.
|
List<String> |
getSourceIdsForTarget(String targetId) |
List<String> |
getTargetIdsForSource(String sourceId) |
boolean |
isReadOnly() |
void |
removeLinksForSource(String sourceId) |
void |
removeLinksForTarget(String targetId) |
void |
setFieldName(String fieldName) |
void |
setReadOnly(boolean readOnly) |
void |
setSourceIdsForTarget(String targetId,
List<String> sourceIds) |
void |
setTargetDirectoryName(String targetDirectoryName) |
void |
setTargetIdsForSource(String sourceId,
List<String> targetIds) |
getFieldName, getSourceDirectory, getTargetDirectory, setSourceDirectoryName
protected boolean readOnly
protected String dualReferenceName
protected Reference dualReference
public InverseReference()
public void setFieldName(String fieldName)
public void setTargetDirectoryName(String targetDirectoryName)
setTargetDirectoryName
in interface Reference
setTargetDirectoryName
in class AbstractReference
public void setReadOnly(boolean readOnly)
public boolean isReadOnly()
protected void checkDualReference() throws DirectoryException
DirectoryException
public void addLinks(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
public void addLinks(List<String> sourceIds, String targetId) throws DirectoryException
DirectoryException
public void removeLinksForTarget(String targetId) throws DirectoryException
DirectoryException
public void removeLinksForSource(String sourceId) throws DirectoryException
DirectoryException
public List<String> getSourceIdsForTarget(String targetId) throws DirectoryException
DirectoryException
public List<String> getTargetIdsForSource(String sourceId) throws DirectoryException
DirectoryException
public void setTargetIdsForSource(String sourceId, List<String> targetIds) throws DirectoryException
DirectoryException
public void setSourceIdsForTarget(String targetId, List<String> sourceIds) throws DirectoryException
DirectoryException
public InverseReference clone()
Reference
clone
in interface Reference
clone
in class AbstractReference
Copyright © 2016 Nuxeo SA. All rights reserved.