|
Liferay 6.1.2-ce-ga3 | |||||||||
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 portletDataContext,
String portletId,
PortletPreferences portletPreferences)
|
protected String |
doExportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
|
protected PortletPreferences |
doImportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
String data)
|
static void |
exportArticle(PortletDataContext portletDataContext,
Element articlesElement,
Element structuresElement,
Element templatesElement,
Element dlFileEntryTypesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element dlRepositoriesElement,
Element dlRepositoryEntriesElement,
JournalArticle article,
boolean checkDateRange)
|
protected static String |
exportDLFileEntries(PortletDataContext portletDataContext,
Element dlFileEntryTypesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element dlRepositoriesElement,
Element dlRepositoryEntriesElement,
Element entityElement,
String content,
boolean checkDateRange)
|
protected static void |
exportFeed(PortletDataContext portletDataContext,
Element feedsElement,
JournalFeed feed)
|
protected static String |
exportLayoutFriendlyURLs(PortletDataContext portletDataContext,
String content)
|
protected static String |
exportLinksToLayout(PortletDataContext portletDataContext,
String content)
|
static String |
exportReferencedContent(PortletDataContext portletDataContext,
Element dlFileEntryTypesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element dlRepositoriesElement,
Element dlRepositoryEntriesElement,
Element entityElement,
String content)
|
protected static void |
exportStructure(PortletDataContext portletDataContext,
Element structuresElement,
JournalStructure structure)
|
protected static void |
exportTemplate(PortletDataContext portletDataContext,
Element templatesElement,
Element dlFileEntryTypesElement,
Element dlFoldersElement,
Element dlFileEntriesElement,
Element dlFileRanksElement,
Element dlRepositoriesElement,
Element dlRepositoryEntriesElement,
JournalTemplate template)
|
protected static String |
getArticleImagePath(PortletDataContext portletDataContext,
JournalArticle article)
|
protected static String |
getArticleImagePath(PortletDataContext portletDataContext,
JournalArticle article,
JournalArticleImage articleImage,
Image image)
|
static String |
getArticlePath(PortletDataContext portletDataContext,
JournalArticle article)
|
protected static String |
getArticleSmallImagePath(PortletDataContext portletDataContext,
JournalArticle article)
|
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getExportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
protected static String |
getFeedPath(PortletDataContext portletDataContext,
JournalFeed feed)
|
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getImportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
static PortletDataHandlerControl[] |
getMetadataControls()
|
protected static String |
getStructurePath(PortletDataContext portletDataContext,
String uuid)
|
protected static String |
getTemplatePath(PortletDataContext portletDataContext,
JournalTemplate template)
|
protected static String |
getTemplateSmallImagePath(PortletDataContext portletDataContext,
JournalTemplate template)
|
static void |
importArticle(PortletDataContext portletDataContext,
Element articleElement)
|
protected static String |
importDLFileEntries(PortletDataContext portletDataContext,
Element parentElement,
String content)
|
static void |
importFeed(PortletDataContext portletDataContext,
Element feedElement)
|
protected static String |
importLayoutFriendlyURLs(PortletDataContext portletDataContext,
String content)
|
protected static String |
importLinksToLayout(PortletDataContext portletDataContext,
String content)
|
static String |
importReferencedContent(PortletDataContext portletDataContext,
Element parentElement,
String content)
|
static void |
importReferencedData(PortletDataContext portletDataContext,
Element entityElement)
|
static void |
importStructure(PortletDataContext portletDataContext,
Element structureElement)
|
static void |
importTemplate(PortletDataContext portletDataContext,
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 |
isDataLocalized()
|
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
protected static void |
prepareLanguagesForImport(JournalArticle article)
|
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler |
---|
deleteData, exportData, getDataPortletPreferences, importData, isAlwaysStaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JournalPortletDataHandlerImpl()
Method Detail |
---|
public static void exportArticle(PortletDataContext portletDataContext, Element articlesElement, Element structuresElement, Element templatesElement, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, JournalArticle article, boolean checkDateRange) throws Exception
Exception
public static String exportReferencedContent(PortletDataContext portletDataContext, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, Element entityElement, String content) throws Exception
Exception
public static String getArticlePath(PortletDataContext portletDataContext, JournalArticle article) throws Exception
Exception
public static PortletDataHandlerControl[] getMetadataControls()
public static void importArticle(PortletDataContext portletDataContext, Element articleElement) throws Exception
Exception
public static void importFeed(PortletDataContext portletDataContext, Element feedElement) throws Exception
Exception
public static String importReferencedContent(PortletDataContext portletDataContext, Element parentElement, String content) throws Exception
Exception
public static void importReferencedData(PortletDataContext portletDataContext, Element entityElement) throws Exception
Exception
public static void importStructure(PortletDataContext portletDataContext, Element structureElement) throws Exception
Exception
public static void importTemplate(PortletDataContext portletDataContext, Element templateElement) throws Exception
Exception
public PortletDataHandlerControl[] getExportControls()
PortletDataHandler
getExportControls
in interface PortletDataHandler
getExportControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getExportMetadataControls()
PortletDataHandler
getExportMetadataControls
in interface PortletDataHandler
getExportMetadataControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getImportControls()
PortletDataHandler
getImportControls
in interface PortletDataHandler
getImportControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getImportMetadataControls()
PortletDataHandler
getImportMetadataControls
in interface PortletDataHandler
getImportMetadataControls
in class BasePortletDataHandler
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 isDataLocalized()
isDataLocalized
in interface PortletDataHandler
isDataLocalized
in class BasePortletDataHandler
public 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 static String exportDLFileEntries(PortletDataContext portletDataContext, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, Element entityElement, String content, boolean checkDateRange) throws Exception
Exception
protected static void exportFeed(PortletDataContext portletDataContext, Element feedsElement, JournalFeed feed) throws Exception
Exception
protected static String exportLayoutFriendlyURLs(PortletDataContext portletDataContext, String content)
protected static String exportLinksToLayout(PortletDataContext portletDataContext, String content) throws Exception
Exception
protected static void exportStructure(PortletDataContext portletDataContext, Element structuresElement, JournalStructure structure) throws Exception
Exception
protected static void exportTemplate(PortletDataContext portletDataContext, Element templatesElement, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, JournalTemplate template) throws Exception
Exception
protected static String getArticleImagePath(PortletDataContext portletDataContext, JournalArticle article) throws Exception
Exception
protected static String getArticleImagePath(PortletDataContext portletDataContext, JournalArticle article, JournalArticleImage articleImage, Image image) throws Exception
Exception
protected static String getArticleSmallImagePath(PortletDataContext portletDataContext, JournalArticle article) throws Exception
Exception
protected static String getFeedPath(PortletDataContext portletDataContext, JournalFeed feed)
protected static String getStructurePath(PortletDataContext portletDataContext, String uuid)
protected static String getTemplatePath(PortletDataContext portletDataContext, JournalTemplate template)
protected static String getTemplateSmallImagePath(PortletDataContext portletDataContext, JournalTemplate template) throws Exception
Exception
protected static String importDLFileEntries(PortletDataContext portletDataContext, Element parentElement, String content) throws Exception
Exception
protected static String importLayoutFriendlyURLs(PortletDataContext portletDataContext, String content) throws Exception
Exception
protected static String importLinksToLayout(PortletDataContext portletDataContext, String content) throws Exception
Exception
protected static void prepareLanguagesForImport(JournalArticle article) throws PortalException
PortalException
protected PortletPreferences doDeleteData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception
doDeleteData
in class BasePortletDataHandler
Exception
protected String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception
doExportData
in class BasePortletDataHandler
Exception
protected PortletPreferences doImportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, String data) throws Exception
doImportData
in class BasePortletDataHandler
Exception
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |