|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.portal.provider.v1.NameValuePersonalizationObject
Base customization data class. Manages customization data all portlets should support. By default, this is the portlet's title and short title.
Generally, portlets should support customization even if they only allow a user to customize the titlebar. Portlets providing further customization (data) should use a subclassed version of this class as a data class and override the init() method so that further data items can be defaulted.
| Constructor Summary | |
NameValuePersonalizationObject()
Null Constructor. |
|
| Method Summary | |
java.lang.Boolean |
getBoolean(java.lang.String name)
Retrieves the Boolean value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Boolean[] |
getBooleanArray(java.lang.String name)
Retrieves the Boolean Array value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.String |
getContentVersion()
Gets the version String associated with the content of the PersonalizationObject |
java.lang.Double |
getDouble(java.lang.String name)
Retrieves the Double value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Double[] |
getDoubleArray(java.lang.String name)
Retrieves the Double Array value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Float |
getFloat(java.lang.String name)
Retrieves the Float value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Float[] |
getFloatArray(java.lang.String name)
Retrieves the Float Array value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Integer |
getInteger(java.lang.String name)
Retrieves the Integer value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Integer[] |
getIntegerArray(java.lang.String name)
Retrieves the Integer Array value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Long |
getLong(java.lang.String name)
Retrieves the Long value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.Long[] |
getLongArray(java.lang.String name)
Retrieves the Long Array value stored against the given name from the content of the NameValuePersonalizationObject. |
java.util.Enumeration |
getNames()
Retrieves an Enumeration object containing all names in the content of the NameValuePreferenceDataObject |
java.lang.String |
getPortletShortTitle()
Gets the string to be displayed for the Portlet's title when there is limited space. |
java.lang.String |
getPortletTitle()
Gets the string to be displayed on the Portlet's title bar. |
java.lang.String |
getReferencePath()
Gets the the identifying path string used to store and retrieve the contents of this NameValuePersonalizationObject from the storage medium. |
java.lang.String |
getString(java.lang.String name)
Retrieves the String value stored against the given name from the content of the NameValuePersonalizationObject. |
java.lang.String[] |
getStringArray(java.lang.String name)
Retrieves the String Array value stored against the given name from the content of the NameValuePersonalizationObject. |
void |
init(PortletReference pr)
Init method used to initialize the data object after instantiation via its null constructor. |
void |
putBoolean(java.lang.String name,
java.lang.Boolean value)
Records the given Boolean value against the given name in the NameValuePersonalizationObject content. |
void |
putBooleanArray(java.lang.String name,
java.lang.Boolean[] value)
Records the given Boolean Array value against the given name in the NameValuePersonalizationObject content. |
void |
putDouble(java.lang.String name,
java.lang.Double value)
Records the given Double value against the given name in the NameValuePersonalizationObject content. |
void |
putDoubleArray(java.lang.String name,
java.lang.Double[] value)
Records the given Double Array value against the given name in the NameValuePersonalizationObject content. |
void |
putFloat(java.lang.String name,
java.lang.Float value)
Records the given Float value against the given name in the NameValuePersonalizationObject content. |
void |
putFloatArray(java.lang.String name,
java.lang.Float[] value)
Records the given Float Array value against the given name in the NameValuePersonalizationObject content. |
void |
putInteger(java.lang.String name,
java.lang.Integer value)
Records the given Integer value against the given name in the NameValuePersonalizationObject content. |
void |
putIntegerArray(java.lang.String name,
java.lang.Integer[] value)
Records the given Integer Array value against the given name in the NameValuePersonalizationObject content. |
void |
putLong(java.lang.String name,
java.lang.Long value)
Records the given Long value against the given name in the NameValuePersonalizationObject content. |
void |
putLongArray(java.lang.String name,
java.lang.Long[] value)
Records the given Long Array value against the given name in the NameValuePersonalizationObject content. |
void |
putString(java.lang.String name,
java.lang.String value)
Records the given String value against the given name in the NameValuePersonalizationObject content. |
void |
putStringArray(java.lang.String name,
java.lang.String[] value)
Records the given String Array value against the given name in the NameValuePersonalizationObject content. |
void |
read(java.io.InputStream is)
Populates the PersonalizationObject with content read from a given InputStream |
void |
remove(java.lang.String name)
Removes the value stored against the given name from the content of the NameValuePersonalizationObject. |
void |
setContentVersion(java.lang.String version)
Sets the version associated with the content of the PersonalizationObject. |
void |
setPortletShortTitle(java.lang.String title)
Sets the string to be displayed for the Portlet's title when there is limited space. |
void |
setPortletTitle(java.lang.String title)
Sets the string to be displayed on the Portlet's title bar. |
void |
setReferencePath(java.lang.String path)
Optionally records the identifying path string used to store and retrieve the contents of this NameValuePersonalizationObject from the storage medium. |
java.lang.String |
toString()
Convert the contents of this object to a String representation |
void |
write(java.io.OutputStream os)
Writes the content of the PersonalizationObject to a given OutputStream |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public NameValuePersonalizationObject()
| Method Detail |
public void init(PortletReference pr)
Behavior is to initialize the title using the (static) title from the
portlet metadata (portlet.getTitle()). The portlet's
default Locale is used to retrieve the title.
pr - the portlet reference that identifies the customization
instance this object represents.public void setContentVersion(java.lang.String version)
version - version string to be associated with the content of the
PersonalizationObjectpublic java.lang.String getContentVersion()
public void setPortletTitle(java.lang.String title)
title - string to be displayed on the Portlet's title bar.public java.lang.String getPortletTitle()
public void setPortletShortTitle(java.lang.String title)
title - string to be displayed for the Portlet's title when there
is limited space.public java.lang.String getPortletShortTitle()
public void setReferencePath(java.lang.String path)
path - identifying path against which the
NameValuePersonalizationObject data is storedpublic java.lang.String getReferencePath()
public java.util.Enumeration getNames()
public void putInteger(java.lang.String name,
java.lang.Integer value)
name - String name against which the value is to be storedvalue - Integer value
public void putDouble(java.lang.String name,
java.lang.Double value)
name - String name against which the value is to be storedvalue - Double value
public void putFloat(java.lang.String name,
java.lang.Float value)
name - String name against which the value is to be storedvalue - Float value
public void putLong(java.lang.String name,
java.lang.Long value)
name - String name against which the value is to be storedvalue - Long value
public void putBoolean(java.lang.String name,
java.lang.Boolean value)
name - String name against which the value is to be storedvalue - Boolean value
public void putString(java.lang.String name,
java.lang.String value)
name - String name against which the value is to be storedvalue - String value
public void putIntegerArray(java.lang.String name,
java.lang.Integer[] value)
name - String name against which the value is to be storedvalue - Integer array value
public void putDoubleArray(java.lang.String name,
java.lang.Double[] value)
name - String name against which the value is to be storedvalue - Double array value
public void putFloatArray(java.lang.String name,
java.lang.Float[] value)
name - String name against which the value is to be storedvalue - Float array value
public void putLongArray(java.lang.String name,
java.lang.Long[] value)
name - String name against which the value is to be storedvalue - Long array value
public void putBooleanArray(java.lang.String name,
java.lang.Boolean[] value)
name - String name against which the value is to be storedvalue - Boolean array value
public void putStringArray(java.lang.String name,
java.lang.String[] value)
name - String name against which the value is to be storedvalue - String array valuepublic java.lang.Integer getInteger(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Double getDouble(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Float getFloat(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Long getLong(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Boolean getBoolean(java.lang.String name)
name - String name against which the value is storedpublic java.lang.String getString(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Integer[] getIntegerArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Double[] getDoubleArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Float[] getFloatArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Long[] getLongArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.Boolean[] getBooleanArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.String[] getStringArray(java.lang.String name)
name - String name against which the value is storedpublic java.lang.String toString()
public void remove(java.lang.String name)
name - String name against which the value is stored
public void write(java.io.OutputStream os)
throws java.io.IOException
os - OutputStream to which content should be written
public void read(java.io.InputStream is)
throws java.io.IOException
is - InputStream from which content should be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||