public interface IAssetModule<T extends IAsset> extends ILifecycleComponent, IAssetCategory
| Modifier and Type | Method and Description |
|---|---|
T |
getAsset(java.lang.String id)
Get an asset by unique id.
|
void |
putAsset(java.lang.String id,
T asset)
Create or update an asset.
|
ICommandResponse |
refresh(ILifecycleProgressMonitor monitor)
Refresh any cached data in the module.
|
void |
removeAsset(java.lang.String id)
Remove an existing asset.
|
java.util.List<T> |
search(java.lang.String criteria)
Search for all assets of a given type that meet the criteria.
|
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stopgetAssetType, getId, getNameT getAsset(java.lang.String id) throws SiteWhereException
id - SiteWhereExceptionvoid putAsset(java.lang.String id,
T asset)
throws SiteWhereException
id - asset - SiteWhereExceptionvoid removeAsset(java.lang.String id)
throws SiteWhereException
id - SiteWhereExceptionjava.util.List<T> search(java.lang.String criteria) throws SiteWhereException
criteria - SiteWhereExceptionICommandResponse refresh(ILifecycleProgressMonitor monitor) throws SiteWhereException
monitor - SiteWhereException