Package org.alfresco.repo.virtual.ref
Class GetChildByIdMethod
- java.lang.Object
-
- org.alfresco.repo.virtual.ref.AbstractProtocolMethod<Reference>
-
- org.alfresco.repo.virtual.ref.GetChildByIdMethod
-
- All Implemented Interfaces:
ProtocolMethod<Reference>
public class GetChildByIdMethod extends AbstractProtocolMethod<Reference>
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.virtual.ref.AbstractProtocolMethod
PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description GetChildByIdMethod(java.lang.String childId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Referenceexecute(VirtualProtocol virtualProtocol, Reference reference)-
Methods inherited from class org.alfresco.repo.virtual.ref.AbstractProtocolMethod
execute, execute, execute
-
-
-
-
Method Detail
-
execute
public Reference execute(VirtualProtocol virtualProtocol, Reference reference) throws ProtocolMethodException
Provides a childReferenceobtained from the parentReferenceand the childId. The inner template path is obtained from the parentReferenceand then the childId String is concatenated to it. The childReferenceis created by calling Protocol#replaceTemplatePathMethod with the new id String as a parameter.- Specified by:
executein interfaceProtocolMethod<Reference>- Overrides:
executein classAbstractProtocolMethod<Reference>- Parameters:
virtualProtocol-reference- the parentReference- Returns:
- the child
Reference - Throws:
ProtocolMethodException
-
-