|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.kernel.lar.BasePortletDataHandler com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl
public class JournalPortletDataHandlerImpl
Provides the Journal portlet export and import functionality, which is to clone all articles, structures, and templates associated with the layout's group. Upon import, new instances of the corresponding articles, structures, and templates are created or updated according to the DATA_MIRROW strategy The author of the newly created objects are determined by the JournalCreationStrategy class defined in portal.properties. That strategy also allows the text of the journal article to be modified prior to import.
This PortletDataHandler
differs from
JournalContentPortletDataHandlerImpl
in that it exports all
articles owned by the group whether or not they are actually displayed in a
portlet in the layout set.
PortletDataHandler
,
JournalContentPortletDataHandlerImpl
,
JournalCreationStrategy
Constructor Summary | |
---|---|
JournalPortletDataHandlerImpl()
|
Method Summary | |
---|---|
protected PortletPreferences |
doDeleteData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
|
protected String |
doExportData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
|
protected PortletPreferences |
doImportData(PortletDataContext context,
String portletId,
PortletPreferences preferences,
String data)
|
protected static void |
exportArticle(PortletDataContext context,
Element articlesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element igFoldersElement,
Element igImagesElement,
JournalArticle article,
boolean checkDateRange)
|
protected static String |
exportDLFileEntries(PortletDataContext context,
Element foldersElement,
Element fileEntriesElement,
Element fileRanksElement,
Element entityElement,
String content)
|
protected static void |
exportFeed(PortletDataContext context,
Element feedsElement,
JournalFeed feed)
|
protected static String |
exportIGImages(PortletDataContext context,
Element foldersElement,
Element imagesElement,
Element entityElement,
String content)
|
protected static String |
exportLayoutFriendlyURLs(PortletDataContext context,
String content)
|
protected static void |
exportStructure(PortletDataContext context,
Element structuresElement,
JournalStructure structure)
|
protected static void |
exportTemplate(PortletDataContext context,
Element templatesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element igFoldersElement,
Element igImagesElement,
JournalTemplate template)
|
protected static String |
getArticleImagePath(PortletDataContext context,
JournalArticle article)
|
protected static String |
getArticleImagePath(PortletDataContext context,
JournalArticle article,
JournalArticleImage articleImage,
Image image)
|
protected static String |
getArticlePath(PortletDataContext context,
JournalArticle article)
|
protected static String |
getArticleSmallImagePath(PortletDataContext context,
JournalArticle article)
|
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
protected static String |
getFeedPath(PortletDataContext context,
JournalFeed feed)
|
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
protected static String |
getStructurePath(PortletDataContext context,
JournalStructure structure)
|
protected static String |
getTemplatePath(PortletDataContext context,
JournalTemplate template)
|
protected static String |
getTemplateSmallImagePath(PortletDataContext context,
JournalTemplate template)
|
protected static void |
importArticle(PortletDataContext context,
Element articleElement)
|
protected static String |
importDLFileEntries(PortletDataContext context,
Element parentElement,
String content)
|
protected static void |
importFeed(PortletDataContext context,
Element feedElement)
|
protected static String |
importIGImages(PortletDataContext context,
Element parentElement,
String content)
|
protected static void |
importStructure(PortletDataContext context,
Element structureElement)
|
protected static void |
importTemplate(PortletDataContext context,
Element templateElement)
|
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler |
---|
deleteData, exportData, importData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalPortletDataHandlerImpl()
Method Detail |
---|
protected static void exportArticle(PortletDataContext context, Element articlesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element igFoldersElement, Element igImagesElement, JournalArticle article, boolean checkDateRange) throws Exception
Exception
protected static String exportDLFileEntries(PortletDataContext context, Element foldersElement, Element fileEntriesElement, Element fileRanksElement, Element entityElement, String content)
protected static void exportFeed(PortletDataContext context, Element feedsElement, JournalFeed feed) throws Exception
Exception
protected static String exportIGImages(PortletDataContext context, Element foldersElement, Element imagesElement, Element entityElement, String content)
protected static String exportLayoutFriendlyURLs(PortletDataContext context, String content)
protected static void exportStructure(PortletDataContext context, Element structuresElement, JournalStructure structure) throws Exception
Exception
protected static void exportTemplate(PortletDataContext context, Element templatesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element igFoldersElement, Element igImagesElement, JournalTemplate template) throws Exception
Exception
protected static String getArticleImagePath(PortletDataContext context, JournalArticle article)
protected static String getArticleImagePath(PortletDataContext context, JournalArticle article, JournalArticleImage articleImage, Image image)
protected static String getArticlePath(PortletDataContext context, JournalArticle article)
protected static String getArticleSmallImagePath(PortletDataContext context, JournalArticle article) throws Exception
Exception
protected static String getFeedPath(PortletDataContext context, JournalFeed feed)
protected static String getStructurePath(PortletDataContext context, JournalStructure structure)
protected static String getTemplatePath(PortletDataContext context, JournalTemplate template)
protected static String getTemplateSmallImagePath(PortletDataContext context, JournalTemplate template) throws Exception
Exception
protected static void importArticle(PortletDataContext context, Element articleElement) throws Exception
Exception
protected static String importDLFileEntries(PortletDataContext context, Element parentElement, String content) throws Exception
Exception
protected static void importFeed(PortletDataContext context, Element feedElement) throws Exception
Exception
protected static String importIGImages(PortletDataContext context, Element parentElement, String content) throws Exception
Exception
protected static void importStructure(PortletDataContext context, Element structureElement) throws Exception
Exception
protected static void importTemplate(PortletDataContext context, Element templateElement) throws Exception
Exception
public PortletDataHandlerControl[] getExportControls()
PortletDataHandler
public PortletDataHandlerControl[] getImportControls()
PortletDataHandler
public boolean isAlwaysExportable()
PortletDataHandler
true
to allow the user to export data for this
portlet even though it may not belong to any pages. See LPS-1624.
isAlwaysExportable
in interface PortletDataHandler
isAlwaysExportable
in class BasePortletDataHandler
true
to allow the user to export data for this
portlet even though it may not belong to any pagespublic boolean isPublishToLiveByDefault()
PortletDataHandler
true
for data that is meant to be managed in an staging environment such as
CMS content, but not for data meant to be input by users such as wiki
pages or message board posts.
isPublishToLiveByDefault
in interface PortletDataHandler
isPublishToLiveByDefault
in class BasePortletDataHandler
true
to publish to live by defaultprotected PortletPreferences doDeleteData(PortletDataContext context, String portletId, PortletPreferences preferences) throws Exception
doDeleteData
in class BasePortletDataHandler
Exception
protected String doExportData(PortletDataContext context, String portletId, PortletPreferences preferences) throws Exception
doExportData
in class BasePortletDataHandler
Exception
protected PortletPreferences doImportData(PortletDataContext context, String portletId, PortletPreferences preferences, String data) throws Exception
doImportData
in class BasePortletDataHandler
Exception
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |