Class ResourceCollectionChangeEvent
java.lang.Object
com.inductiveautomation.ignition.common.resourcecollection.ResourceCollectionChangeEvent
Represents a change event in a resource collection.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResourceCollectionChangeEvent
(ResourceCollectionChangeEvent.ChangeType changeType, String name) ResourceCollectionChangeEvent
(ResourceCollectionChangeEvent.ChangeType changeType, String name, @Nullable Object contextObject) -
Method Summary
Modifier and TypeMethodDescriptionCreate a new ResourceCollectionChangeEvent representing an added resource collection.Create a new ResourceCollectionChangeEvent representing a deleted resource collection.getName()
-
Constructor Details
-
ResourceCollectionChangeEvent
public ResourceCollectionChangeEvent(ResourceCollectionChangeEvent.ChangeType changeType, String name) -
ResourceCollectionChangeEvent
public ResourceCollectionChangeEvent(ResourceCollectionChangeEvent.ChangeType changeType, String name, @Nullable @Nullable Object contextObject)
-
-
Method Details
-
getChangeType
- Returns:
- the type of change that occurred
-
getName
- Returns:
- the name of the resource collection that was changed
-
getContextObject
- Returns:
- the context object associated with the change, if any was provided in the push operation. If no context object was provided, or this change was caused by something other than a push operation (e.g. a filesystem scan) this will return an empty Optional.
-
added
Create a new ResourceCollectionChangeEvent representing an added resource collection. -
deleted
Create a new ResourceCollectionChangeEvent representing a deleted resource collection.
-