public class NoDefault extends java.lang.Object implements IPolicyDefault
Modifier and Type | Field and Description |
---|---|
protected IConfigStore |
mConfig |
protected java.util.Vector |
mNames |
protected java.util.Vector |
mValues |
static java.lang.String |
PROP_NAME |
Constructor and Description |
---|
NoDefault() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String PROP_NAME
protected java.util.Vector mValues
protected java.util.Vector mNames
protected IConfigStore mConfig
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 namepublic void setConfig(java.lang.String name, java.lang.String value) throws EPropertyException
IConfigTemplate
setConfig
in interface IConfigTemplate
name
- parameter namevalue
- parameter valueEPropertyException
- 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 defaultEProfileException
- 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 populatedEProfileException
- 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 propertypublic 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 requestEPropertyException
- 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 userpublic java.lang.String getName(java.util.Locale locale)
IPolicyDefault
getName
in interface IPolicyDefault
locale
- locale of the end user