com.liferay.portal.upgrade.v7_0_0
Class UpgradeJournal
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v7_0_0.UpgradeDynamicDataMapping
com.liferay.portal.upgrade.v7_0_0.UpgradeBaseJournal
com.liferay.portal.upgrade.v7_0_0.UpgradeJournal
- All Implemented Interfaces:
- DBProcess
public class UpgradeJournal
- extends UpgradeBaseJournal
|
Method Summary |
protected String |
addBasicWebContentStructureAndTemplate(long companyId)
|
protected long |
addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
String ddmStructureKey,
String localizedName,
String localizedDescription,
String definition,
String storageType)
|
protected long |
addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long ddmStructureId,
String templateKey,
String localizedName,
String localizedDescription,
String script,
boolean cacheable)
|
protected void |
addDDMTemplateLink(long classNameId,
long classPK,
long templateId)
|
protected void |
addDDMTemplateLinks()
|
protected String |
convertStaticContentToDynamic(String content)
|
protected void |
doUpgrade()
|
protected String |
getContent(String fileName)
|
protected List<Element> |
getDDMStructures(Locale locale)
|
protected String |
getDefaultDDMFormLayoutDefinition(String definition)
|
protected long |
getStagingGroupId(long groupId)
|
protected int |
hasDDMStructure(long groupId,
String ddmStructureKey)
|
protected void |
updateBasicWebContentStructure()
|
protected void |
updateJournalArticle(long id_,
String ddmStructureKey,
String ddmTemplateKey,
String content)
|
protected void |
updateJournalArticles(long companyId)
|
| Methods inherited from class com.liferay.portal.upgrade.v7_0_0.UpgradeDynamicDataMapping |
addStructureLayout, addStructureVersion, addTemplateVersion, getDDMForm, getDDMFormValues, getDefaultDDMFormLayoutDefinition, toJSON, toJSON, transformFileUploadDDMFormFields, updateContent, updateContent, updateDDMFormFields, updateStructureStorageType, updateStructureVersionStorageType, upgradeDDLFileUploadReferences, upgradeDDMSchema, upgradeDLFileUploadReferences, upgradeFileUploadReferences, upgradeStructureDefinition, upgradeStructuresAndAddStructureVersionsAndLayouts, upgradeTemplatesAndAddTemplateVersions, upgradeTemplateScript, upgradeXMLStorageAdapter |
| Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
doHasTable, getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeJournal
public UpgradeJournal()
addBasicWebContentStructureAndTemplate
protected String addBasicWebContentStructureAndTemplate(long companyId)
throws Exception
- Throws:
Exception
addDDMStructure
protected long addDDMStructure(String uuid,
long ddmStructureId,
long groupId,
long companyId,
String ddmStructureKey,
String localizedName,
String localizedDescription,
String definition,
String storageType)
throws Exception
- Throws:
Exception
addDDMTemplate
protected long addDDMTemplate(String uuid,
long ddmTemplateId,
long groupId,
long companyId,
long ddmStructureId,
String templateKey,
String localizedName,
String localizedDescription,
String script,
boolean cacheable)
throws Exception
- Throws:
Exception
addDDMTemplateLink
protected void addDDMTemplateLink(long classNameId,
long classPK,
long templateId)
throws Exception
- Throws:
Exception
addDDMTemplateLinks
protected void addDDMTemplateLinks()
throws Exception
- Throws:
Exception
convertStaticContentToDynamic
protected String convertStaticContentToDynamic(String content)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade in class UpgradeDynamicDataMapping
- Throws:
Exception
getContent
protected String getContent(String fileName)
getDDMStructures
protected List<Element> getDDMStructures(Locale locale)
throws DocumentException
- Throws:
DocumentException
getDefaultDDMFormLayoutDefinition
protected String getDefaultDDMFormLayoutDefinition(String definition)
throws Exception
- Throws:
Exception
getStagingGroupId
protected long getStagingGroupId(long groupId)
throws Exception
- Throws:
Exception
hasDDMStructure
protected int hasDDMStructure(long groupId,
String ddmStructureKey)
throws Exception
- Throws:
Exception
updateBasicWebContentStructure
protected void updateBasicWebContentStructure()
throws Exception
- Throws:
Exception
updateJournalArticle
protected void updateJournalArticle(long id_,
String ddmStructureKey,
String ddmTemplateKey,
String content)
throws Exception
- Throws:
Exception
updateJournalArticles
protected void updateJournalArticles(long companyId)
throws Exception
- Throws:
Exception