Package org.alfresco.repo.virtual.ref
Class VanillaProtocol
java.lang.Object
org.alfresco.repo.virtual.ref.Protocol
org.alfresco.repo.virtual.ref.VirtualProtocol
org.alfresco.repo.virtual.ref.VanillaProtocol
- All Implemented Interfaces:
Serializable
A
Vanilla references store have an extra
VirtualProtocol extension that uses a scripted processor virtual template in order to process a so-called vanilla JSON static template definition on template execution.Vanilla references store have an extra
ResourceParameter for the vanilla-JSON template.- Author:
- Bogdan Horje
- See Also:
-
Field Summary
FieldsFields inherited from class org.alfresco.repo.virtual.ref.VirtualProtocol
ACTUAL_NODE_LOCATION_PARAM_INDEX, CLASS_TEMPLATE_PATH_TOKEN, NODE_TEMPLATE_PATH_TOKEN, TEMPLATE_PATH_PARAM_INDEXFields inherited from class org.alfresco.repo.virtual.ref.Protocol
DEFAULT_ENCODING, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Rdispatch(ProtocolMethod<R> method, Reference reference) ProtocolMethoddouble-dispatch/visitor protocol type selector.getVanillaTemplateResource(Reference reference) newReference(String vanillaProcessorClasspath, String templatePath, NodeRef actualNodeRef, String templateSysPath) newReference(String vanillaProcessorClasspath, String templatePath, NodeRef actualNodeRef, NodeRef templateRef) newReference(Encoding encoding, Resource virtualTemplateResource, String templatePath, Resource actualResource, Resource vanillTemplateResource, List<Parameter> extraParameters) Methods inherited from class org.alfresco.repo.virtual.ref.VirtualProtocol
createSystemPathResource, getActualNodeLocation, getTemplatePath, newReference, newReference, newReference, newReference, replaceTemplatePathMethods inherited from class org.alfresco.repo.virtual.ref.Protocol
addParameter, addParameter, getParameter, propagateNodeRefMutations, replaceParameter, replaceParameter, toString
-
Field Details
-
VANILLA_TEMPLATE_PARAM_INDEX
public static final int VANILLA_TEMPLATE_PARAM_INDEX- See Also:
-
-
Constructor Details
-
VanillaProtocol
public VanillaProtocol()
-
-
Method Details
-
dispatch
Description copied from class:ProtocolProtocolMethoddouble-dispatch/visitor protocol type selector. Subclasses should override this method to select the appropriate type bound method.
This particular implementation calls the defaultProtocolMethod.execute(Protocol, Reference)default method implementation.- Overrides:
dispatchin classVirtualProtocol- Returns:
- the value returned by the type bond method
- Throws:
ProtocolMethodException
-
newReference
-
newReference
-
getVanillaTemplateResource
-
newReference
public Reference newReference(String vanillaProcessorClasspath, String templatePath, NodeRef actualNodeRef, String templateSysPath) throws ProtocolMethodException - Throws:
ProtocolMethodException
-