Class DocumentURLAction
- java.lang.Object
-
- org.nuxeo.ecm.platform.mail.action.DocumentURLAction
-
- All Implemented Interfaces:
MessageAction
public class DocumentURLAction extends Object implements MessageAction
Computes the URL of a document.It expects the document to be in the context under the key "document" and the baseUrl at baseUrl. It puts the URL at key "url".
- Author:
- Alexandre Russel
-
-
Field Summary
Fields Modifier and Type Field Description protected String
baseUrl
protected DocumentViewCodecManager
documentViewCodecManager
-
Constructor Summary
Constructors Constructor Description DocumentURLAction(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(ExecutionContext context)
Executes one action.void
reset(ExecutionContext context)
-
-
-
Field Detail
-
documentViewCodecManager
protected DocumentViewCodecManager documentViewCodecManager
-
baseUrl
protected final String baseUrl
-
-
Constructor Detail
-
DocumentURLAction
public DocumentURLAction(String baseUrl)
-
-
Method Detail
-
execute
public boolean execute(ExecutionContext context)
Description copied from interface:MessageAction
Executes one action.If it returns false, the following actions from the pipe are not executed.
- Specified by:
execute
in interfaceMessageAction
- See Also:
ExecutionContext
-
reset
public void reset(ExecutionContext context)
- Specified by:
reset
in interfaceMessageAction
-
-