public class AspectTypeClient extends MindsphereAPIClient
| Modifier and Type | Class and Description |
|---|---|
static class |
AspectTypeClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>credentials, restClientConfig, restTemplate| Modifier | Constructor and Description |
|---|---|
protected |
AspectTypeClient(AspectTypeClient.ClientBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static AspectTypeClient.ClientBuilder |
builder() |
AspectTypeResource |
createAspectType(String id,
AspectTypeDto aspecttype)
Create an aspect type Create or Update an aspect type.
|
boolean |
deleteAspectType(String id,
String ifMatch)
Delete aspect type
Delete an aspect type.
|
AspectTypeResource |
getAspectTypeById(String id)
Read an aspect type Read an aspect type.
|
AspectTypeResource |
getAspectTypeById(String id,
String ifNoneMatch)
Read an aspect type Read an aspect type.
|
AspectTypes |
getAspectTypes()
List all aspect types
|
AspectTypes |
getAspectTypes(Integer page,
Integer size)
List all aspect types
|
AspectTypes |
getAspectTypes(Integer page,
Integer size,
String sort,
String filter,
String ifNoneMatch)
List all aspect types
|
AspectTypes |
getAspectTypes(String sort,
String filter)
List all aspect types
|
AspectTypeResource |
updateAspectType(String id,
AspectTypeDto aspecttype,
String ifMatch)
Update an aspect type Create or Update an aspect type.
|
protected AspectTypeClient(AspectTypeClient.ClientBuilder builder)
public static AspectTypeClient.ClientBuilder builder()
public AspectTypes getAspectTypes(Integer page, Integer size, String sort, String filter, String ifNoneMatch) throws MindsphereException
Response Status Codes
200 - Array of aspect types matched the tenant scope and filter criterias
304 - Aspect-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
page - Specifies the requested page indexsize - Specifies the number of elements in a pagesort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"aspecttype_name\"}" or as an encoded string, "%7B%22name%22:%22aspecttype_name%22%7D"ifNoneMatch - ETag hash of previous request to allow cachingMindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectTypes getAspectTypes() throws MindsphereException
Response Status Codes
200 - Array of aspect types matched the tenant scope and filter criterias
304 - Aspect-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
MindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic AspectTypes getAspectTypes(Integer page, Integer size) throws MindsphereException
Response Status Codes
200 - Array of aspect types matched the tenant scope and filter criterias
304 - Aspect-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
page - Specifies the requested page indexsize - Specifies the number of elements in a pageMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic AspectTypes getAspectTypes(String sort, String filter) throws MindsphereException
Response Status Codes
200 - Array of aspect types matched the tenant scope and filter criterias
304 - Aspect-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
sort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"aspecttype_name\"}" or as an encoded string, "%7B%22name%22:%22aspecttype_name%22%7D"MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectTypeResource getAspectTypeById(String id, String ifNoneMatch) throws MindsphereException
Response Status Codes
200 - Returns the aspect type
304 - AspectType not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AspectType not found
500 - Server error, for more information see errorcode and message
id - id Unique identifierifNoneMatch - ETag hash of previous request to allow cachingMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereClientException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic AspectTypeResource getAspectTypeById(String id) throws MindsphereException
Response Status Codes
200 - Returns the aspect type
304 - AspectType not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AspectType not found
500 - Server error, for more information see errorcode and message
id - id Unique identifierMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic AspectTypeResource updateAspectType(String id, AspectTypeDto aspecttype, String ifMatch) throws MindsphereException
Response Status Codes
200 - The aspect type has been updated
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AspectType not found
412 - AspectType is changed in the background
500 - Server error, for more information see errorcode and message
id - id Unique identifieraspecttype - aspect typeifMatch - Last known version to facilitate optimistic lockingMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic AspectTypeResource createAspectType(String id, AspectTypeDto aspecttype) throws MindsphereException
Response Status Codes
201 - The aspect type has been created
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AspectType not found
412 - AspectType is changed in the background
500 - Server error, for more information see errorcode and message
id - id Unique identifieraspecttype - aspect typeMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic boolean deleteAspectType(String id,
String ifMatch)
throws MindsphereException
Response Status Codes
204 - Aspect type deletion was successful
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AspectType not found
412 - AspectType is changed in the background
500 - Server error, for more information see errorcode and message
id - id Unique identifierifMatch - Last known version to facilitate optimistic lockingMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereClientException - thrown if an error occurs while attempting to invoke the APIMindsphereException