Enum Class IsodeDirectorySession.DsaVersion

java.lang.Object
java.lang.Enum<IsodeDirectorySession.DsaVersion>
com.isode.dsapi.internal.IsodeDirectorySession.DsaVersion
All Implemented Interfaces:
Serializable, Comparable<IsodeDirectorySession.DsaVersion>, Constable
Enclosing class:
IsodeDirectorySession

public static enum IsodeDirectorySession.DsaVersion extends Enum<IsodeDirectorySession.DsaVersion>
This enum indicates the DSA version of the Isode directory or Unknown. More recent versions have higher ordinal values (e.g. D3.ordinal() > D2.ordinal()).
Since:
15.0
  • Enum Constant Details

  • Method Details

    • values

      public static IsodeDirectorySession.DsaVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IsodeDirectorySession.DsaVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDsaVersion

      public static IsodeDirectorySession.DsaVersion getDsaVersion(String dsaVersion, String vendorName, String vendorVersion)
      Determine the DsaVersion number based on attributes read from the root entry.

      The current implemenation will return

      • D3 if dsaVersion starts with "d3", or else
      • D2 if vendorName contains "isode limited" or else
      • UNKNOWN
      This algorithm is correct for the initial implementation, but may change as the D3 code fills in vendorname etc.
      Parameters:
      dsaVersion - "dsaversion" value on root entry; may be null
      vendorName - "vendorname" on root entry; may be null
      vendorVersion - "vendorversion" on root entry; may be null
      Returns:
      the corresponding DsaVersion (which may be UNKNOWN)
    • getLatestDsaVersion

      public static IsodeDirectorySession.DsaVersion getLatestDsaVersion()
      Determine the latest DSA version available.
      Returns:
      dsa version