public interface IAssetManagement extends ITenantLifecycleComponent
| Modifier and Type | Method and Description |
|---|---|
IAssetCategory |
createAssetCategory(IAssetCategoryCreateRequest request)
Create a new asset category.
|
IHardwareAsset |
createHardwareAsset(java.lang.String categoryId,
IHardwareAssetCreateRequest request)
Create a new
IHardwareAsset. |
ILocationAsset |
createLocationAsset(java.lang.String categoryId,
ILocationAssetCreateRequest request)
Create a new
ILocationAsset. |
IPersonAsset |
createPersonAsset(java.lang.String categoryId,
IPersonAssetCreateRequest request)
Create a new
IPersonAsset. |
IAsset |
deleteAsset(java.lang.String categoryId,
java.lang.String assetId)
Delete the asset with the given id in the given category.
|
IAssetCategory |
deleteAssetCategory(java.lang.String categoryId)
Delete an asset category and all contained assets.
|
IAsset |
getAsset(java.lang.String categoryId,
java.lang.String assetId)
Get the asset for the given id in the given category.
|
IAssetCategory |
getAssetCategory(java.lang.String categoryId)
Get an asset category by id.
|
ISearchResults<IAssetCategory> |
listAssetCategories(ISearchCriteria criteria)
List asset categories.
|
ISearchResults<IAsset> |
listAssets(java.lang.String categoryId,
ISearchCriteria criteria)
List assets in a category that meet the given criteria.
|
IAssetCategory |
updateAssetCategory(java.lang.String categoryId,
IAssetCategoryCreateRequest request)
Update an existing asset category.
|
IHardwareAsset |
updateHardwareAsset(java.lang.String categoryId,
java.lang.String assetId,
IHardwareAssetCreateRequest request)
Update an existing hardware asset.
|
ILocationAsset |
updateLocationAsset(java.lang.String categoryId,
java.lang.String assetId,
ILocationAssetCreateRequest request)
Update an existing location asset.
|
IPersonAsset |
updatePersonAsset(java.lang.String categoryId,
java.lang.String assetId,
IPersonAssetCreateRequest request)
Update an existing person asset.
|
getTenant, setTenantcanPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stopIAssetCategory createAssetCategory(IAssetCategoryCreateRequest request) throws SiteWhereException
request - SiteWhereExceptionIAssetCategory getAssetCategory(java.lang.String categoryId) throws SiteWhereException
categoryId - SiteWhereExceptionIAssetCategory updateAssetCategory(java.lang.String categoryId, IAssetCategoryCreateRequest request) throws SiteWhereException
categoryId - request - SiteWhereExceptionISearchResults<IAssetCategory> listAssetCategories(ISearchCriteria criteria) throws SiteWhereException
criteria - SiteWhereExceptionIAssetCategory deleteAssetCategory(java.lang.String categoryId) throws SiteWhereException
categoryId - SiteWhereExceptionIPersonAsset createPersonAsset(java.lang.String categoryId, IPersonAssetCreateRequest request) throws SiteWhereException
IPersonAsset.categoryId - request - SiteWhereExceptionIPersonAsset updatePersonAsset(java.lang.String categoryId, java.lang.String assetId, IPersonAssetCreateRequest request) throws SiteWhereException
categoryId - assetId - request - SiteWhereExceptionIHardwareAsset createHardwareAsset(java.lang.String categoryId, IHardwareAssetCreateRequest request) throws SiteWhereException
IHardwareAsset.categoryId - request - SiteWhereExceptionIHardwareAsset updateHardwareAsset(java.lang.String categoryId, java.lang.String assetId, IHardwareAssetCreateRequest request) throws SiteWhereException
categoryId - assetId - request - SiteWhereExceptionILocationAsset createLocationAsset(java.lang.String categoryId, ILocationAssetCreateRequest request) throws SiteWhereException
ILocationAsset.categoryId - request - SiteWhereExceptionILocationAsset updateLocationAsset(java.lang.String categoryId, java.lang.String assetId, ILocationAssetCreateRequest request) throws SiteWhereException
categoryId - assetId - request - SiteWhereExceptionIAsset getAsset(java.lang.String categoryId, java.lang.String assetId) throws SiteWhereException
categoryId - assetId - SiteWhereExceptionIAsset deleteAsset(java.lang.String categoryId, java.lang.String assetId) throws SiteWhereException
categoryId - assetId - SiteWhereExceptionISearchResults<IAsset> listAssets(java.lang.String categoryId, ISearchCriteria criteria) throws SiteWhereException
categoryId - criteria - SiteWhereException