Class GenericInput
java.lang.Object
com.netscape.cms.profile.common.ProfileInput
com.netscape.cms.profile.input.EnrollInput
com.netscape.cms.profile.input.GenericInput
- All Implemented Interfaces:
IConfigTemplate
This class implements a generic input.
- Version:
- $Revision$, $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intFields inherited from class EnrollInput
logger, mConfig, mConfigNames, mProfile, mValueNamesModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected IConfigStoreprotected Profile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigDescriptor(Locale locale, String name) Returns the descriptors of configuration parameter.Retrieves the localizable name of this policy.protected intgetNum()Retrieves the localizable description of this policy.getValueDescriptor(Locale locale, String name) Retrieves the descriptor of the given value parameter by name.Returns selected value names based on the configuration.voidinit(Profile profile, IConfigStore config) Initializes this default policy.voidPopulates the request with this policy default.Methods inherited from class EnrollInput
addConfigName, addValueName, auditSubjectID, getConfig, getConfigNames, getConfigStore, getDefaultConfig, getLocale, getValue, setConfig, setValue, verifyPOPModifier and TypeMethodDescriptionvoidaddConfigName(String name) voidaddValueName(String name) protected StringSigned Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.Retrieves configuration parameter by name.Returns a list of configuration parameter names.Returns configuration store.getDefaultConfig(String name) Retrieves value from the request.voidSets configuration parameter.voidSets the value of the given value parameter by name.void
-
Field Details
-
CONFIG_NUM
- See Also:
-
CONFIG_DISPLAY_NAME
- See Also:
-
CONFIG_PARAM_NAME
- See Also:
-
CONFIG_ENABLE
- See Also:
-
DEF_NUM
public static final int DEF_NUM- See Also:
-
-
Constructor Details
-
GenericInput
public GenericInput()
-
-
Method Details
-
getNum
protected int getNum() -
init
Initializes this default policy.- Overrides:
initin classEnrollInput- Throws:
EProfileException
-
getName
Retrieves the localizable name of this policy.- Specified by:
getNamein classEnrollInput- Parameters:
locale- user locale- Returns:
- localized input name
-
getText
Retrieves the localizable description of this policy.- Specified by:
getTextin classEnrollInput- Parameters:
locale- user locale- Returns:
- localized input description
-
getValueNames
Returns selected value names based on the configuration.- Overrides:
getValueNamesin classEnrollInput- Returns:
- a list of property names
-
populate
-
getConfigDescriptor
Description copied from interface:IConfigTemplateReturns the descriptors of configuration parameter.- Specified by:
getConfigDescriptorin interfaceIConfigTemplate- Overrides:
getConfigDescriptorin classEnrollInput- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
getValueDescriptor
Retrieves the descriptor of the given value parameter by name.- Specified by:
getValueDescriptorin classEnrollInput- Parameters:
locale- user localename- property name- Returns:
- descriptor of the property
-