Package org.ametys.core.authentication
Class DefaultCredentialProviderModel
- java.lang.Object
-
- org.ametys.core.authentication.DefaultCredentialProviderModel
-
- All Implemented Interfaces:
CredentialProviderModel
public class DefaultCredentialProviderModel extends Object implements CredentialProviderModel
Default implementation ofCredentialProviderModel
-
-
Field Summary
Fields Modifier and Type Field Description private String_colorprivate I18nizableText_connectionLabelprivate Class<CredentialProvider>_cpClassprivate Configuration_cpConfigprivate I18nizableText_descriptionprivate String_iconDecoratorprivate String_iconGlyphprivate String_iconLargeprivate String_iconMediumprivate String_iconSmallprivate String_idprivate I18nizableText_labelprivate Map<String,? extends ItemCheckerDescriptor>_parameterCheckersprivate Map<String,? extends ElementDefinition>_parametersprivate String_pluginName
-
Constructor Summary
Constructors Constructor Description DefaultCredentialProviderModel(String id, Class<CredentialProvider> udClass, Configuration cpConfig, I18nizableText label, I18nizableText description, I18nizableText connectionLabel, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge, String color, Map<String,? extends ElementDefinition> parameters, Map<String,? extends ItemCheckerDescriptor> parameterCheckers, String pluginName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColor()Get the color of the credential providerI18nizableTextgetConnectionLabel()Get the label for the connection screen of the credential providerClass<CredentialProvider>getCredentialProviderClass()Get the credential provider classConfigurationgetCredentialProviderConfiguration()Get the additional configuration for the implementation ofCredentialProviderI18nizableTextgetDescription()Get the description text of the credential provider.StringgetIconDecorator()Get the CSS class for the glyph decorator iconStringgetIconGlyph()Get the CSS class for the glyph iconStringgetIconLarge()Get the path of the small icon resourceStringgetIconMedium()Get the path of the small icon resourceStringgetIconSmall()Get the path of the small icon resourceStringgetId()Get the id of this credential providerI18nizableTextgetLabel()Get the label of the credential provider.Map<String,? extends ItemCheckerDescriptor>getParameterCheckers()Get the configuration parameter checkersMap<String,? extends ElementDefinition>getParameters()Get the configuration parametersStringgetPluginName()Returns the plugin name of declaration (for debug purpose)
-
-
-
Field Detail
-
_cpClass
private Class<CredentialProvider> _cpClass
-
_cpConfig
private Configuration _cpConfig
-
_label
private I18nizableText _label
-
_description
private I18nizableText _description
-
_connectionLabel
private I18nizableText _connectionLabel
-
_iconGlyph
private String _iconGlyph
-
_iconDecorator
private String _iconDecorator
-
_iconSmall
private String _iconSmall
-
_iconMedium
private String _iconMedium
-
_iconLarge
private String _iconLarge
-
_parameters
private Map<String,? extends ElementDefinition> _parameters
-
_parameterCheckers
private Map<String,? extends ItemCheckerDescriptor> _parameterCheckers
-
_pluginName
private String _pluginName
-
-
Constructor Detail
-
DefaultCredentialProviderModel
public DefaultCredentialProviderModel(String id, Class<CredentialProvider> udClass, Configuration cpConfig, I18nizableText label, I18nizableText description, I18nizableText connectionLabel, String iconGlyph, String iconDecorator, String iconSmall, String iconMedium, String iconLarge, String color, Map<String,? extends ElementDefinition> parameters, Map<String,? extends ItemCheckerDescriptor> parameterCheckers, String pluginName)
Constructor- Parameters:
id- The unique identifier of this credential provider modeludClass- TheCredentialProviderclasscpConfig- Additional configuration forCredentialProviderclass. Can be empty.label- The i18n labeldescription- The i18n descriptionconnectionLabel- The i18n label for the connection screeniconGlyph- The CSS class for glyph iconiconDecorator- The CSS class for glyph decorator iconiconSmall- The path of the small icon resourceiconMedium- The path of the medium icon resourceiconLarge- The path of the large icon resourcecolor- The string representation of the color which will be used for the button in the connection screenparameters- The parametersparameterCheckers- the parameter checkerspluginName- The plugin's name of declaration (for debug purpose)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:CredentialProviderModelGet the id of this credential provider- Specified by:
getIdin interfaceCredentialProviderModel- Returns:
- the id of this credential provider
-
getLabel
public I18nizableText getLabel()
Description copied from interface:CredentialProviderModelGet the label of the credential provider.- Specified by:
getLabelin interfaceCredentialProviderModel- Returns:
- the label of the credential provider
-
getDescription
public I18nizableText getDescription()
Description copied from interface:CredentialProviderModelGet the description text of the credential provider.- Specified by:
getDescriptionin interfaceCredentialProviderModel- Returns:
- the description of the credential provider
-
getConnectionLabel
public I18nizableText getConnectionLabel()
Description copied from interface:CredentialProviderModelGet the label for the connection screen of the credential provider- Specified by:
getConnectionLabelin interfaceCredentialProviderModel- Returns:
- the label for the connection screen of the credential provider
-
getIconGlyph
public String getIconGlyph()
Description copied from interface:CredentialProviderModelGet the CSS class for the glyph icon- Specified by:
getIconGlyphin interfaceCredentialProviderModel- Returns:
- the CSS class for the glyph icon
-
getIconDecorator
public String getIconDecorator()
Description copied from interface:CredentialProviderModelGet the CSS class for the glyph decorator icon- Specified by:
getIconDecoratorin interfaceCredentialProviderModel- Returns:
- the CSS class for the glyph decorator icon
-
getIconSmall
public String getIconSmall()
Description copied from interface:CredentialProviderModelGet the path of the small icon resource- Specified by:
getIconSmallin interfaceCredentialProviderModel- Returns:
- the path of the small icon resource
-
getIconMedium
public String getIconMedium()
Description copied from interface:CredentialProviderModelGet the path of the small icon resource- Specified by:
getIconMediumin interfaceCredentialProviderModel- Returns:
- the path of the small icon resource
-
getIconLarge
public String getIconLarge()
Description copied from interface:CredentialProviderModelGet the path of the small icon resource- Specified by:
getIconLargein interfaceCredentialProviderModel- Returns:
- the path of the small icon resource
-
getColor
public String getColor()
Description copied from interface:CredentialProviderModelGet the color of the credential provider- Specified by:
getColorin interfaceCredentialProviderModel- Returns:
- the color of the credential provider
-
getParameters
public Map<String,? extends ElementDefinition> getParameters()
Description copied from interface:CredentialProviderModelGet the configuration parameters- Specified by:
getParametersin interfaceCredentialProviderModel- Returns:
- The configuration parameters
-
getParameterCheckers
public Map<String,? extends ItemCheckerDescriptor> getParameterCheckers()
Description copied from interface:CredentialProviderModelGet the configuration parameter checkers- Specified by:
getParameterCheckersin interfaceCredentialProviderModel- Returns:
- The configuration parameter checkers
-
getPluginName
public String getPluginName()
Description copied from interface:CredentialProviderModelReturns the plugin name of declaration (for debug purpose)- Specified by:
getPluginNamein interfaceCredentialProviderModel- Returns:
- the plugin name
-
getCredentialProviderClass
public Class<CredentialProvider> getCredentialProviderClass()
Description copied from interface:CredentialProviderModelGet the credential provider class- Specified by:
getCredentialProviderClassin interfaceCredentialProviderModel- Returns:
- the credential provider class
-
getCredentialProviderConfiguration
public Configuration getCredentialProviderConfiguration()
Description copied from interface:CredentialProviderModelGet the additional configuration for the implementation ofCredentialProvider- Specified by:
getCredentialProviderConfigurationin interfaceCredentialProviderModel- Returns:
- the additional configuration.
-
-