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 Details

  • Constructor Details

  • Method Details

    • 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
      Parameters:
      request - portlet request
      localeKey - locale key
      Returns:
      The content to display for this portlet.
    • 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 - local key
      Returns:
      locale-specific content preference key