Package org.alfresco.repo.virtual.ref
Class Protocol
java.lang.Object
org.alfresco.repo.virtual.ref.Protocol
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NodeProtocol,VirtualProtocol
A
Protocols define the semantics of all elements of a reference. Protocol implementations add syntactic processing methods.
The high level semantic functionality of a protocol is implemented with
Reference model element that defines the type of the referred
artefact and the virtualization process that was applied when creating a
reference.Protocols define the semantics of all elements of a reference. Protocol implementations add syntactic processing methods.
The high level semantic functionality of a protocol is implemented with
ProtocolMethods.- Author:
- Bogdan Horje
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(Reference reference, Parameter parameter) addParameter(Reference reference, Resource resource) <R> Rdispatch(ProtocolMethod<R> method, Reference reference) ProtocolMethoddouble-dispatch/visitor protocol type selector.getParameter(Reference reference, int index) propagateNodeRefMutations(NodeRef mutatedNodeRef, Reference reference) Protocoldelegate ofReference.propagateNodeRefMutations(NodeRef)replaceParameter(Reference reference, int index, String stringParameter) replaceParameter(Reference reference, int index, Parameter parameter) toString()
-
Field Details
-
name
-
DEFAULT_ENCODING
-
-
Constructor Details
-
Protocol
-
-
Method Details
-
getParameter
-
replaceParameter
-
replaceParameter
-
addParameter
-
addParameter
-
dispatch
ProtocolMethoddouble-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.- Parameters:
method-reference-- Returns:
- the value returned by the type bond method
- Throws:
ProtocolMethodException
-
toString
-
propagateNodeRefMutations
Protocoldelegate ofReference.propagateNodeRefMutations(NodeRef)
-