|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configuration
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(java.util.Map map)
Add all attributes from the map into this configuration |
Attribute |
getAttribute(java.lang.String name)
Get the attribute of a given name |
java.util.List |
getAttributeNames()
Get the list of attribute names known for this configuration |
java.lang.String |
getName()
Get the name of this configuration object |
void |
removeAllAttributes()
Remove all attributes. |
Attribute |
removeAttribute(java.lang.String name)
Remove an attribute with a given name, if present |
Attribute |
setAttribute(Attribute attr)
Set the attribute for this configuration |
Attribute |
setAttribute(java.lang.String name,
java.lang.String value)
Set the attribute name and value pair for this configuration |
Method Detail |
---|
java.lang.String getName()
Attribute setAttribute(java.lang.String name, java.lang.String value)
name
- the name of the configuration objectvalue
- the value of the configuration object
Attribute setAttribute(Attribute attr)
attr
- the attribute containing the name/value pair
Attribute getAttribute(java.lang.String name)
name
- the name of the attribute to return
java.util.List getAttributeNames()
Attribute removeAttribute(java.lang.String name)
name
- Name of the attribute to remove
void removeAllAttributes()
void addAll(java.util.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |