public class NoDefault extends java.lang.Object implements IPolicyDefault
| Modifier and Type | Field and Description |
|---|---|
protected IConfigStore |
mConfig |
protected java.util.Vector<java.lang.String> |
mNames |
protected java.util.Vector<java.lang.String> |
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<java.lang.String> |
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<java.lang.String> |
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<java.lang.String> mValues
protected java.util.Vector<java.lang.String> mNames
protected IConfigStore mConfig
public java.util.Enumeration<java.lang.String> getConfigNames()
IConfigTemplategetConfigNames in interface IConfigTemplatepublic IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
IConfigTemplategetConfigDescriptor in interface IConfigTemplatelocale - user localename - configuration parameter namepublic void setConfig(java.lang.String name,
java.lang.String value)
throws EPropertyException
IConfigTemplatesetConfig in interface IConfigTemplatename - 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)
IConfigTemplategetConfig in interface IConfigTemplatepublic void init(IProfile profile, IConfigStore config) throws EProfileException
IPolicyDefaultinit in interface IPolicyDefaultprofile - owner of this default policyconfig - configuration store for this defaultEProfileException - failed to initializepublic IConfigStore getConfigStore()
IPolicyDefaultgetConfigStore in interface IPolicyDefaultpublic void populate(IRequest request) throws EProfileException
populate in interface IPolicyDefaultrequest - request to be populatedEProfileException - failed to populatepublic java.util.Enumeration<java.lang.String> getValueNames()
IPolicyDefaultgetValueNames in interface IPolicyDefaultpublic IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
IPolicyDefaultgetValueDescriptor in interface IPolicyDefaultlocale - 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
IPolicyDefaultsetValue in interface IPolicyDefaultname - 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)
IPolicyDefaultgetValue in interface IPolicyDefaultname - name of propertylocale - locale of the end userrequest - requestpublic java.lang.String getText(java.util.Locale locale)
IPolicyDefaultgetText in interface IPolicyDefaultlocale - locale of the end userpublic java.lang.String getName(java.util.Locale locale)
IPolicyDefaultgetName in interface IPolicyDefaultlocale - locale of the end user