public abstract class AbstractReference extends Object implements Reference
Modifier and Type | Field and Description |
---|---|
protected DirectoryServiceImpl |
directoryService |
protected String |
fieldName |
protected Directory |
sourceDirectory |
protected String |
sourceDirectoryName |
protected Directory |
targetDirectory |
protected String |
targetDirectoryName |
Constructor and Description |
---|
AbstractReference() |
Modifier and Type | Method and Description |
---|---|
AbstractReference |
clone()
Returns a clone, added for hot reload support.
|
protected DirectoryServiceImpl |
getDirectoryService() |
String |
getFieldName() |
Directory |
getSourceDirectory() |
Directory |
getTargetDirectory() |
protected abstract AbstractReference |
newInstance()
Override to instantiate sub class, used in
clone() method |
void |
setSourceDirectoryName(String sourceDirectoryName) |
void |
setTargetDirectoryName(String targetDirectoryName) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLinks, addLinks, getSourceIdsForTarget, getTargetIdsForSource, removeLinksForSource, removeLinksForTarget, setSourceIdsForTarget, setTargetIdsForSource
protected DirectoryServiceImpl directoryService
protected String sourceDirectoryName
protected Directory sourceDirectory
protected String targetDirectoryName
protected Directory targetDirectory
public AbstractReference()
public String getFieldName()
getFieldName
in interface Reference
public Directory getSourceDirectory() throws DirectoryException
getSourceDirectory
in interface Reference
DirectoryException
public void setSourceDirectoryName(String sourceDirectoryName)
setSourceDirectoryName
in interface Reference
public Directory getTargetDirectory() throws DirectoryException
getTargetDirectory
in interface Reference
DirectoryException
public void setTargetDirectoryName(String targetDirectoryName)
setTargetDirectoryName
in interface Reference
protected DirectoryServiceImpl getDirectoryService()
public AbstractReference clone()
Reference
protected abstract AbstractReference newInstance()
clone()
methodCopyright © 2015 Nuxeo SA. All rights reserved.