Package com.netscape.cms.profile.output
Class EnrollOutput
java.lang.Object
com.netscape.cms.profile.common.ProfileOutput
com.netscape.cms.profile.output.EnrollOutput
- All Implemented Interfaces:
IConfigTemplate
- Direct Known Subclasses:
CertOutput
,nsNKeyOutput
,PKCS12Output
This class implements the basic enrollment output.
- Version:
- $Revision$, $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValueName
(String name) Retrieves configuration parameter by name.getConfigDescriptor
(Locale locale, String name) Returns the descriptors of configuration parameter.Returns a list of configuration parameter names.Retrieves configuration store.getDefaultConfig
(String name) abstract String
Retrieves the localizable name of this policy.abstract String
Retrieves the localizable description of this policy.Retrieves the value of the given value parameter by name.abstract IDescriptor
getValueDescriptor
(Locale locale, String name) Retrieves the descriptor of the given value parameter by name.Retrieves a list of names of the value parameter.void
init
(ConfigStore config) Initializes this default policy.abstract void
Populates the request with this policy default.void
Sets configuration parameter.void
Sets the value of the given value parameter by name.
-
Field Details
-
mConfigNames
-
-
Constructor Details
-
EnrollOutput
public EnrollOutput()
-
-
Method Details
-
init
Initializes this default policy.- Specified by:
init
in classProfileOutput
- Parameters:
config
- configuration store- Throws:
EProfileException
- failed to initialize
-
getConfigStore
Description copied from class:ProfileOutput
Retrieves configuration store.- Specified by:
getConfigStore
in classProfileOutput
- Returns:
- configuration store
-
addValueName
-
populate
Populates the request with this policy default.- Specified by:
populate
in classProfileOutput
- Parameters:
ctx
- profile contextrequest
- request- Throws:
EProfileException
- failed to populate
-
getValueDescriptor
Retrieves the descriptor of the given value parameter by name.- Specified by:
getValueDescriptor
in classProfileOutput
- Parameters:
locale
- user localename
- property name- Returns:
- property descriptor
-
getName
Retrieves the localizable name of this policy.- Specified by:
getName
in classProfileOutput
- Parameters:
locale
- user locale- Returns:
- output policy name
-
getText
Retrieves the localizable description of this policy.- Specified by:
getText
in classProfileOutput
- Parameters:
locale
- user locale- Returns:
- output policy description
-
getValueNames
Retrieves a list of names of the value parameter.- Specified by:
getValueNames
in classProfileOutput
- Returns:
- a list of property names
-
getValue
Description copied from class:ProfileOutput
Retrieves the value of the given value parameter by name.- Specified by:
getValue
in classProfileOutput
- Parameters:
name
- property namelocale
- user localerequest
- request- Returns:
- property value
- Throws:
EProfileException
- failed to retrieve value
-
setValue
public void setValue(String name, Locale locale, Request request, String value) throws EPropertyException Sets the value of the given value parameter by name.- Specified by:
setValue
in classProfileOutput
- Parameters:
name
- property namelocale
- user localerequest
- requestvalue
- property value- Throws:
EPropertyException
-
getConfigNames
Description copied from interface:IConfigTemplate
Returns a list of configuration parameter names.- Returns:
- parameter names
-
getConfigDescriptor
Description copied from interface:IConfigTemplate
Returns the descriptors of configuration parameter.- Parameters:
locale
- user localename
- configuration parameter name- Returns:
- descriptor
-
setConfig
Description copied from interface:IConfigTemplate
Sets configuration parameter.- Parameters:
name
- parameter namevalue
- parameter value- Throws:
EPropertyException
- failed to set parameter
-
getConfig
Description copied from interface:IConfigTemplate
Retrieves configuration parameter by name.- Returns:
- parameter
-
getDefaultConfig
-