org.tynamo.editablecontent.internal.services
Class EditableContentStorageImpl

java.lang.Object
  extended by org.tynamo.editablecontent.internal.services.EditableContentStorageImpl
All Implemented Interfaces:
EditableContentStorage

public class EditableContentStorageImpl
extends Object
implements EditableContentStorage


Constructor Summary
EditableContentStorageImpl(org.apache.tapestry5.jpa.EntityManagerManager entityManagerManager, org.apache.tapestry5.ioc.services.ThreadLocale threadLocale, javax.servlet.http.HttpServletRequest request, boolean localizedContent, String persistenceUnitName, int lruCacheSize)
           
 
Method Summary
 boolean contains(String contentId)
           
 TextualContent getTextualContent(String contentId)
           
 String getTextualContentValue(String contentId)
           
 String updateContent(String contentId, String contentValue, int maxHistory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditableContentStorageImpl

public EditableContentStorageImpl(org.apache.tapestry5.jpa.EntityManagerManager entityManagerManager,
                                  org.apache.tapestry5.ioc.services.ThreadLocale threadLocale,
                                  javax.servlet.http.HttpServletRequest request,
                                  @Inject@Symbol(value="editablecontent.localizedcontent")
                                  boolean localizedContent,
                                  @Inject@Symbol(value="editablecontent.persistenceunit")
                                  String persistenceUnitName,
                                  @Inject@Symbol(value="editablecontent.lrucachesize")
                                  int lruCacheSize)
Method Detail

contains

public boolean contains(String contentId)
Specified by:
contains in interface EditableContentStorage

updateContent

public String updateContent(String contentId,
                            String contentValue,
                            int maxHistory)
Specified by:
updateContent in interface EditableContentStorage

getTextualContentValue

public String getTextualContentValue(String contentId)
Specified by:
getTextualContentValue in interface EditableContentStorage

getTextualContent

public TextualContent getTextualContent(String contentId)
Specified by:
getTextualContent in interface EditableContentStorage


Copyright © 2004-2012. All Rights Reserved.