public abstract class AbstractContentWorker extends Object implements ContentWorker
sourceContentReferenceHandler
field.| Modifier and Type | Field and Description |
|---|---|
protected static String |
FRAMEWORK_PROPERTY_NAME |
protected static String |
FRAMEWORK_PROPERTY_VERSION |
protected ContentReferenceHandler |
sourceContentReferenceHandler |
protected String |
versionDetailsString |
protected String |
versionString |
| Constructor and Description |
|---|
AbstractContentWorker() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
getProperties() |
String |
getVersionDetailsString()
Gets a string returning detailed version information such as JVM
or command line application's version output
|
String |
getVersionString()
Gets a string returning name and version information.
|
void |
initialize()
Performs any initialization needed after content reference handlers are set
|
protected void |
initializeVersionDetailsString() |
protected void |
initializeVersionString() |
boolean |
isAvailable()
Gets whether or not the dependencies of the worker have been
properly configured for its normal operation, i.e.
|
protected void |
loadProperties() |
protected void |
setIsAvailable(boolean isAvailable) |
void |
setSourceContentReferenceHandler(ContentReferenceHandler sourceContentReferenceHandler)
Sets the content reference handler to be used for retrieving
the source content to be worked on.
|
protected static final String FRAMEWORK_PROPERTY_NAME
protected static final String FRAMEWORK_PROPERTY_VERSION
protected ContentReferenceHandler sourceContentReferenceHandler
protected String versionString
protected String versionDetailsString
public void setSourceContentReferenceHandler(ContentReferenceHandler sourceContentReferenceHandler)
sourceContentReferenceHandler - public void initialize()
public boolean isAvailable()
ContentWorkerisAvailable in interface ContentWorkerprotected void setIsAvailable(boolean isAvailable)
protected Properties getProperties()
protected void loadProperties()
protected void initializeVersionString()
public String getVersionString()
ContentWorkergetVersionString in interface ContentWorkerprotected void initializeVersionDetailsString()
public String getVersionDetailsString()
ContentWorkergetVersionDetailsString in interface ContentWorkerCopyright © 2014 Alfresco Software. All rights reserved.