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, setTenant
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
IAssetCategory createAssetCategory(IAssetCategoryCreateRequest request) throws SiteWhereException
request
- SiteWhereException
IAssetCategory getAssetCategory(java.lang.String categoryId) throws SiteWhereException
categoryId
- SiteWhereException
IAssetCategory updateAssetCategory(java.lang.String categoryId, IAssetCategoryCreateRequest request) throws SiteWhereException
categoryId
- request
- SiteWhereException
ISearchResults<IAssetCategory> listAssetCategories(ISearchCriteria criteria) throws SiteWhereException
criteria
- SiteWhereException
IAssetCategory deleteAssetCategory(java.lang.String categoryId) throws SiteWhereException
categoryId
- SiteWhereException
IPersonAsset createPersonAsset(java.lang.String categoryId, IPersonAssetCreateRequest request) throws SiteWhereException
IPersonAsset
.categoryId
- request
- SiteWhereException
IPersonAsset updatePersonAsset(java.lang.String categoryId, java.lang.String assetId, IPersonAssetCreateRequest request) throws SiteWhereException
categoryId
- assetId
- request
- SiteWhereException
IHardwareAsset createHardwareAsset(java.lang.String categoryId, IHardwareAssetCreateRequest request) throws SiteWhereException
IHardwareAsset
.categoryId
- request
- SiteWhereException
IHardwareAsset updateHardwareAsset(java.lang.String categoryId, java.lang.String assetId, IHardwareAssetCreateRequest request) throws SiteWhereException
categoryId
- assetId
- request
- SiteWhereException
ILocationAsset createLocationAsset(java.lang.String categoryId, ILocationAssetCreateRequest request) throws SiteWhereException
ILocationAsset
.categoryId
- request
- SiteWhereException
ILocationAsset updateLocationAsset(java.lang.String categoryId, java.lang.String assetId, ILocationAssetCreateRequest request) throws SiteWhereException
categoryId
- assetId
- request
- SiteWhereException
IAsset getAsset(java.lang.String categoryId, java.lang.String assetId) throws SiteWhereException
categoryId
- assetId
- SiteWhereException
IAsset deleteAsset(java.lang.String categoryId, java.lang.String assetId) throws SiteWhereException
categoryId
- assetId
- SiteWhereException
ISearchResults<IAsset> listAssets(java.lang.String categoryId, ISearchCriteria criteria) throws SiteWhereException
categoryId
- criteria
- SiteWhereException