public interface SlickClient
In this example we will simply fetch a list of projects from slick, then print them out to the console. This example is purposefully simplistic. It shows how to get started.
SlickClient slick = SlickClientFactory.getSlickClient("http://localhost/slick/api"); List<Project> projects = null; try { projects = slick.projects().getList(); } catch(SlickError e) { System.err.println("Error retrieving list of projects from slick: " + e.getMessage()); } if (projects != null) { System.out.println("Projects in slick:"); System.out.println("------------------"); for(Project project : projects) { System.out.println(project.toString()); } } else { System.out.println("Nothing to see here, move along."); }
Modifier and Type | Method and Description |
---|---|
RetrieveUpdateDeleteApi<Configuration> |
configuration(String idOrName)
Perform operations against a specific configuration.
|
QueryAndCreateApi<Configuration> |
configurations()
No filtering, retrieve all configurations.
|
QueryAndCreateApi<Configuration> |
configurations(Map<String,String> properties)
Filter based on properties of a configuration.
|
QueryAndCreateApi<Configuration> |
configurations(String query)
Filter the results based of a standard slick query.
|
QueryAndCreateApi<Configuration> |
configurations(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<Configuration> |
configurations(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
FilesApi |
file(String id)
Access a specific stored file.
|
FilesQueryApi |
files()
Create and Upload a file to slick.
|
ProjectApi |
project(String idOrName)
Perform operations against a specific project.
|
QueryAndCreateApi<Project> |
projects()
No filtering, retrieve all projects.
|
QueryAndCreateApi<Project> |
projects(Map<String,String> properties)
Filter based on properties of a project.
|
QueryAndCreateApi<Project> |
projects(String query)
Filter the results based of a standard slick query.
|
QueryAndCreateApi<Project> |
projects(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<Project> |
projects(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
ResultApi |
result(String idOrName)
Perform operations against a specific result.
|
ResultQueryApi |
results()
No filtering, retrieve all results.
|
ResultQueryApi |
results(Map<String,String> properties)
Filter based on properties of a result.
|
ResultQueryApi |
results(String query)
Filter the results based of a standard slick query.
|
ResultQueryApi |
results(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
ResultQueryApi |
results(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
RetrieveUpdateDeleteApi<Testcase> |
testcase(String idOrName)
Perform operations against a specific testcase.
|
QueryAndCreateApi<Testcase> |
testcases()
No filtering, retrieve all testcases.
|
QueryAndCreateApi<Testcase> |
testcases(Map<String,String> properties)
Filter based on properties of a testcase.
|
QueryAndCreateApi<Testcase> |
testcases(String query)
Filter the results based of a standard slick query.
|
QueryAndCreateApi<Testcase> |
testcases(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<Testcase> |
testcases(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
RetrieveUpdateDeleteApi<TestPlan> |
testplan(String idOrName)
Perform operations against a specific testplan.
|
QueryAndCreateApi<TestPlan> |
testplans()
No filtering, retrieve all testplans.
|
QueryAndCreateApi<TestPlan> |
testplans(Map<String,String> properties)
Filter based on properties of a testplan.
|
QueryAndCreateApi<TestPlan> |
testplans(String query)
Filter the results based of a standard slick query.
|
QueryAndCreateApi<TestPlan> |
testplans(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<TestPlan> |
testplans(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
RetrieveUpdateDeleteApi<Testrun> |
testrun(String idOrName)
Perform operations against a specific testrun.
|
QueryAndCreateApi<Testrun> |
testruns()
No filtering, retrieve all testruns.
|
QueryAndCreateApi<Testrun> |
testruns(Map<String,String> properties)
Filter based on properties of a testrun.
|
QueryAndCreateApi<Testrun> |
testruns(String query)
Filter the results based of a standard slick query.
|
QueryAndCreateApi<Testrun> |
testruns(String query,
String orderBy)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<Testrun> |
testruns(String query,
String orderBy,
Integer limit,
Integer skip)
Filter the results based of a standard slick query, setting a property to order the results by.
|
QueryAndCreateApi<Project> projects()
QueryAndCreateApi<Project> projects(Map<String,String> properties)
properties
- A map of properties and their values to filter the projects by.QueryAndCreateApi<Project> projects(String query)
query
- The query to perform, using slick's generic query language.QueryAndCreateApi<Project> projects(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.QueryAndCreateApi<Project> projects(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.ProjectApi project(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the project.QueryAndCreateApi<Configuration> configurations()
QueryAndCreateApi<Configuration> configurations(Map<String,String> properties)
properties
- A map of properties and their values to filter the configurations by.QueryAndCreateApi<Configuration> configurations(String query)
query
- The query to perform, using slick's generic query language.QueryAndCreateApi<Configuration> configurations(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.QueryAndCreateApi<Configuration> configurations(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.RetrieveUpdateDeleteApi<Configuration> configuration(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the configuration.ResultQueryApi results()
ResultQueryApi results(Map<String,String> properties)
properties
- A map of properties and their values to filter the results by.ResultQueryApi results(String query)
query
- The query to perform, using slick's generic query language.ResultQueryApi results(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.ResultQueryApi results(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.ResultApi result(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the result.QueryAndCreateApi<TestPlan> testplans()
QueryAndCreateApi<TestPlan> testplans(Map<String,String> properties)
properties
- A map of properties and their values to filter the testplans by.QueryAndCreateApi<TestPlan> testplans(String query)
query
- The query to perform, using slick's generic query language.QueryAndCreateApi<TestPlan> testplans(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.QueryAndCreateApi<TestPlan> testplans(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.RetrieveUpdateDeleteApi<TestPlan> testplan(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the testplan.QueryAndCreateApi<Testcase> testcases()
QueryAndCreateApi<Testcase> testcases(Map<String,String> properties)
properties
- A map of properties and their values to filter the testcases by.QueryAndCreateApi<Testcase> testcases(String query)
query
- The query to perform, using slick's generic query language.QueryAndCreateApi<Testcase> testcases(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.QueryAndCreateApi<Testcase> testcases(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.RetrieveUpdateDeleteApi<Testcase> testcase(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the testcase.FilesQueryApi files()
FilesApi file(String id)
id
- The id of the StoredFile that you want to access.QueryAndCreateApi<Testrun> testruns()
QueryAndCreateApi<Testrun> testruns(Map<String,String> properties)
properties
- A map of properties and their values to filter the testruns by.QueryAndCreateApi<Testrun> testruns(String query)
query
- The query to perform, using slick's generic query language.QueryAndCreateApi<Testrun> testruns(String query, String orderBy)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.QueryAndCreateApi<Testrun> testruns(String query, String orderBy, Integer limit, Integer skip)
query
- The query to perform, using slick's generic query language.orderBy
- The name of the property to order the results by. Prefix with a '-' for descending order.limit
- The maximum number of results to return, or null for no limit.skip
- The number of results to skip (maintaining order), or null for no skip.RetrieveUpdateDeleteApi<Testrun> testrun(String idOrName)
idOrName
- The id (string representation of the BSON Object Id) or the name of the testrun.Copyright © 2015. All rights reserved.