|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
This interface represents a persistent configuration for a
portlet instance. Configuration objects are unique to a
PSPortlet. In simpler terms, this means that each unique
combination of portlet/page/user can have its own unique
Configuration object.
Configuration maps a collection of name/value pairs, represented
as instances of Attribute to metadata records with
mostly Java Collection semantics. Currently, only OMR PropertySets
are supported.
A Configuration cannot be instantiated directly. Client code
should use the ConfigurationFactory to create
and save Configurations.
ConfigurationFactory,
Attribute| Method Summary | |
void |
addAll(Map map)
Add all attributes from the map into this configuration |
Attribute |
getAttribute(String name)
Get the attribute of a given name |
List |
getAttributeNames()
Get the list of attribute names known for this configuration |
String |
getName()
Get the name of this configuration object |
void |
removeAllAttributes()
Remove all attributes. |
Attribute |
removeAttribute(String name)
Remove an attribute with a given name, if present |
Attribute |
setAttribute(Attribute attr)
Set the attribute for this configuration |
Attribute |
setAttribute(String name,
String value)
Set the attribute name and value pair for this configuration |
| Method Detail |
public String getName()
public Attribute setAttribute(String name,
String value)
name - the name of the configuration objectvalue - the value of the configuration objectpublic Attribute setAttribute(Attribute attr)
attribute - the attribute containing the name/value pairpublic Attribute getAttribute(String name)
name - the name of the attribute to returnpublic List getAttributeNames()
public Attribute removeAttribute(String name)
name - Name of the attribute to removepublic void removeAllAttributes()
public void addAll(Map map)
map - keys are the names of the attributes, and the value
is the value of the attribute.
|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||