use of com.liferay.portal.kernel.xml.Element in project liferay-ide by liferay.
the class KBFolderStagedModelDataHandler method doExportStagedModel.
@Override
protected void doExportStagedModel(PortletDataContext portletDataContext, KBFolder kbFolder) throws Exception {
if (kbFolder.getParentKBFolderId() != KBFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
KBFolder parentKBFolder = KBFolderLocalServiceUtil.getKBFolder(kbFolder.getParentKBFolderId());
StagedModelDataHandlerUtil.exportReferenceStagedModel(portletDataContext, kbFolder, parentKBFolder, PortletDataContext.REFERENCE_TYPE_PARENT);
}
Element kbFolderElement = portletDataContext.getExportDataElement(kbFolder);
portletDataContext.addClassedModel(kbFolderElement, ExportImportPathUtil.getModelPath(kbFolder), kbFolder);
}
use of com.liferay.portal.kernel.xml.Element in project liferay-ide by liferay.
the class KBTemplateStagedModelDataHandler method doExportStagedModel.
@Override
protected void doExportStagedModel(PortletDataContext portletDataContext, KBTemplate kbTemplate) throws Exception {
Element kbTemplateElement = portletDataContext.getExportDataElement(kbTemplate);
portletDataContext.addClassedModel(kbTemplateElement, ExportImportPathUtil.getModelPath(kbTemplate), kbTemplate);
}
Aggregations