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| Constructor and Description |
|---|
AspecttypeClient(AspecttypeClient.ClientBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static AspecttypeClient.ClientBuilder |
builder() |
void |
deleteAspectType(DeleteAspectTypeRequest requestObject)
Delete aspect type
Delete an aspect type.
|
void |
deleteAspectType(String ifMatch,
String id)
Delete aspect type Delete an aspect type.
|
AspectTypeResource |
getAspectType(GetAspectTypeRequest requestObject)
Read an aspect type
Read an aspect type.
|
AspectTypeResource |
getAspectType(String id,
String ifNoneMatch)
Read an aspect type Read an aspect type.
|
AspectTypeListResource |
getAspectTypesContains(FieldTypeEnum fieldType,
String filterValue)
Filter aspect types by name or tenantId.
|
AspectTypeListResource |
getAspectTypesEndsWith(FieldTypeEnum fieldType,
String filterValue)
Filter aspect types by name or tenantId.
|
AspectTypeListResource |
getAspectTypesEqualTo(FieldTypeEnum fieldType,
String filterValue)
Filter aspect types by name or tenantId.
|
AspectTypeListResource |
getAspectTypesLike(FieldTypeEnum fieldType,
String... filterValue)
Filter aspect types by name or tenantId.
|
AspectTypeListResource |
getAspectTypesStartsWith(FieldTypeEnum fieldType,
String filterValue)
Filter aspect types by name or tenantId.
|
AspectTypeListResource |
listAspectTypes(Integer page,
Integer size,
String sort,
String filter,
String ifNoneMatch)
List all aspect types List all aspect types
|
AspectTypeListResource |
listAspectTypes(ListAspectTypesRequest requestObject)
List all aspect types
List all aspect types
|
AspectTypeResource |
saveAspectType(SaveAspectTypeRequest requestObject)
Create or Update an aspect type
Create or Update an aspect type.
|
AspectTypeResource |
saveAspectType(String id,
AspectType aspecttype,
String ifMatch)
Create or Update an aspect type Create or Update an aspect type.
|
AspectTypeResource |
saveAspectType(String id,
AspectType aspecttype,
String ifMatch,
String ifNoneMatch)
Create or Update an aspect type Create or Update an aspect type.
|
AspectTypeResource |
updateAspectType(String ifMatch,
String id,
AspectType aspecttype)
Patch an aspect type Patch an aspect type.
|
AspectTypeResource |
updateAspectType(UpdateAspectTypeRequest requestObject)
Patch an aspect type
Patch an aspect type.
|
public AspecttypeClient(AspecttypeClient.ClientBuilder builder)
public static AspecttypeClient.ClientBuilder builder()
public void deleteAspectType(DeleteAspectTypeRequest requestObject) throws MindsphereException
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
requestObject - - Object of type DeleteAspectTypeRequest {Parameters are If-Match*,id*}MindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource getAspectType(GetAspectTypeRequest requestObject) throws MindsphereException
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
requestObject - - Object of type GetAspectTypeRequest {Parameters are id*,If-None-Match}MindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeListResource listAspectTypes(ListAspectTypesRequest requestObject) throws MindsphereException
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
requestObject - - Object of type ListAspectTypesRequest {Parameters are page,size,sort,filter,If-None-Match}MindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource saveAspectType(SaveAspectTypeRequest requestObject) throws MindsphereException
200 - The aspect type has been updated
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
requestObject - - Object of type SaveAspectTypeRequest {Parameters are id*,aspecttype*,If-Match,If-None-Match}MindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource updateAspectType(UpdateAspectTypeRequest requestObject) throws MindsphereException
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
requestObject - - Object of type UpdateAspectTypeRequest {Parameters are If-Match*,id*,aspecttype*}MindsphereException - if an error occurs while attempting to invoke the APIpublic void deleteAspectType(String ifMatch,
String id)
throws MindsphereException
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
ifMatch - Last known version to facilitate optimistic lockingid - The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)MindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource getAspectType(String id, String ifNoneMatch) throws MindsphereException
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 - The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)ifNoneMatch - ETag hash of previous request to allow cachingMindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeListResource listAspectTypes(Integer page, Integer size, String sort, String filter, String ifNoneMatch) throws MindsphereException
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 criteriaifNoneMatch - ETag hash of previous request to allow cachingMindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource saveAspectType(String id, AspectType aspecttype, String ifMatch) throws MindsphereException
200 - The aspect type has been updated
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 - The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)aspecttype - aspect typeifMatch - Last known version to facilitate optimistic lockingMindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource saveAspectType(String id, AspectType aspecttype, String ifMatch, String ifNoneMatch) throws MindsphereException
200 - The aspect type has been updated
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 - The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)aspecttype - aspect typeifMatch - Last known version to facilitate optimistic lockingifNoneMatch - Set ifNoneMatch header to \"*\" for ensuring create
requestMindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeResource updateAspectType(String ifMatch, String id, AspectType aspecttype) throws MindsphereException
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
ifMatch - Last known version to facilitate optimistic lockingid - The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)aspecttype - aspect typeMindsphereException - if an error occurs while attempting to invoke the APIpublic AspectTypeListResource getAspectTypesEqualTo(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of aspect types matched the tenant scope and filtered Aspects types with provided values
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
fieldType - Field type on which aspect types need to be filtered.filterValue - Value based on which aspect types need to be filtered.MindsphereException - if an error occurs while attempting to invoke the
APIpublic AspectTypeListResource getAspectTypesLike(FieldTypeEnum fieldType, String... filterValue) throws MindsphereException
200 - Array of aspect types matched the tenant scope and filtered Aspects types with array of provided values
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
fieldType - Field type on which aspect types need to be filtered.filterValue - Variable array of values based on which aspect types need to be filtered.MindsphereException - if an error occurs while attempting to invoke the
APIpublic AspectTypeListResource getAspectTypesStartsWith(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of aspect types matched the tenant scope and filtered Aspect types who name start with input values
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
fieldType - Field type on which aspect types need to be filtered.filterValue - Value based on which aspect types need to be filtered.MindsphereException - if an error occurs while attempting to invoke the
APIpublic AspectTypeListResource getAspectTypesEndsWith(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of aspect types matched the tenant scope and filtered Aspect types who name end with input values
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
fieldType - Field type on which aspect types need to be filtered.filterValue - Value based on which aspect types need to be filtered.MindsphereException - if an error occurs while attempting to invoke the
APIpublic AspectTypeListResource getAspectTypesContains(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of aspect types matched the tenant scope and filtered Aspect types who name start with contains values
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
fieldType - Field type on which aspect types need to be filtered.filterValue - Value based on which aspect types need to be filtered.MindsphereException - if an error occurs while attempting to invoke the API