Package com.seeq.link.sdk.export
Class ApprovalExportConnectionConfigV1
java.lang.Object
com.seeq.link.sdk.export.ExportConnectionConfigV1
com.seeq.link.sdk.export.ApprovalExportConnectionConfigV1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addNewOrChangedToConfig
(String name, HashMap<String, Object> properties) Adds a signal to the NewOrChanged section of the configuration, if it doesn't already exist.boolean
isCreationApproved
(String name) Will return true if AutoCreate is true and RequireApproval is false, or if change is approved (independent of AutoCreate setting).boolean
isUpdateApproved
(String name) Will return true if AutoUpdate is true and RequireApproval is false, or if change is approved (independent of AutoUpdate setting).boolean
Removes a signal from the NewOrChanged section of the configuration, if it exists.boolean
Removes any signals present in the config if they are not part of the supplied set.void
setNotifyAddedOrChangedCallback
(Runnable callback) Methods inherited from class com.seeq.link.sdk.export.ExportConnectionConfigV1
getDirectiveRefreshFrequencyAsDuration, getMinimumLatencyAsDuration
-
Constructor Details
-
ApprovalExportConnectionConfigV1
public ApprovalExportConnectionConfigV1()
-
-
Method Details
-
getNewOrChanged
-
setNotifyAddedOrChangedCallback
-
isCreationApproved
Will return true if AutoCreate is true and RequireApproval is false, or if change is approved (independent of AutoCreate setting).- Parameters:
name
- Name of the exported signal- Returns:
- true if creation is approved
-
isUpdateApproved
Will return true if AutoUpdate is true and RequireApproval is false, or if change is approved (independent of AutoUpdate setting).- Parameters:
name
- Name of the exported signal- Returns:
- true if update is approved
-
addNewOrChangedToConfig
Adds a signal to the NewOrChanged section of the configuration, if it doesn't already exist.- Parameters:
name
- Name of the exported signalproperties
- The properties for the exported signal- Returns:
- true if there were any actual changes to the config, false if everything remained identical
-
removeNewOrChangedFromConfig
Removes a signal from the NewOrChanged section of the configuration, if it exists.- Parameters:
name
- Name of the exported signal- Returns:
- true if the signal existed and was removed, otherwise false
-
removeNewOrChangedFromConfigIfNotPresent
Removes any signals present in the config if they are not part of the supplied set.- Parameters:
names
- A set of names to keep- Returns:
- true if any signal existed and was removed, otherwise false
-