Package org.alfresco.repo.virtual.ref
Interface ProtocolMethod<R>
-
- Type Parameters:
R- method return type
- All Known Implementing Classes:
AbstractProtocolMethod,ApplyTemplateMethod,GetActualNodeRefMethod,GetAllSetPermissionsMethod,GetAspectsMethod,GetChildAssocsMethod,GetChildByIdMethod,GetParentReferenceMethod,GetPathMethod,GetReferenceType,GetSetPermissionsMethod,GetTemplatePathMethod,GetVanillaScriptInputStreamMethod,HasPermissionMethod,NewVirtualReferenceMethod
public interface ProtocolMethod<R>A double-dispatched method abstraction.
The method execution is dispatched based on concrete protocol type.
Implementor encapsulate high-level reference protocol based semantic functionality.- Author:
- Bogdan Horje
- See Also:
Reference.execute(ProtocolMethod)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rexecute(NodeProtocol protocol, Reference reference)Rexecute(Protocol protocol, Reference reference)Rexecute(VanillaProtocol vanillaProtocol, Reference reference)Rexecute(VirtualProtocol virtualProtocol, Reference reference)
-
-
-
Method Detail
-
execute
R execute(VanillaProtocol vanillaProtocol, Reference reference) throws ProtocolMethodException
- Throws:
ProtocolMethodException
-
execute
R execute(VirtualProtocol virtualProtocol, Reference reference) throws ProtocolMethodException
- Throws:
ProtocolMethodException
-
execute
R execute(NodeProtocol protocol, Reference reference) throws ProtocolMethodException
- Throws:
ProtocolMethodException
-
execute
R execute(Protocol protocol, Reference reference) throws ProtocolMethodException
- Throws:
ProtocolMethodException
-
-