public abstract class AbstractRuntimeExecContentTransformerWorker extends AbstractFileContentTransformerWorker
RuntimeExec to perform the transformAbstractFileContentTransformerWorker.FileContentReferencePair| Modifier and Type | Field and Description |
|---|---|
protected org.gytheio.util.exec.RuntimeExec |
executer
the system command executer
|
protected org.gytheio.util.exec.RuntimeExec |
fileDetailsExecuter
optional file details executer
|
protected static String |
VAR_SOURCE
source variable name
|
protected static String |
VAR_TARGET
target variable name
|
protected org.gytheio.util.exec.RuntimeExec |
versionDetailsExecuter
the check command executer
|
targetContentReferenceHandler| Constructor and Description |
|---|
AbstractRuntimeExecContentTransformerWorker()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDetails(File file)
Optional method for implementations able to return details of a file which will
vary greatly depending on the file type and implementation.
|
protected abstract void |
initializationTest()
Perform a transformation that verifies the executer is installed and configured correctly
|
void |
initialize()
Checks for the JMagick and ImageMagick dependencies, using the common
transformation method to check
that the sample image can be converted. |
protected abstract void |
initializeExecuter()
Perform any initialization needed for the primary executer including creating if null
|
protected abstract void |
initializeFileDetailsExecuter()
Perform any initialization needed for the file details executer including creating if null
|
protected abstract void |
initializeVersionDetailsExecuter()
Perform any initialization needed for the version details executer including creating if null
|
protected void |
initializeVersionDetailsString() |
void |
setExecuter(org.gytheio.util.exec.RuntimeExec executer)
Set the runtime command executer that must be executed.
|
void |
setVersionDetailsExecuter(org.gytheio.util.exec.RuntimeExec versionDetailsExecuter)
Sets the command that must be executed in order to retrieve version information from the converting executable
and thus test that the executable itself is present.
|
createTargetContentReference, createTempFile, getSourcePairs, getTargetPairs, initializationTest, isTempTargetUsed, transform, transform, transformInternalgetExtension, setTargetContentReferenceHandler, toStringgetProperties, getVersionDetailsString, getVersionString, initializeVersionString, isAvailable, loadProperties, setIsAvailable, setSourceContentReferenceHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisTransformableprotected static final String VAR_SOURCE
protected static final String VAR_TARGET
protected org.gytheio.util.exec.RuntimeExec executer
protected org.gytheio.util.exec.RuntimeExec versionDetailsExecuter
protected org.gytheio.util.exec.RuntimeExec fileDetailsExecuter
public AbstractRuntimeExecContentTransformerWorker()
public void setExecuter(org.gytheio.util.exec.RuntimeExec executer)
executer - the system command executerpublic void setVersionDetailsExecuter(org.gytheio.util.exec.RuntimeExec versionDetailsExecuter)
versionDetailsExecuter - command executer to retrieve version informationprotected abstract void initializeExecuter()
protected abstract void initializeVersionDetailsExecuter()
protected abstract void initializeFileDetailsExecuter()
protected abstract void initializationTest()
public void initialize()
transformation method to check
that the sample image can be converted.initialize in class AbstractContentTransformerWorkerprotected void initializeVersionDetailsString()
initializeVersionDetailsString in class org.gytheio.content.AbstractContentWorkerCopyright © 2018 Alfresco Software. All rights reserved.