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, stop
getAssetType, getId, getName
T getAsset(java.lang.String id) throws SiteWhereException
id
- SiteWhereException
void putAsset(java.lang.String id, T asset) throws SiteWhereException
id
- asset
- SiteWhereException
void removeAsset(java.lang.String id) throws SiteWhereException
id
- SiteWhereException
java.util.List<T> search(java.lang.String criteria) throws SiteWhereException
criteria
- SiteWhereException
ICommandResponse refresh(ILifecycleProgressMonitor monitor) throws SiteWhereException
monitor
- SiteWhereException