public class FetchNodesAction extends BaseAction<Map<String,MongoNode>>
| Modifier and Type | Field and Description |
|---|---|
static int |
LIMITLESS_DEPTH |
nodeStore| Constructor and Description |
|---|
FetchNodesAction(MongoNodeStore nodeStore,
Set<String> paths,
long revisionId)
Constructs a new
FetchNodesAction to fetch nodes with the exact
specified paths. |
FetchNodesAction(MongoNodeStore nodeStore,
String path,
long revisionId)
Constructs a new
FetchNodesAction to fetch a node and optionally
its descendants under the specified path. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,MongoNode> |
execute()
Executes this action.
|
void |
setBranchId(String branchId)
Sets the branchId for the query.
|
void |
setDepth(int depth)
Sets the depth for the command.
|
void |
setValidCommits(List<MongoCommit> validCommits)
Sets the last valid commits if already known.
|
public static final int LIMITLESS_DEPTH
public FetchNodesAction(MongoNodeStore nodeStore, String path, long revisionId)
FetchNodesAction to fetch a node and optionally
its descendants under the specified path.nodeStore - Node store.path - The path.revisionId - The revision id.public FetchNodesAction(MongoNodeStore nodeStore, Set<String> paths, long revisionId)
FetchNodesAction to fetch nodes with the exact
specified paths.nodeStore - Node store.paths - The exact paths to fetch nodes for.revisionId - The revision id.public void setBranchId(String branchId)
branchId - Branch id.public void setValidCommits(List<MongoCommit> validCommits)
commits - The last valid commits.public void setDepth(int depth)
depth - The depth for the command or -1 for limitless depth.public Map<String,MongoNode> execute()
BaseActionexecute in class BaseAction<Map<String,MongoNode>>Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.