public class PolicyContractFieldDescriptor extends FilterableSelectionFieldDescriptor
FilterableSelectionFieldDescriptor.FilterableSelectionFieldDefaultValidator, FilterableSelectionFieldDescriptor.QueryParam, FilterableSelectionFieldDescriptor.SearchableType, FilterableSelectionFieldDescriptor.SearchableTypeConfig
FieldDescriptor.FieldValidationWrapper
Modifier and Type | Field and Description |
---|---|
static String |
DESC_FIELD_POLICY_CONTRACT |
static String |
FIELD_POLICY_CONTRACT |
SELECTED_VALUE_DELIMITER, STORAGE_KEY_DELIMITER
Constructor and Description |
---|
PolicyContractFieldDescriptor(String name,
String description)
Creates a new PolicyContractFieldDescriptor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFormattedValue(String value)
Gets the formatted value, by default returns the same string value returned by getSelectedDisplayName.
|
List<FilterableSelectionFieldDescriptor.SearchableTypeConfig> |
getSearchableTypes()
Gets the list of search type configurations of a FilterableSelectionFieldDescriptor instance.
|
String |
getSelectedDisplayName(String valueForStorage)
Gets the display string value of a stored value returned by parseSelectedValueForStorage.
|
String |
parseSelectedValueForStorage(String selectedValue)
Parses the selected value of the filterable drop-down menu for storage.
|
isValidFormat
addValidator, addValidator, getDefaultForLegacyConfig, getDefaultValue, getDescription, getLabel, getName, getValidationChain, setDefaultForLegacyConfig, setDefaultValue, setLabel
public static final String DESC_FIELD_POLICY_CONTRACT
public static final String FIELD_POLICY_CONTRACT
public String parseSelectedValueForStorage(String selectedValue)
FilterableSelectionFieldDescriptor
parseSelectedValueForStorage
in class FilterableSelectionFieldDescriptor
selectedValue
- selected value of the filterable drop-down menu, following the format "[search type tab title]-[selected entry ID]"
NOTE: The search type tab title part is only useful when the filterable selection field descriptor implementation supports multiple search types, so for implementation that supports only one search type, the tab title may be parsed out and discarded. For example, for the selected value, 'OAuth Clients-sampleOAuthClient', where 'OAuth Clients' is the search type tab title and 'sampleOAuthClient' is the unique OAuth client ID that may be used to retrieve an OAuth client data object from a data store, a FilterableSelectionFieldDescriptor implementation that only supports searches over OAuth clients may have no reason to keep track of the search type, so the tab title 'OAuth Clients' may be discarded.
public List<FilterableSelectionFieldDescriptor.SearchableTypeConfig> getSearchableTypes()
FilterableSelectionFieldDescriptor
getSearchableTypes
in class FilterableSelectionFieldDescriptor
public String getSelectedDisplayName(String valueForStorage)
FilterableSelectionFieldDescriptor
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.
getSelectedDisplayName
in class FilterableSelectionFieldDescriptor
valueForStorage
- typically an unique ID of a data object, e.g. a connection (system) ID, an adapter ID, or an OAuth client ID etc.public String getFormattedValue(String value)
FilterableSelectionFieldDescriptor
getFormattedValue
in class FilterableSelectionFieldDescriptor
value
- typically an unique ID of a data object, e.g. a connection ID, an adapter ID, or an OAuth client ID etc.Copyright 2019 Ping Identity Corp. All rights reserved.