|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.profile.def.NoDefault
public class NoDefault
This class implements no default policy.
Field Summary | |
---|---|
protected IConfigStore |
mConfig
|
protected java.util.Vector |
mNames
|
protected java.util.Vector |
mValues
|
static java.lang.String |
PROP_NAME
|
Constructor Summary | |
---|---|
NoDefault()
|
Method Summary | |
---|---|
java.lang.String |
getConfig(java.lang.String name)
Retrieves configuration parameter by name. |
IDescriptor |
getConfigDescriptor(java.util.Locale locale,
java.lang.String name)
Returns the descriptors of configuration parameter. |
java.util.Enumeration |
getConfigNames()
Returns a list of configuration parameter names. |
IConfigStore |
getConfigStore()
Retrieves the configuration store of this default. |
java.lang.String |
getDefaultConfig(java.lang.String name)
|
java.lang.String |
getName(java.util.Locale locale)
Retrieves the localizable name of this policy. |
java.lang.String |
getText(java.util.Locale locale)
Retrieves the localizable description of this policy. |
java.lang.String |
getValue(java.lang.String name,
java.util.Locale locale,
IRequest request)
Retrieves the value of the given value property by name. |
IDescriptor |
getValueDescriptor(java.util.Locale locale,
java.lang.String name)
Retrieves the descriptor of the given property by name. |
java.util.Enumeration |
getValueNames()
Retrieves a list of names of the property. |
void |
init(IProfile profile,
IConfigStore config)
Initializes this default policy. |
void |
populate(IRequest request)
Populates the request with this policy default. |
void |
setConfig(java.lang.String name,
java.lang.String value)
Sets configuration parameter. |
void |
setValue(java.lang.String name,
java.util.Locale locale,
IRequest request,
java.lang.String value)
Sets the value of the given value property by name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_NAME
protected java.util.Vector mValues
protected java.util.Vector mNames
protected IConfigStore mConfig
Constructor Detail |
---|
public NoDefault()
Method Detail |
---|
public java.util.Enumeration getConfigNames()
IConfigTemplate
getConfigNames
in interface IConfigTemplate
public IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplate
getConfigDescriptor
in interface IConfigTemplate
locale
- user localename
- configuration parameter name
public void setConfig(java.lang.String name, java.lang.String value) throws EPropertyException
IConfigTemplate
setConfig
in interface IConfigTemplate
name
- parameter namevalue
- parameter value
EPropertyException
- failed to set parameterpublic java.lang.String getDefaultConfig(java.lang.String name)
public java.lang.String getConfig(java.lang.String name)
IConfigTemplate
getConfig
in interface IConfigTemplate
public void init(IProfile profile, IConfigStore config) throws EProfileException
IPolicyDefault
init
in interface IPolicyDefault
profile
- owner of this default policyconfig
- configuration store for this default
EProfileException
- failed to initializepublic IConfigStore getConfigStore()
IPolicyDefault
getConfigStore
in interface IPolicyDefault
public void populate(IRequest request) throws EProfileException
populate
in interface IPolicyDefault
request
- request to be populated
EProfileException
- failed to populatepublic java.util.Enumeration getValueNames()
IPolicyDefault
getValueNames
in interface IPolicyDefault
public IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
IPolicyDefault
getValueDescriptor
in interface IPolicyDefault
locale
- locale of the end username
- name of property
public void setValue(java.lang.String name, java.util.Locale locale, IRequest request, java.lang.String value) throws EPropertyException
IPolicyDefault
setValue
in interface IPolicyDefault
name
- name of propertylocale
- locale of the end userrequest
- requestvalue
- value to be set in the given request
EPropertyException
- failed to set propertypublic java.lang.String getValue(java.lang.String name, java.util.Locale locale, IRequest request)
IPolicyDefault
getValue
in interface IPolicyDefault
name
- name of propertylocale
- locale of the end userrequest
- requestpublic java.lang.String getText(java.util.Locale locale)
IPolicyDefault
getText
in interface IPolicyDefault
locale
- locale of the end user
public java.lang.String getName(java.util.Locale locale)
IPolicyDefault
getName
in interface IPolicyDefault
locale
- locale of the end user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |