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_INDEX
DEFAULT_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, replaceTemplatePath
addParameter, addParameter, getParameter, propagateNodeRefMutations, replaceParameter, replaceParameter, toString
public static final int VANILLA_TEMPLATE_PARAM_INDEX
public <R> R dispatch(ProtocolMethod<R> method, Reference reference) throws ProtocolMethodException
Protocol
ProtocolMethod
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 VirtualProtocol
ProtocolMethodException
public 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
ProtocolMethodException
Copyright © 2005–2017 Alfresco Software. All rights reserved.