Package org.sourceid.saml20.adapter.gui
Class OAuthScopeSelectionFieldDescriptor
- java.lang.Object
-
- org.sourceid.saml20.adapter.gui.FieldDescriptor
-
- org.sourceid.saml20.adapter.gui.FilterableSelectionFieldDescriptor
-
- org.sourceid.saml20.adapter.gui.OAuthScopeSelectionFieldDescriptor
-
- All Implemented Interfaces:
Serializable
public class OAuthScopeSelectionFieldDescriptor extends FilterableSelectionFieldDescriptor
A filterable dropdown control that enables the selection of OAuth scopes in a way that's user-friendly and scalable.- Since:
- 12.1
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FilterableSelectionFieldDescriptor
FilterableSelectionFieldDescriptor.FilterableSelectionFieldDefaultValidator, FilterableSelectionFieldDescriptor.QueryParam, FilterableSelectionFieldDescriptor.SearchableType, FilterableSelectionFieldDescriptor.SearchableTypeConfig
-
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMON_SCOPE_GROUP_SUFFIXstatic StringCOMMON_SCOPE_SUFFIXstatic StringEXCLUSIVE_SCOPE_GROUP_SUFFIXstatic StringEXCLUSIVE_SCOPE_SUFFIX-
Fields inherited from class org.sourceid.saml20.adapter.gui.FilterableSelectionFieldDescriptor
SELECTED_VALUE_DELIMITER, STORAGE_KEY_DELIMITER
-
-
Constructor Summary
Constructors Constructor Description OAuthScopeSelectionFieldDescriptor(String name, String description)Creates a new OAuthScopeSelectionFieldDescriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FilterableSelectionFieldDescriptor.SearchableTypeConfig>getSearchableTypes()Gets the list of search type configurations of a FilterableSelectionFieldDescriptor instance.StringgetSelectedDisplayName(String valueForStorage)Gets the display string value of a stored value returned by parseSelectedValueForStorage.static StringstorageKeyToScopeName(String storageKey)Returns the scope name from the storage key value.-
Methods inherited from class org.sourceid.saml20.adapter.gui.FilterableSelectionFieldDescriptor
getFormattedValue, isValidFormat, parseSelectedValueForStorage
-
Methods inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
addValidator, addValidator, getDefaultForLegacyConfig, getDefaultValue, getDescription, getLabel, getName, getValidationChain, isHidden, setDefaultForLegacyConfig, setDefaultValue, setHidden, setLabel
-
-
-
-
Field Detail
-
COMMON_SCOPE_SUFFIX
public static final String COMMON_SCOPE_SUFFIX
- See Also:
- Constant Field Values
-
COMMON_SCOPE_GROUP_SUFFIX
public static final String COMMON_SCOPE_GROUP_SUFFIX
- See Also:
- Constant Field Values
-
EXCLUSIVE_SCOPE_SUFFIX
public static final String EXCLUSIVE_SCOPE_SUFFIX
- See Also:
- Constant Field Values
-
EXCLUSIVE_SCOPE_GROUP_SUFFIX
public static final String EXCLUSIVE_SCOPE_GROUP_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSearchableTypes
public List<FilterableSelectionFieldDescriptor.SearchableTypeConfig> getSearchableTypes()
Description copied from class:FilterableSelectionFieldDescriptorGets the list of search type configurations of a FilterableSelectionFieldDescriptor instance.- Specified by:
getSearchableTypesin classFilterableSelectionFieldDescriptor- Returns:
- a list of search type configuration supported by this filterable selection field descriptor
-
getSelectedDisplayName
public String getSelectedDisplayName(String valueForStorage)
Description copied from class:FilterableSelectionFieldDescriptorGets 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:
getSelectedDisplayNamein classFilterableSelectionFieldDescriptor- 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
-
-