/** * Add a request to obtain the information about the available workspaces. * * @return the request; never null */ public GetWorkspacesRequest getWorkspaces() { GetWorkspacesRequest request = new GetWorkspacesRequest(); process(request); return request; }
/** * Add a request to read the branch at the supplied location, to a maximum depth of 2. * * @param at the location of the branch * @param workspaceName the name of the workspace containing the branch * @return the request; never null * @throws IllegalArgumentException if the location or workspace name is null or if the maximum depth is not positive */ public ReadBranchRequest readBranch( Location at, String workspaceName ) { return process(new ReadBranchRequest(at, workspaceName)); }
/** * Get the set of workspace names that are known to this source and accessible by this {@link #getContext() context}. * * @return the set of workspace names; never null */ public Set<String> getWorkspaces() { return requests.getWorkspaces().getAvailableWorkspaceNames(); }
/** * Add a request to read the children of a node at the supplied location in the designated workspace. * * @param of the location of the node whose children are to be read * @param workspaceName the name of the workspace * @return this builder for method chaining; never null * @throws IllegalArgumentException if the location or workspace name is null */ public BatchRequestBuilder readAllChildren( Location of, String workspaceName ) { return add(new ReadAllChildrenRequest(of, workspaceName)); }
/** * Add a request to delete a branch. * * @param at the location of the top node in the existing branch that is to be deleted * @param workspaceName the name of the workspace containing the parent * @return this builder for method chaining; never null * @throws IllegalArgumentException if the location or workspace name is null */ public BatchRequestBuilder deleteBranch( Location at, String workspaceName ) { return add(new DeleteBranchRequest(at, workspaceName)); }
/** * Add a request to destroy an existing workspace. * * @param workspaceName the name of the workspace that is to be destroyed * @return the request; never null * @throws IllegalArgumentException if the workspace name is null */ public DestroyWorkspaceRequest destroyWorkspace( String workspaceName ) { return process(new DestroyWorkspaceRequest(workspaceName)); }
/** * Add a request to destroy an existing workspace. * * @param workspaceName the name of the workspace that is to be destroyed * @return this builder for method chaining; never null * @throws IllegalArgumentException if the workspace name is null */ public BatchRequestBuilder destroyWorkspace( String workspaceName ) { return add(new DestroyWorkspaceRequest(workspaceName)); }
/** * Add a request to read the branch at the supplied location, to a maximum depth of 2. * * @param at the location of the branch * @param workspaceName the name of the workspace containing the branch * @return this builder for method chaining; never null * @throws IllegalArgumentException if the location or workspace name is null or if the maximum depth is not positive */ public BatchRequestBuilder readBranch( Location at, String workspaceName ) { return add(new ReadBranchRequest(at, workspaceName)); }
/** * Add a request to read the properties and number of children of a node at the supplied location. * * @param at the location of the node to be read * @param workspaceName the name of the workspace containing the node * @return the request; never null * @throws IllegalArgumentException if the location or workspace name is null */ public ReadNodeRequest readNode( Location at, String workspaceName ) { return process(new ReadNodeRequest(at, workspaceName)); }
/** * Add a request to read the children of a node at the supplied location in the designated workspace. * * @param of the location of the node whose children are to be read * @param workspaceName the name of the workspace * @return the request; never null * @throws IllegalArgumentException if the location or workspace name is null */ public ReadAllChildrenRequest readAllChildren( Location of, String workspaceName ) { return process(new ReadAllChildrenRequest(of, workspaceName)); }
/** * Add a request to read the properties and number of children of a node at the supplied location. * * @param of the location of the node whose children are to be read * @param workspaceName the name of the workspace * @return the request; never null * @throws IllegalArgumentException if the location or workspace name is null */ public ReadAllPropertiesRequest readAllProperties( Location of, String workspaceName ) { return process(new ReadAllPropertiesRequest(of, workspaceName)); }
/** * Add a request to obtain the information about the available workspaces. * * @return this builder for method chaining; never null */ public BatchRequestBuilder getWorkspaces() { return add(new GetWorkspacesRequest()); }
/** * Add a request to read the properties and number of children of a node at the supplied location. * * @param at the location of the node to be read * @param workspaceName the name of the workspace containing the node * @return this builder for method chaining; never null * @throws IllegalArgumentException if the location or workspace name is null */ public BatchRequestBuilder readNode( Location at, String workspaceName ) { return add(new ReadNodeRequest(at, workspaceName)); }
/** * Add a request to read the properties and number of children of a node at the supplied location. * * @param of the location of the node whose children are to be read * @param workspaceName the name of the workspace * @return this builder for method chaining; never null * @throws IllegalArgumentException if the location or workspace name is null */ public BatchRequestBuilder readAllProperties( Location of, String workspaceName ) { return add(new ReadAllPropertiesRequest(of, workspaceName)); }
/** * Add a request to create a new workspace, and specify the behavior should a workspace already exists with a name that * matches the desired name for the new workspace. * * @param desiredNameOfNewWorkspace the desired name of the new workspace * @param createConflictBehavior the behavior if a workspace already exists with the same name, or null if the default * behavior should be used * @return the request; never null */ public CreateWorkspaceRequest createWorkspace( String desiredNameOfNewWorkspace, CreateConflictBehavior createConflictBehavior ) { return process(new CreateWorkspaceRequest(desiredNameOfNewWorkspace, createConflictBehavior)); }
/** * Add a request to verify the existance of the named workspace. * * @param workspaceName the desired name of the workspace, or null if the source's default workspace should be used * @return the request; never null */ public VerifyWorkspaceRequest verifyWorkspace( String workspaceName ) { return process(new VerifyWorkspaceRequest(workspaceName)); }
/** * Set the results for this request. * * @param tuples the result values * @param statistics the statistics, or null if there are none */ public void setResults( List<Object[]> tuples, Statistics statistics ) { super.doSetResults(columns(), tuples, statistics); }
/** * Add a request to verify the existance of the named workspace. * * @param workspaceName the desired name of the workspace, or null if the source's default workspace should be used * @return this builder for method chaining; never null */ public BatchRequestBuilder verifyWorkspace( String workspaceName ) { return add(new VerifyWorkspaceRequest(workspaceName)); }
/** * Add a request to verify the existance and location of a node at the supplied location. * * @param at the location of the node to be verified * @param workspaceName the name of the workspace containing the node * @return the request; never null * @throws IllegalArgumentException if the location or workspace name is null */ public VerifyNodeExistsRequest verifyNodeExists( Location at, String workspaceName ) { return process(new VerifyNodeExistsRequest(at, workspaceName)); }