Class MultiCredentialsComponent

java.lang.Object
velox.api.layer0.credentialscomponents.MultiCredentialsComponent
All Implemented Interfaces:
CredentialsComponent
Direct Known Subclasses:
BaseCredentialsComponent

public abstract class MultiCredentialsComponent extends Object implements CredentialsComponent
An abstract implementation of CredentialsComponent. It serves as a basis for a multi-value component (e.g. dependent fields)
  • Field Details

  • Constructor Details

    • MultiCredentialsComponent

      public MultiCredentialsComponent()
  • Method Details

    • getCompoundComponent

      public Container getCompoundComponent()
      Description copied from interface: CredentialsComponent
      Returns the component itself. Compound here means that a typical CredentialsComponent will contain one or more elements like a JTextField or a JComboBox and optionally a JLabel or anything else
      Specified by:
      getCompoundComponent in interface CredentialsComponent
    • getAliases

      public List<org.apache.commons.lang3.tuple.Pair<String,String>> getAliases()
      Description copied from interface: CredentialsComponent

      Provide pair(s) of legacy name and current name for this credentials element if there are any. Used for compatibility with an older credentials element names. If "current name" (second element in a pair) does not have a corresponding value stored in the settings yet, value will be taken from "legacy name". There might be multiple pairs mapping to the same "current name", in which case only the first matched one will have effect.

      If an adapter is switched to extended credentials for the first time common old names for login, password and demo check box are found in CredentialsComponentUtil

      Specified by:
      getAliases in interface CredentialsComponent
    • addAlias

      public void addAlias(String legacyName, String actualName)
      Adds pair(s) of legacy name and actual name for this credentials element see CredentialsComponent.getAliases() for details.
      Parameters:
      legacyName - an older credentials element's name
      actualName - an actual credentials element's name