Package com.pingidentity.sources
Class SourceDescriptor
java.lang.Object
com.pingidentity.sdk.PluginDescriptor
com.pingidentity.sources.SourceDescriptor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CustomDataSourceDriverDescriptor
This class returns metadata describing a ConfigurableDriver to the PingFederate server.
The metadata is used by PingFederate to generate a dynamic UI that allows the user to
interact with the driver.
-
Field Summary
Fields inherited from class com.pingidentity.sdk.PluginDescriptor
UNDEFINED -
Constructor Summary
ConstructorsConstructorDescriptionSourceDescriptor(ConfigurableDriver driver, String type) Creates a new SourceDescriptor with no custom GUI configuration screen.SourceDescriptor(ConfigurableDriver driver, String type, AdapterConfigurationGuiDescriptor adapterConfigurationGuiDesc) Creates a new SourceDescriptor with a custom GUI configuration screen. -
Method Summary
Modifier and TypeMethodDescriptionGets theAdapterConfigurationGuiDescriptorfor the driver that this object describes.Gets the class name of driver associated with this SourceDescriptor.booleanChecks if theAdapterConfigurationGuiDescriptorhas actions.Methods inherited from class com.pingidentity.sdk.PluginDescriptor
equals, getAttributeContractSet, getGuiConfigDescriptor, getGuiConfigDescriptorBuilder, getMetadata, getPluginClassName, getType, getVersion, hashCode, isSupportsExtendedContract, setAttributeContactSet, setAttributeContractSet, setMetadata, setSupportsExtendedContract
-
Constructor Details
-
SourceDescriptor
Creates a new SourceDescriptor with no custom GUI configuration screen.- Parameters:
driver- Driver implementation this descriptor describes.type- the type of the adapter is the 'friendly' name that will show up in the PF GUI - usually in the context of selecting from a number of available adapters. A relatively descriptive and unique name should be used.
-
SourceDescriptor
public SourceDescriptor(ConfigurableDriver driver, String type, AdapterConfigurationGuiDescriptor adapterConfigurationGuiDesc) Creates a new SourceDescriptor with a custom GUI configuration screen.- Parameters:
driver- the driver implementation this descriptor describes.type- the type of the driver is the 'friendly' name that will show up in the PF GUI - usually in the context of selecting from a number of available drivers. A relatively descriptive and unique name should be used.adapterConfigurationGuiDesc- a descriptor object that tells PingFederate how to render the configuration screen(s) for the driver this object describes as well as how to validate the input from the front end.
-
-
Method Details
-
getDriverClassName
Gets the class name of driver associated with this SourceDescriptor.- Returns:
- the classname as a String.
-
getConfigurationGuiDescriptor
Gets theAdapterConfigurationGuiDescriptorfor the driver that this object describes.- Returns:
- the GUI descriptor of the driver that this object describes.
-
hasActions
public boolean hasActions()Checks if theAdapterConfigurationGuiDescriptorhas actions.- Returns:
- true if the driver has actions
-