Package org.alfresco.repo.virtual.ref
Class GetParentReferenceMethod
java.lang.Object
org.alfresco.repo.virtual.ref.AbstractProtocolMethod<Reference>
org.alfresco.repo.virtual.ref.GetParentReferenceMethod
- All Implemented Interfaces:
ProtocolMethod<Reference>
Returns a virtual parent reference upon execution by subtracting the last template path element from of the given reference.
For root template path references a
For root template path references a
null will be returned upon execution.- Author:
- Bogdan Horje
- See Also:
-
Field Summary
Fields inherited from class org.alfresco.repo.virtual.ref.AbstractProtocolMethod
PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(NodeProtocol protocol, Reference reference) execute(VirtualProtocol virtualProtocol, Reference reference) Methods inherited from class org.alfresco.repo.virtual.ref.AbstractProtocolMethod
execute, execute
-
Constructor Details
-
GetParentReferenceMethod
public GetParentReferenceMethod()
-
-
Method Details
-
execute
public Reference execute(VirtualProtocol virtualProtocol, Reference reference) throws ProtocolMethodException - Specified by:
executein interfaceProtocolMethod<Reference>- Overrides:
executein classAbstractProtocolMethod<Reference>- Throws:
ProtocolMethodException
-
execute
- Specified by:
executein interfaceProtocolMethod<Reference>- Overrides:
executein classAbstractProtocolMethod<Reference>- Throws:
ProtocolMethodException
-