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 boolean
execute(org.apache.commons.chain.Context ctx)
String
getDepthKey()
String
getDestKey()
String
getNamePatternKey()
String
getSrcPathKey()
protected abstract boolean
isCollectNodes()
Collect nodes flagprotected abstract boolean
isCollectProperties()
Collect properties flagvoid
setDepthKey(String depthKey)
void
setDestKey(String destKey)
Sets the destination keyvoid
setNamePatternKey(String namePatternKey)
void
setSrcPathKey(String srcPathKey)
Sets the source path key
-
-
-
Method Detail
-
execute
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception
- Specified by:
execute
in 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
Node
s must be collected
-
isCollectProperties
protected abstract boolean isCollectProperties()
Collect properties flag- Returns:
- true if
Property
s 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
-
-