Class PortletPreferencesContentDaoImpl
java.lang.Object
org.jasig.portlet.cms.service.dao.PortletPreferencesContentDaoImpl
- All Implemented Interfaces:
IContentDao
@Component public class PortletPreferencesContentDaoImpl extends Object implements IContentDao
PortletPreferencesContentDaoImpl is an implementation of the IContentDao
interface that uses simple portlet preferences as a store for HTML content.
This implementation relies on the portal for appropriate caching of
portlet preferences and does not on its own provide any validation or
stripping of HTML content.
- Version:
- $Revision$
- Author:
- Jen Bourey, jbourey@unicon.net
-
Field Summary
Fields Modifier and Type Field Description protected static StringCONTENT_KEYprotected org.apache.commons.logging.Loglog -
Constructor Summary
Constructors Constructor Description PortletPreferencesContentDaoImpl() -
Method Summary
Modifier and Type Method Description StringgetContent(javax.portlet.PortletRequest request, String localeKey)Get the HTML content to be displayed for this portlet.protected StringgetLocaleSpecificKey(String localeKey)Return a locale-specific content preference key.voidsaveContent(javax.portlet.ActionRequest request, String content, String localeKey)Save the HTML content for this portlet.
-
Field Details
-
CONTENT_KEY
- See Also:
- Constant Field Values
-
log
protected final org.apache.commons.logging.Log log
-
-
Constructor Details
-
PortletPreferencesContentDaoImpl
public PortletPreferencesContentDaoImpl()
-
-
Method Details
-
getContent
Description copied from interface:IContentDaoGet the HTML content to be displayed for this portlet.- Specified by:
getContentin interfaceIContentDao- Parameters:
request- portlet requestlocaleKey- locale key- Returns:
- The content to display for this portlet.
-
saveContent
Description copied from interface:IContentDaoSave the HTML content for this portlet.- Specified by:
saveContentin interfaceIContentDao- Parameters:
request- Action request associated with this operation.content- HTML content to be persisted.localeKey- Locale of content to be persisted.
-
getLocaleSpecificKey
Return a locale-specific content preference key.- Parameters:
localeKey- local key- Returns:
- locale-specific content preference key
-