Package com.netscape.cms.profile.def
Class NoDefault
- java.lang.Object
-
- com.netscape.cms.profile.def.PolicyDefault
-
- com.netscape.cms.profile.def.NoDefault
-
- All Implemented Interfaces:
IConfigTemplate
public class NoDefault extends PolicyDefault
This class implements no default policy.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected IConfigStoremConfigprotected java.util.Vector<java.lang.String>mNamesprotected java.util.Vector<java.lang.String>mValuesstatic java.lang.StringPROP_NAME
-
Constructor Summary
Constructors Constructor Description NoDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfig(java.lang.String name)Retrieves configuration parameter by name.IDescriptorgetConfigDescriptor(java.util.Locale locale, java.lang.String name)Returns the descriptors of configuration parameter.java.util.Enumeration<java.lang.String>getConfigNames()Returns a list of configuration parameter names.IConfigStoregetConfigStore()Retrieves the configuration store of this default.java.lang.StringgetDefaultConfig(java.lang.String name)java.lang.StringgetName(java.util.Locale locale)Retrieves the localizable name of this policy.java.lang.StringgetText(java.util.Locale locale)Retrieves the localizable description of this policy.java.lang.StringgetValue(java.lang.String name, java.util.Locale locale, IRequest request)Retrieves the value of the given value property by name.IDescriptorgetValueDescriptor(java.util.Locale locale, java.lang.String name)Retrieves the descriptor of the given property by name.java.util.Enumeration<java.lang.String>getValueNames()Retrieves a list of names of the property.voidinit(IConfigStore config)Initializes this default policy.voidpopulate(IRequest request)Populates the request with this policy default.voidsetConfig(java.lang.String name, java.lang.String value)Sets configuration parameter.voidsetValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value)Sets the value of the given value property by name.
-
-
-
Field Detail
-
PROP_NAME
public static final java.lang.String PROP_NAME
- See Also:
- Constant Field Values
-
mValues
protected java.util.Vector<java.lang.String> mValues
-
mNames
protected java.util.Vector<java.lang.String> mNames
-
mConfig
protected IConfigStore mConfig
-
-
Method Detail
-
getConfigNames
public java.util.Enumeration<java.lang.String> getConfigNames()
Description copied from interface:IConfigTemplateReturns a list of configuration parameter names.- Returns:
- parameter names
-
getConfigDescriptor
public IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
Description copied from interface:IConfigTemplateReturns the descriptors of configuration parameter.- Parameters:
locale- user localename- configuration parameter name- Returns:
- descriptor
-
setConfig
public void setConfig(java.lang.String name, java.lang.String value) throws EPropertyExceptionDescription copied from interface:IConfigTemplateSets configuration parameter.- Parameters:
name- parameter namevalue- parameter value- Throws:
EPropertyException- failed to set parameter
-
getDefaultConfig
public java.lang.String getDefaultConfig(java.lang.String name)
-
getConfig
public java.lang.String getConfig(java.lang.String name)
Description copied from interface:IConfigTemplateRetrieves configuration parameter by name.- Returns:
- parameter
-
init
public void init(IConfigStore config) throws EProfileException
Description copied from class:PolicyDefaultInitializes this default policy.- Specified by:
initin classPolicyDefault- Parameters:
config- configuration store for this default- Throws:
EProfileException- failed to initialize
-
getConfigStore
public IConfigStore getConfigStore()
Description copied from class:PolicyDefaultRetrieves the configuration store of this default.- Specified by:
getConfigStorein classPolicyDefault- Returns:
- configuration store of this default policy
-
populate
public void populate(IRequest request) throws EProfileException
Populates the request with this policy default.- Specified by:
populatein classPolicyDefault- Parameters:
request- request to be populated- Throws:
EProfileException- failed to populate
-
getValueNames
public java.util.Enumeration<java.lang.String> getValueNames()
Description copied from class:PolicyDefaultRetrieves a list of names of the property.- Specified by:
getValueNamesin classPolicyDefault- Returns:
- a list of property names. The values are of type java.lang.String
-
getValueDescriptor
public IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Description copied from class:PolicyDefaultRetrieves the descriptor of the given property by name. The descriptor contains syntax information.- Specified by:
getValueDescriptorin classPolicyDefault- Parameters:
locale- locale of the end username- name of property- Returns:
- descriptor of the property
-
setValue
public void setValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value) throws EPropertyExceptionDescription copied from class:PolicyDefaultSets the value of the given value property by name.- Specified by:
setValuein classPolicyDefault- Parameters:
name- name of propertylocale- locale of the end userrequest- requestvalue- value to be set in the given request- Throws:
EPropertyException- failed to set property
-
getValue
public java.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request)Description copied from class:PolicyDefaultRetrieves the value of the given value property by name.- Specified by:
getValuein classPolicyDefault- Parameters:
name- name of propertylocale- locale of the end userrequest- request
-
getText
public java.lang.String getText(java.util.Locale locale)
Description copied from class:PolicyDefaultRetrieves the localizable description of this policy.- Specified by:
getTextin classPolicyDefault- Parameters:
locale- locale of the end user- Returns:
- localized description of this default policy
-
getName
public java.lang.String getName(java.util.Locale locale)
Description copied from class:PolicyDefaultRetrieves the localizable name of this policy.- Specified by:
getNamein classPolicyDefault- Parameters:
locale- locale of the end user- Returns:
- localized name of this default policy
-
-