public class ChangeSet extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeSet.Change
A sub-class to capture individual differences.
|
| Constructor and Description |
|---|
ChangeSet(IGCRestClient igcRestClient,
Reference asset,
OMRSStub stub)
Create a new JSON Patch based on the provided asset details and stub.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChangedProperties()
Retrieve the set of IGC property names that have some change.
|
List<ChangeSet.Change> |
getChangesForProperty(String property)
Retrieve the list of changes for the provided IGC property name.
|
public ChangeSet(IGCRestClient igcRestClient, Reference asset, OMRSStub stub)
igcRestClient - REST API connectivity to an IGC environmentasset - the IGC asset (as a POJO) giving the most up-to-date definition of the assetstub - the OMRS stub giving the last-state of the asset (when an event was last triggered for it)public Set<String> getChangedProperties()
Set<String>public List<ChangeSet.Change> getChangesForProperty(String property)
property - name of the IGC property for which to retrieve changesList<Change>Copyright © 2018–2019 ODPi. All rights reserved.