public class VanillaProtocol extends VirtualProtocol
VirtualProtocol extension that uses a scripted processor virtual
template in order to process a so-called vanilla JSON static template
definition on template execution.ResourceParameter for the
vanilla-JSON template.| Modifier and Type | Field and Description |
|---|---|
static int |
VANILLA_TEMPLATE_PARAM_INDEX |
ACTUAL_NODE_LOCATION_PARAM_INDEX, CLASS_TEMPLATE_PATH_TOKEN, NODE_TEMPLATE_PATH_TOKEN, TEMPLATE_PATH_PARAM_INDEXDEFAULT_ENCODING, name| Constructor and Description |
|---|
VanillaProtocol() |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
dispatch(ProtocolMethod<R> method,
Reference reference)
ProtocolMethod double-dispatch/visitor protocol type selector. |
Resource |
getVanillaTemplateResource(Reference reference) |
Reference |
newReference(Encoding encoding,
Resource virtualTemplateResource,
String templatePath,
Resource actualResource,
Resource vanillTemplateResource,
List<Parameter> extraParameters) |
Reference |
newReference(String vanillaProcessorClasspath,
String templatePath,
org.alfresco.service.cmr.repository.NodeRef actualNodeRef,
org.alfresco.service.cmr.repository.NodeRef templateRef) |
Reference |
newReference(String vanillaProcessorClasspath,
String templatePath,
org.alfresco.service.cmr.repository.NodeRef actualNodeRef,
String templateSysPath) |
createSystemPathResource, getActualNodeLocation, getTemplatePath, newReference, newReference, newReference, newReference, replaceTemplatePathaddParameter, addParameter, getParameter, propagateNodeRefMutations, replaceParameter, replaceParameter, toStringpublic static final int VANILLA_TEMPLATE_PARAM_INDEX
public <R> R dispatch(ProtocolMethod<R> method, Reference reference) throws ProtocolMethodException
ProtocolProtocolMethod double-dispatch/visitor protocol type selector.
Subclasses should override this method to select the appropriate type
bound method.ProtocolMethod.execute(Protocol, Reference) default method
implementation.dispatch in class VirtualProtocolProtocolMethodExceptionpublic Reference newReference(String vanillaProcessorClasspath, String templatePath, org.alfresco.service.cmr.repository.NodeRef actualNodeRef, org.alfresco.service.cmr.repository.NodeRef templateRef)
public Reference newReference(Encoding encoding, Resource virtualTemplateResource, String templatePath, Resource actualResource, Resource vanillTemplateResource, List<Parameter> extraParameters)
public Reference newReference(String vanillaProcessorClasspath, String templatePath, org.alfresco.service.cmr.repository.NodeRef actualNodeRef, String templateSysPath) throws ProtocolMethodException
ProtocolMethodExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.