Class PingOneEnvironmentFieldDescriptor

All Implemented Interfaces:
Serializable

public class PingOneEnvironmentFieldDescriptor extends FilterableSelectionFieldDescriptor
A filterable dropdown control that enables the selection of a PingOne connection and corresponding environment in a way that's user friendly and scalable. It is recommended to use the PingOneEnvironmentValidator class to validate this descriptor.

The selected field value is stored in the following format: connectionId|environmentId
Since:
10.2
See Also:
  • Constructor Details

    • PingOneEnvironmentFieldDescriptor

      public PingOneEnvironmentFieldDescriptor(String name, String description)
      Creates a new PingOneEnvironmentFieldDescriptor.
      Parameters:
      name - the field name
      description - a helpful description of the field
  • Method Details

    • getSearchableTypes

      Description copied from class: FilterableSelectionFieldDescriptor
      Gets the list of search type configurations of a FilterableSelectionFieldDescriptor instance.
      Specified by:
      getSearchableTypes in class FilterableSelectionFieldDescriptor
      Returns:
      a list of search type configuration supported by this filterable selection field descriptor
    • getSelectedDisplayName

      public String getSelectedDisplayName(String valueForStorage)
      Description copied from class: FilterableSelectionFieldDescriptor
      Gets the display string value of a stored value returned by parseSelectedValueForStorage.
           For example, when a unique OAuth client ID is returned by parseSelectedValueForStorage, instead of using the
           client ID as the display string, a FilterableSelectionFieldDescriptor implementation may opt to display the
           corresponding client name of client ID instead, possibly obtained through data store query.
       
      Overrides:
      getSelectedDisplayName in class FilterableSelectionFieldDescriptor
      Parameters:
      valueForStorage - typically an unique ID of a data object, e.g. a connection (system) ID, an adapter ID, or an OAuth client ID etc.
      Returns:
      drop-down box display value for the selected item
    • getConnectionId

      public static String getConnectionId(String fieldValue)
      Obtains the connection ID from the stored field value.
      Parameters:
      fieldValue - The stored field value.
      Returns:
      The connection ID, or null if the fieldValue is incorrectly formatted.
    • getEnvironmentId

      public static String getEnvironmentId(String fieldValue)
      Obtains the PingOne environment ID from the stored field value.
      Parameters:
      fieldValue - The stored field value.
      Returns:
      The environment ID, or null if the fieldValue is incorrectly formatted.