|
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.messageboards.lar.MBPortletDataHandlerImpl
public class MBPortletDataHandlerImpl
Constructor Summary | |
---|---|
MBPortletDataHandlerImpl()
|
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)
|
protected void |
exportBan(PortletDataContext portletDataContext,
Element userBansElement,
MBBan ban)
|
protected void |
exportCategory(PortletDataContext portletDataContext,
Element categoriesElement,
Element messagesElement,
Element threadFlagsElement,
MBCategory category)
|
protected void |
exportMessage(PortletDataContext portletDataContext,
Element categoriesElement,
Element messagesElement,
Element threadFlagsElement,
MBMessage message)
|
protected void |
exportParentCategory(PortletDataContext portletDataContext,
Element categoriesElement,
long categoryId)
|
protected void |
exportThreadFlag(PortletDataContext portletDataContext,
Element threadFlagsElement,
MBThreadFlag threadFlag)
|
protected List<ObjectValuePair<String,InputStream>> |
getAttachments(PortletDataContext portletDataContext,
Element messageElement,
MBMessage message)
|
protected long |
getCategoryId(PortletDataContext portletDataContext,
MBMessage message,
Map<Long,Long> categoryIds,
long categoryId)
|
protected String |
getCategoryPath(PortletDataContext portletDataContext,
MBCategory category)
|
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 String |
getImportCategoryPath(PortletDataContext portletDataContext,
long categoryId)
|
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. |
protected String |
getMessageAttachementBinPath(PortletDataContext portletDataContext,
MBMessage message,
String attachment)
|
protected String |
getMessagePath(PortletDataContext portletDataContext,
MBMessage message)
|
protected String |
getThreadFlagPath(PortletDataContext portletDataContext,
MBThreadFlag threadFlag)
|
protected String |
getUserBanPath(PortletDataContext portletDataContext,
MBBan ban)
|
protected void |
importBan(PortletDataContext portletDataContext,
Element userBanElement,
MBBan ban)
|
protected void |
importCategory(PortletDataContext portletDataContext,
String categoryPath,
MBCategory category)
|
protected void |
importMessage(PortletDataContext portletDataContext,
Element messageElement,
MBMessage message)
|
protected void |
importThreadFlag(PortletDataContext portletDataContext,
Element threadFlagElement,
MBThreadFlag threadFlag)
|
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, getDataPortletPreferences, importData, isAlwaysStaged, isDataLocalized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBPortletDataHandlerImpl()
Method Detail |
---|
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 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 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
protected void exportBan(PortletDataContext portletDataContext, Element userBansElement, MBBan ban) throws Exception
Exception
protected void exportCategory(PortletDataContext portletDataContext, Element categoriesElement, Element messagesElement, Element threadFlagsElement, MBCategory category) throws Exception
Exception
protected void exportMessage(PortletDataContext portletDataContext, Element categoriesElement, Element messagesElement, Element threadFlagsElement, MBMessage message) throws Exception
Exception
protected void exportParentCategory(PortletDataContext portletDataContext, Element categoriesElement, long categoryId) throws Exception
Exception
protected void exportThreadFlag(PortletDataContext portletDataContext, Element threadFlagsElement, MBThreadFlag threadFlag) throws Exception
Exception
protected List<ObjectValuePair<String,InputStream>> getAttachments(PortletDataContext portletDataContext, Element messageElement, MBMessage message)
protected long getCategoryId(PortletDataContext portletDataContext, MBMessage message, Map<Long,Long> categoryIds, long categoryId) throws Exception
Exception
protected String getCategoryPath(PortletDataContext portletDataContext, MBCategory category)
protected String getImportCategoryPath(PortletDataContext portletDataContext, long categoryId)
protected String getMessageAttachementBinPath(PortletDataContext portletDataContext, MBMessage message, String attachment)
protected String getMessagePath(PortletDataContext portletDataContext, MBMessage message)
protected String getThreadFlagPath(PortletDataContext portletDataContext, MBThreadFlag threadFlag)
protected String getUserBanPath(PortletDataContext portletDataContext, MBBan ban)
protected void importBan(PortletDataContext portletDataContext, Element userBanElement, MBBan ban) throws Exception
Exception
protected void importCategory(PortletDataContext portletDataContext, String categoryPath, MBCategory category) throws Exception
Exception
protected void importMessage(PortletDataContext portletDataContext, Element messageElement, MBMessage message) throws Exception
Exception
protected void importThreadFlag(PortletDataContext portletDataContext, Element threadFlagElement, MBThreadFlag threadFlag) throws Exception
Exception
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |