public class SpaceService extends Object
| Constructor and Description |
|---|
SpaceService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Long |
count(EntityQueryFilter filter)
Count
Counts the number of items in the database as restricted by the given filter.
|
Long |
count(EntityQueryFilter filter,
Map<String,Object> params)
Count
Counts the number of items in the database as restricted by the given filter.
|
com.google.api.client.http.HttpResponse |
countForHttpResponse(EntityQueryFilter filter) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(EntityQueryFilter filter,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(InputStream filter,
String mediaType) |
Space |
create(SpaceCreate entity)
Create
Creates the entity with the given properties.
|
Space |
create(SpaceCreate entity,
Map<String,Object> params)
Create
Creates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
createForHttpResponse(InputStream entity,
String mediaType) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(SpaceCreate entity) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(SpaceCreate entity,
Map<String,Object> params) |
void |
delete(Long id)
Delete
Deletes the entity with the given id.
|
void |
delete(Long id,
Map<String,Object> params)
Delete
Deletes the entity with the given id.
|
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(InputStream id,
String mediaType) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long id) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long id,
Map<String,Object> params) |
ApiClient |
getApiClient() |
Space |
read(Long id)
Read
Reads the entity with the given 'id' and returns it.
|
Space |
read(Long id,
Map<String,Object> params)
Read
Reads the entity with the given 'id' and returns it.
|
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long id) |
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long id,
Map<String,Object> params) |
List<Space> |
search(EntityQuery query)
Search
Searches for the entities as specified by the given query.
|
List<Space> |
search(EntityQuery query,
Map<String,Object> params)
Search
Searches for the entities as specified by the given query.
|
com.google.api.client.http.HttpResponse |
searchForHttpResponse(EntityQuery query) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(EntityQuery query,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(InputStream query,
String mediaType) |
void |
setApiClient(ApiClient apiClient) |
Space |
update(SpaceUpdate entity)
Update
This updates the entity with the given properties.
|
Space |
update(SpaceUpdate entity,
Map<String,Object> params)
Update
This updates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
updateForHttpResponse(InputStream entity,
String mediaType) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(SpaceUpdate entity) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(SpaceUpdate entity,
Map<String,Object> params) |
public SpaceService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Long count(EntityQueryFilter filter) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
filter - The filter which restricts the entities which are used to calculate the count.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Long count(EntityQueryFilter filter, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse countForHttpResponse(EntityQueryFilter filter) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(InputStream filter, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(EntityQueryFilter filter, Map<String,Object> params) throws IOException
IOExceptionpublic Space create(SpaceCreate entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
entity - The space object with the properties which should be created.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Space create(SpaceCreate entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
entity - The space object with the properties which should be created.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse createForHttpResponse(SpaceCreate entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(SpaceCreate entity, Map<String,Object> params) throws IOException
IOExceptionpublic void delete(Long id) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void delete(Long id, Map<String,Object> params) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse deleteForHttpResponse(Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(InputStream id, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(Long id, Map<String,Object> params) throws IOException
IOExceptionpublic Space read(Long id) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of the space which should be returned.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Space read(Long id, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of the space which should be returned.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse readForHttpResponse(Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse readForHttpResponse(Long id, Map<String,Object> params) throws IOException
IOExceptionpublic List<Space> search(EntityQuery query) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
query - The query restricts the spaces which are returned by the search.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<Space> search(EntityQuery query, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
query - The query restricts the spaces which are returned by the search.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse searchForHttpResponse(EntityQuery query) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(InputStream query, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(EntityQuery query, Map<String,Object> params) throws IOException
IOExceptionpublic Space update(SpaceUpdate entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
entity - The space object with all the properties which should be updated. The id and the version are required properties.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Space update(SpaceUpdate entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
entity - The space object with all the properties which should be updated. The id and the version are required properties.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse updateForHttpResponse(SpaceUpdate entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(SpaceUpdate entity, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2021. All rights reserved.