Package org.openremote.model.asset
Class AssetEvent
java.lang.Object
org.openremote.model.event.Event
org.openremote.model.event.shared.SharedEvent
org.openremote.model.asset.AssetEvent
- All Implemented Interfaces:
AssetInfo
This event is used when an
Asset
is created, read, updated or deleted (updates are only fired when one or more top
level Asset
properties are changed (including attributes). Attribute changes are handled via
the AttributeEvent
. When the cause is AssetEvent.Cause.READ
then the asset's
Attribute
s will be included in the asset otherwise they are not.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Asset
<?> protected AssetEvent.Cause
protected String[]
Fields inherited from class org.openremote.model.event.shared.SharedEvent
MESSAGE_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionAssetEvent
(AssetEvent.Cause cause, Asset<?> asset, String[] updatedProperties) -
Method Summary
Methods inherited from class org.openremote.model.event.Event
getEventType, getEventType, getEventType, getMessageID, getTimestamp, setMessageID, setTimestamp
-
Field Details
-
cause
-
asset
-
updatedProperties
-
-
Constructor Details
-
AssetEvent
-
-
Method Details
-
getId
-
getAssetName
- Specified by:
getAssetName
in interfaceAssetInfo
-
getAssetType
- Specified by:
getAssetType
in interfaceAssetInfo
-
getAssetClass
- Specified by:
getAssetClass
in interfaceAssetInfo
-
getCreatedOn
- Specified by:
getCreatedOn
in interfaceAssetInfo
-
getRealm
-
getParentId
- Specified by:
getParentId
in interfaceAssetInfo
-
getPath
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceAssetInfo
-
getCause
-
getAsset
-
getUpdatedProperties
-
isAccessPublicRead
public boolean isAccessPublicRead() -
toString
-