Class ApprovalExportConnectionConfigV1

java.lang.Object
com.seeq.link.sdk.export.ExportConnectionConfigV1
com.seeq.link.sdk.export.ApprovalExportConnectionConfigV1

public class ApprovalExportConnectionConfigV1 extends ExportConnectionConfigV1
  • Constructor Details

    • ApprovalExportConnectionConfigV1

      public ApprovalExportConnectionConfigV1()
  • Method Details

    • getNewOrChanged

      public ArrayList<ExportDefinitionV1> getNewOrChanged()
    • setNotifyAddedOrChangedCallback

      public void setNotifyAddedOrChangedCallback(Runnable callback)
    • isCreationApproved

      public boolean isCreationApproved(String name)
      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

      public boolean isUpdateApproved(String name)
      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

      public boolean addNewOrChangedToConfig(String name, HashMap<String,Object> properties)
      Adds a signal to the NewOrChanged section of the configuration, if it doesn't already exist.
      Parameters:
      name - Name of the exported signal
      properties - The properties for the exported signal
      Returns:
      true if there were any actual changes to the config, false if everything remained identical
    • removeNewOrChangedFromConfig

      public boolean removeNewOrChangedFromConfig(String name)
      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

      public boolean removeNewOrChangedFromConfigIfNotPresent(Set<String> names)
      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