Package org.sourceid.saml20.adapter.gui
Class FilterableSelectionFieldDescriptor.SearchableType
- java.lang.Object
-
- org.sourceid.saml20.adapter.gui.FilterableSelectionFieldDescriptor.SearchableType
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FilterableSelectionFieldDescriptor
public static class FilterableSelectionFieldDescriptor.SearchableType extends Object implements Serializable
A SearchableType class defines the Admin API attributes and end-point used to query data.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilterableSelectionFieldDescriptor.SearchableType.SearchableTypeNotFoundThrown when an unknown tab title is specified.
-
Field Summary
Fields Modifier and Type Field Description static FilterableSelectionFieldDescriptor.SearchableTypeAUTHN_POLICY_CONTRACTAdmin API end-point for querying authentication policy contracts.static FilterableSelectionFieldDescriptor.SearchableTypeIDP_ADAPTERAdmin API end-point for querying configured IdP adapter instances.static FilterableSelectionFieldDescriptor.SearchableTypeIDP_CONNECTIONAdmin API end-point for querying OIDC, WS-Fed, SAML1.0, SAML1.1 and SAML 2.0 IdP connections.static FilterableSelectionFieldDescriptor.SearchableTypeLOCAL_IDENTITY_PROFILEAdmin API end-point for querying configured local identity profiles.static FilterableSelectionFieldDescriptor.SearchableTypeOAUTH_CLIENTAdmin API end-point for querying OAuth clients.static FilterableSelectionFieldDescriptor.SearchableTypeOAUTH_COMMON_SCOPEAdmin API end-point for querying OAuth common scopes.static FilterableSelectionFieldDescriptor.SearchableTypeOAUTH_COMMON_SCOPE_GROUPAdmin API end-point for querying OAuth common scope groups.static FilterableSelectionFieldDescriptor.SearchableTypeOAUTH_EXCLUSIVE_SCOPEAdmin API end-point for querying OAuth exclusive scopes.static FilterableSelectionFieldDescriptor.SearchableTypeOAUTH_EXCLUSIVE_SCOPE_GROUPAdmin API end-point for querying OAuth exclusive scope groups.static FilterableSelectionFieldDescriptor.SearchableTypePOLICY_FRAGMENTAdmin API end-point for querying configured policy fragments.static FilterableSelectionFieldDescriptor.SearchableTypeSELECTORAdmin API end-point for querying configured authentication selector instances.static FilterableSelectionFieldDescriptor.SearchableTypeSP_ADAPTERAdmin API end-point for querying configured SP adapter instances.static FilterableSelectionFieldDescriptor.SearchableTypeSP_CONNECTIONAdmin API end-point for querying WS-Fed, WS-Trust, SAML1.0, SAML1.1 and SAML 2.0 SP connections.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilterableSelectionFieldDescriptor.SearchableTypefromTabTitle(String title)Lookup the SearchableType Enum based on the associated tab title.static StringgetApiPrefix()Gets the API prefix of a SearchableType.StringgetDisplayNameField()Gets the API display name field of a SearchableType.StringgetEndpoint()Gets the API end-point of a SearchableType.StringgetIdField()Gets the API ID field name of a SearchableType.StringgetTabTitle()Gets the tab title of a SearchableType.Stringname()Gets the name of SearchableType.
-
-
-
Field Detail
-
IDP_CONNECTION
public static final FilterableSelectionFieldDescriptor.SearchableType IDP_CONNECTION
Admin API end-point for querying OIDC, WS-Fed, SAML1.0, SAML1.1 and SAML 2.0 IdP connections.
-
SP_CONNECTION
public static final FilterableSelectionFieldDescriptor.SearchableType SP_CONNECTION
Admin API end-point for querying WS-Fed, WS-Trust, SAML1.0, SAML1.1 and SAML 2.0 SP connections.
-
IDP_ADAPTER
public static final FilterableSelectionFieldDescriptor.SearchableType IDP_ADAPTER
Admin API end-point for querying configured IdP adapter instances.
-
SP_ADAPTER
public static final FilterableSelectionFieldDescriptor.SearchableType SP_ADAPTER
Admin API end-point for querying configured SP adapter instances.
-
OAUTH_CLIENT
public static final FilterableSelectionFieldDescriptor.SearchableType OAUTH_CLIENT
Admin API end-point for querying OAuth clients.
-
OAUTH_COMMON_SCOPE
public static final FilterableSelectionFieldDescriptor.SearchableType OAUTH_COMMON_SCOPE
Admin API end-point for querying OAuth common scopes.
-
OAUTH_COMMON_SCOPE_GROUP
public static final FilterableSelectionFieldDescriptor.SearchableType OAUTH_COMMON_SCOPE_GROUP
Admin API end-point for querying OAuth common scope groups.
-
OAUTH_EXCLUSIVE_SCOPE
public static final FilterableSelectionFieldDescriptor.SearchableType OAUTH_EXCLUSIVE_SCOPE
Admin API end-point for querying OAuth exclusive scopes.
-
OAUTH_EXCLUSIVE_SCOPE_GROUP
public static final FilterableSelectionFieldDescriptor.SearchableType OAUTH_EXCLUSIVE_SCOPE_GROUP
Admin API end-point for querying OAuth exclusive scope groups.
-
AUTHN_POLICY_CONTRACT
public static final FilterableSelectionFieldDescriptor.SearchableType AUTHN_POLICY_CONTRACT
Admin API end-point for querying authentication policy contracts.
-
SELECTOR
public static final FilterableSelectionFieldDescriptor.SearchableType SELECTOR
Admin API end-point for querying configured authentication selector instances.
-
LOCAL_IDENTITY_PROFILE
public static final FilterableSelectionFieldDescriptor.SearchableType LOCAL_IDENTITY_PROFILE
Admin API end-point for querying configured local identity profiles.
-
POLICY_FRAGMENT
public static final FilterableSelectionFieldDescriptor.SearchableType POLICY_FRAGMENT
Admin API end-point for querying configured policy fragments.
-
-
Constructor Detail
-
SearchableType
public SearchableType(String name, String tabTitle, String endpoint, String idField, String displayNameField)
These types define the parameters that will get used in the selection.js file for dynamic searching in the admin console.- Parameters:
tabTitle- - The will display as the tab title in the UI (Header to click on). MUST BE UNIQUEendpoint- - The endpoint the javascript will make GET requests to get items to display.idField- - This is the field in the JSON that gets returned that the javascript should use as the identifier. When the form is submitted, the value will be TYPE-idFielddisplayNameField- - This is the field in the JSON that should be used as a display name in the UI. idField could often be the string to display in the UI, however, this parameter can be used to display something different.
-
-
Method Detail
-
getApiPrefix
public static String getApiPrefix()
Gets the API prefix of a SearchableType.- Returns:
- the Admin API prefix
-
getEndpoint
public String getEndpoint()
Gets the API end-point of a SearchableType.- Returns:
- the Admin API end-point
-
getIdField
public String getIdField()
Gets the API ID field name of a SearchableType.- Returns:
- the Admin API field used to uniquely identify a particular searchable data object in its corresponding Admin API end point
-
getDisplayNameField
public String getDisplayNameField()
Gets the API display name field of a SearchableType.- Returns:
- the Admin API field used to name a particular searchable data object (may not be unique) in its corresponding Admin API end point
-
getTabTitle
public String getTabTitle()
Gets the tab title of a SearchableType.- Returns:
- the tab title displayed in the filterable drop-down menu
-
name
public String name()
Gets the name of SearchableType. Added for backwards compatibility due to changing SearchableType from an enum to a class.- Returns:
- the name of the SearchableType
-
fromTabTitle
public static FilterableSelectionFieldDescriptor.SearchableType fromTabTitle(String title) throws FilterableSelectionFieldDescriptor.SearchableType.SearchableTypeNotFound
Lookup the SearchableType Enum based on the associated tab title.- Parameters:
title- tab title in the UI (Header to click on) for selecting a particular SearchableType (i.e. Admin API end point)- Returns:
- SearchableType corresponding to specified title
- Throws:
FilterableSelectionFieldDescriptor.SearchableType.SearchableTypeNotFound- thrown when an unknown tab title is specified
-
-