Package org.openremote.agent.protocol
Class ProtocolAssetService.MergeOptions
java.lang.Object
org.openremote.agent.protocol.ProtocolAssetService.MergeOptions
- Enclosing interface:
- ProtocolAssetService
Options when merging and storing assets from protocols.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMergeOptions(String assignToUserName) MergeOptions(String assignToUserName, Predicate<String> ignoredAttributeKeys) MergeOptions(String assignToUserName, Predicate<String> attributeNamesToEvaluate, Predicate<String> ignoredAttributeNames, Predicate<String> ignoredAttributeKeys) MergeOptions(Predicate<String> attributeNamesToEvaluate) MergeOptions(Predicate<String> ignoredAttributeNames, Predicate<String> ignoredAttributeKeys) -
Method Summary
Modifier and TypeMethodDescriptionAssigns the merged asset to the given user, can benullto not assign the asset to a user.Compare existing and merged asset state before doing the actual storage merge.Compare existing and merged asset state before doing the actual storage merge.Compare existing and merged asset state before doing the actual storage merge.
-
Field Details
-
assignToUserName
-
attributeNamesToEvaluate
-
ignoredAttributeNames
-
ignoredAttributeKeys
-
-
Constructor Details
-
MergeOptions
-
MergeOptions
-
MergeOptions
-
MergeOptions
-
MergeOptions
-
-
Method Details
-
getAssignToUserName
Assigns the merged asset to the given user, can benullto not assign the asset to a user. TheProtocolAssetService.mergeAsset(T)call returnsnullif the user doesn't exist or the asset couldn't be assigned. -
getAttributeNamesToEvaluate
Compare existing and merged asset state before doing the actual storage merge. If only the attributes in this predicate have change, then perform the merge on storage. Ignores what {#link getIgnoredAttributeNames} has stored if attributeNamesToEvaluate is not null. -
getIgnoredAttributeNames
Compare existing and merged asset state before doing the actual storage merge. If only the ignored attributes have changed, don't perform the merge on storage. -
getIgnoredAttributeKeys
Compare existing and merged asset state before doing the actual storage merge. If only the ignored keys of any attributes have changed, don't perform the merge on storage. If {#link getAttributeNamesToEvaluate} is not null, then ignoredAttributeKeys is ignored.
-