Is there any interface or class provided by the JSR286 specification to store configuration parameters for a portlet?
The PortletPreferences
interface allows me to store preferences but these are user-specific as far as I know. I also read you could store things in a PortletSession
, but the scope of it is also user-specific (and I don't think it's persistent).
Another thing I read is the PortletContext
which is available in an application wide scope. I read there is a property called setAttribute
, but I don't know if these attributes are persistent or not. If I restart the portal server, I have no clue if these settings are still there. Also, if I have multiple instances of the portlet, I would like to make these settings differently for each instance.
So my question is; Is there any interface/class in the portlet 2.0 API (JSR286) to store data at portlet instance scope persistently?