|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.dam.commons.process.AbstractAssetProcess
AbstractAssetWorkflowProcess instead.
public abstract class AbstractAssetProcess
The AbstractAssetProcess class ...
| Field Summary | |
|---|---|
protected static String |
APPLICATION_OCTET_STREAM_MIMETYPE
Deprecated. |
protected MimeTypeService |
mimeTypeService
Deprecated. |
static String |
TYPE_JCR_PATH
Deprecated. |
| Constructor Summary | |
|---|---|
AbstractAssetProcess()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
execute(WorkItem workItem,
WorkflowSession workflowSession)
Deprecated. Executes a new Java process with the given
and . |
protected Asset |
getAssetFromPayload(WorkItem item,
Session session)
Deprecated. Retrieves the Asset from the payload of the given workflow item. |
protected AssetHandler |
getAssetHandler(String mimeType)
Deprecated. |
protected AssetManager |
getAssetManager(Session session)
Deprecated. |
protected String |
getMimetype(Node file)
Deprecated. |
protected Node |
getNodeFromPayload(WorkItem item,
Session session)
Deprecated. Retrieve the Node contained in a WorkItem's payload, as indicated by the payload JCR path string. |
protected ResourceResolver |
getResourceResolver(Session session)
Deprecated. |
protected List<String> |
getValuesFromArgs(String key,
String[] arguments)
Deprecated. This method allows you to get by passing a argument key the matching values. |
protected boolean |
isNotReadyForProcessing(Node asset)
Deprecated. This method is a temporary solution to workaround the mac webdav behaviour which breaks the post processing stuff |
protected String |
recheck(String mimeType,
Node file)
Deprecated. It might happen that the webdav servlet does not detect the mimetype properly. |
protected String |
safeGetPath(Node node)
Deprecated. Return the path of an asset node or the literal (unknown) if getting the path fails. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.day.cq.workflow.exec.JavaProcessExt |
|---|
execute |
| Field Detail |
|---|
public static final String TYPE_JCR_PATH
protected static final String APPLICATION_OCTET_STREAM_MIMETYPE
@Reference(policy=STATIC) protected MimeTypeService mimeTypeService
| Constructor Detail |
|---|
public AbstractAssetProcess()
| Method Detail |
|---|
protected Asset getAssetFromPayload(WorkItem item,
Session session)
Asset from the payload of the given workflow item. If the payload type of the
workfow is JCR_PATH, the payload value is treated as the path of the asset and subsequently the
asset resolved and returned. If the asset is not found, null is returned.
item - The WorkItem to retrieve the asset from.session - The session to access the repository with.
null if not found.
protected Node getNodeFromPayload(WorkItem item,
Session session)
Node contained in a WorkItem's payload, as indicated by the payload JCR path string.
If the node cannot be found, null is returned.
item - The workflow item from which to get the payload.session - The JCR Session to access the repository with.
null if not found.protected String getMimetype(Node file)
protected boolean isNotReadyForProcessing(Node asset)
throws RepositoryException
asset - The Node to check.
true if the particular node is ready to be processed.
RepositoryException - If an error occurred accessing the repository.
protected List<String> getValuesFromArgs(String key,
String[] arguments)
dimension
the values form arg 1 and 2 are returned
key - argument keyarguments - arguments
protected String recheck(String mimeType,
Node file)
throws RepositoryException
mimeType - file -
RepositoryExceptionprotected String safeGetPath(Node node)
(unknown) if getting the path fails.
node - node
nullprotected ResourceResolver getResourceResolver(Session session)
protected AssetManager getAssetManager(Session session)
protected AssetHandler getAssetHandler(String mimeType)
public void execute(WorkItem workItem,
WorkflowSession workflowSession)
throws Exception
JavaProcessWorkItem
and WorkflowSession.
execute in interface JavaProcessworkItem - The WorkItem that defines the newly
started JavaProcess.workflowSession - The WorkflowSession that is used for
starting the JavaProcess.
Exception - Thrown in case something goes wrong during execution.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||