public interface IAssetModuleManager extends ITenantLifecycleComponent
| Modifier and Type | Method and Description |
|---|---|
IAsset |
getAssetById(java.lang.String assetModuleId,
java.lang.String id)
Finds an asset in a given module.
|
IAssetModule<?> |
getModule(java.lang.String assetModuleId)
Get asset module by unique id.
|
java.util.List<IAssetModule<?>> |
listModules()
Get the list of asset modules.
|
void |
onAssetCategoryAdded(IAssetCategory category,
ILifecycleProgressMonitor monitor)
Called when an asset category is added.
|
void |
onAssetCategoryRemoved(IAssetCategory category,
ILifecycleProgressMonitor monitor)
Called when an asset category is removed.
|
void |
refreshModules(ILifecycleProgressMonitor monitor)
Calls the refresh method on all asset modules.
|
java.util.List<? extends IAsset> |
search(java.lang.String assetModuleId,
java.lang.String criteria)
Search an asset module for assets matching the given criteria.
|
void |
setAssetManagement(IAssetManagement assetManagement)
Set asset management implementation.
|
getTenant, setTenantcanPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stopvoid setAssetManagement(IAssetManagement assetManagement)
assetManagement - IAssetModule<?> getModule(java.lang.String assetModuleId) throws SiteWhereException
assetModuleId - SiteWhereExceptionjava.util.List<IAssetModule<?>> listModules() throws SiteWhereException
SiteWhereExceptionvoid refreshModules(ILifecycleProgressMonitor monitor) throws SiteWhereException
monitor - SiteWhereExceptionvoid onAssetCategoryAdded(IAssetCategory category, ILifecycleProgressMonitor monitor) throws SiteWhereException
category - monitor - SiteWhereExceptionvoid onAssetCategoryRemoved(IAssetCategory category, ILifecycleProgressMonitor monitor) throws SiteWhereException
category - monitor - SiteWhereExceptionIAsset getAssetById(java.lang.String assetModuleId, java.lang.String id) throws SiteWhereException
assetModuleId - id - SiteWhereExceptionjava.util.List<? extends IAsset> search(java.lang.String assetModuleId, java.lang.String criteria) throws SiteWhereException
assetModuleId - criteria - SiteWhereException