|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PersistenceService class is a instantiated as a portlet-specific object. It provides methods to set and remove attributes from an attribute set that can be stored and reset.
The PersistenceService does not require any specific parameters, although concrete implementations may do so.
A name for the persistence service still has to be agreed on.
PersistenceFactory
Inner Class Summary | |
static interface |
PersistenceService.Page
|
Method Summary | |
java.lang.String |
getAttribute(java.lang.String aName)
Returns the attribute value of the attribute with the given name. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of the attribute names of all attributes that the persistence service is aware of. |
java.lang.String[] |
getAttributes(java.lang.String aName)
Returns an array of attribute values of attributes with the given name. |
java.util.Enumeration |
getPages()
Returns an enumeration of all pages that the persistence service for the portlet manages for this user. |
void |
removeAttribute(java.lang.String aName)
Removes the attribute with the given name. |
void |
reset()
Resets the persistence service to forget about all attributes previously collected. |
void |
setAttribute(java.lang.String aName,
java.lang.String aValue)
Sets an attribute with the given name and value |
void |
setAttributes(java.lang.String aName,
java.lang.String[] aValues)
Sets an array of attributes with the given name and values. |
void |
store()
Stores the current set of attributes. |
Methods inherited from interface org.apache.jetspeed.service.Service |
getName,
init |
Method Detail |
public java.lang.String getAttribute(java.lang.String aName)
aName
- the attribute namepublic java.lang.String[] getAttributes(java.lang.String aName)
aName
- the attribute namepublic java.util.Enumeration getAttributeNames()
public void setAttribute(java.lang.String aName, java.lang.String aValue)
aName
- the attribute nameaValue
- the attribute valuepublic void setAttributes(java.lang.String aName, java.lang.String[] aValues)
aName
- the attribute nameaValues
- an array of attribute valuespublic void removeAttribute(java.lang.String aName)
aName
- the attribute namepublic void reset()
public void store()
public java.util.Enumeration getPages()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |