org.jasig.portlet.cms.service.dao
Class PortletPreferencesContentDaoImpl

java.lang.Object
  extended by 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
protected static String CONTENT_KEY
           
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
PortletPreferencesContentDaoImpl()
           
 
Method Summary
 String getContent(javax.portlet.PortletRequest request, String localeKey)
          Get the HTML content to be displayed for this portlet.
protected  String getLocaleSpecificKey(String localeKey)
          Return a locale-specific content preference key.
 void saveContent(javax.portlet.ActionRequest request, String content, String localeKey)
          Save the HTML content for this portlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_KEY

protected static final String CONTENT_KEY
See Also:
Constant Field Values

log

protected final org.apache.commons.logging.Log log
Constructor Detail

PortletPreferencesContentDaoImpl

public PortletPreferencesContentDaoImpl()
Method Detail

getContent

public String getContent(javax.portlet.PortletRequest request,
                         String localeKey)
Description copied from interface: IContentDao
Get the HTML content to be displayed for this portlet.

Specified by:
getContent in interface IContentDao
Returns:

saveContent

public void saveContent(javax.portlet.ActionRequest request,
                        String content,
                        String localeKey)
Description copied from interface: IContentDao
Save the HTML content for this portlet.

Specified by:
saveContent in interface IContentDao
Parameters:
request - Action request associated with this operation.
content - HTML content to be persisted.
localeKey - Locale of content to be persisted.

getLocaleSpecificKey

protected String getLocaleSpecificKey(String localeKey)
Return a locale-specific content preference key.

Parameters:
localeKey -
Returns:


Copyright © 2013 Jasig. All Rights Reserved.