public interface TenantOptionApi
Modifier and Type | Method and Description |
---|---|
void |
delete(com.cumulocity.model.option.OptionPK optionPK)
Deletes option from the platform.
|
List<OptionRepresentation> |
getAllOptionsForCategory(String category)
Gets all options from the platform for the specific category
Requires role ROLE_OPTION_MANAGEMENT_READ
|
OptionRepresentation |
getOption(com.cumulocity.model.option.OptionPK optionPK)
Gets an option by id
Requires role ROLE_OPTION_MANAGEMENT_READ
|
TenantOptionCollection |
getOptions()
Gets all options from the platform
Requires role ROLE_OPTION_MANAGEMENT_READ
|
OptionRepresentation |
save(OptionRepresentation option)
Creates or updates an option in the platform.
|
Future |
saveAsync(OptionRepresentation option)
Creates or updates an option in the platform.
|
OptionRepresentation getOption(com.cumulocity.model.option.OptionPK optionPK) throws SDKException
optionPK
- id of the option to search forSDKException
- if the option is not found or if the query failedTenantOptionCollection getOptions() throws SDKException
SDKException
- if the query failedOptionRepresentation save(OptionRepresentation option) throws SDKException
option
- option to be createdSDKException
- if the option could not be createdFuture saveAsync(OptionRepresentation option) throws SDKException
option
- option to be createdSDKException
- if the option could not be createdvoid delete(com.cumulocity.model.option.OptionPK optionPK) throws SDKException
optionPK
- to be deletedSDKException
- if the measurement could not be deletedList<OptionRepresentation> getAllOptionsForCategory(String category) throws SDKException
category
- tenant options categorySDKException
- if the query failedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.