Class AbstractCollect
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.collect.AbstractCollect
-
- All Implemented Interfaces:
org.apache.commons.chain.Command
- Direct Known Subclasses:
CollectItems,CollectNodes,CollectProperties
public abstract class AbstractCollect extends Object implements org.apache.commons.chain.Command
Collect the children items from the given node and store them under the given key.
-
-
Constructor Summary
Constructors Constructor Description AbstractCollect()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanexecute(org.apache.commons.chain.Context ctx)StringgetDepthKey()StringgetDestKey()StringgetNamePatternKey()StringgetSrcPathKey()protected abstract booleanisCollectNodes()Collect nodes flagprotected abstract booleanisCollectProperties()Collect properties flagvoidsetDepthKey(String depthKey)voidsetDestKey(String destKey)Sets the destination keyvoidsetNamePatternKey(String namePatternKey)voidsetSrcPathKey(String srcPathKey)Sets the source path key
-
-
-
Method Detail
-
execute
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception- Specified by:
executein interfaceorg.apache.commons.chain.Command- Throws:
Exception
-
getDepthKey
public String getDepthKey()
- Returns:
- Returns the depthKey.
-
setDepthKey
public void setDepthKey(String depthKey)
- Parameters:
depthKey- Set the context attribute key for the depth attribute
-
getNamePatternKey
public String getNamePatternKey()
- Returns:
- Returns the namePatternKey.
-
setNamePatternKey
public void setNamePatternKey(String namePatternKey)
- Parameters:
namePatternKey- context attribute key for the name pattern attribute
-
isCollectNodes
protected abstract boolean isCollectNodes()
Collect nodes flag- Returns:
- true if
Nodes must be collected
-
isCollectProperties
protected abstract boolean isCollectProperties()
Collect properties flag- Returns:
- true if
Propertys must be collected
-
getDestKey
public String getDestKey()
- Returns:
- the destination key
-
setDestKey
public void setDestKey(String destKey)
Sets the destination key- Parameters:
destKey- the detination key
-
getSrcPathKey
public String getSrcPathKey()
- Returns:
- the source path key
-
setSrcPathKey
public void setSrcPathKey(String srcPathKey)
Sets the source path key- Parameters:
srcPathKey- the source path key
-
-