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, setTenant
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
void setAssetManagement(IAssetManagement assetManagement)
assetManagement
- IAssetModule<?> getModule(java.lang.String assetModuleId) throws SiteWhereException
assetModuleId
- SiteWhereException
java.util.List<IAssetModule<?>> listModules() throws SiteWhereException
SiteWhereException
void refreshModules(ILifecycleProgressMonitor monitor) throws SiteWhereException
monitor
- SiteWhereException
void onAssetCategoryAdded(IAssetCategory category, ILifecycleProgressMonitor monitor) throws SiteWhereException
category
- monitor
- SiteWhereException
void onAssetCategoryRemoved(IAssetCategory category, ILifecycleProgressMonitor monitor) throws SiteWhereException
category
- monitor
- SiteWhereException
IAsset getAssetById(java.lang.String assetModuleId, java.lang.String id) throws SiteWhereException
assetModuleId
- id
- SiteWhereException
java.util.List<? extends IAsset> search(java.lang.String assetModuleId, java.lang.String criteria) throws SiteWhereException
assetModuleId
- criteria
- SiteWhereException