Liferay 7.0-ce-m3

com.liferay.portal.upgrade.v7_0_0
Class UpgradeJournal

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
          extended by com.liferay.portal.upgrade.v7_0_0.UpgradeDynamicDataMapping
              extended by com.liferay.portal.upgrade.v7_0_0.UpgradeBaseJournal
                  extended by com.liferay.portal.upgrade.v7_0_0.UpgradeJournal
All Implemented Interfaces:
DBProcess

public class UpgradeJournal
extends UpgradeBaseJournal


Constructor Summary
UpgradeJournal()
           
 
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 xsd)
           
protected  long addDDMTemplate(String uuid, long ddmTemplateId, long groupId, long companyId, long ddmStructureId, String templateKey, String localizedName, String localizedDescription, String script, boolean cacheable)
           
protected  String convertStaticContentToDynamic(String content)
           
protected  void doUpgrade()
           
protected  String getContent(String fileName)
           
protected  List<Element> getDDMStructures(Locale locale)
           
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.UpgradeBaseJournal
addResourcePermission, getBitwiseValue, getBitwiseValues, getCompanyGroupId, getDefaultUserId, getRoleId, localize
 
Methods inherited from class com.liferay.portal.upgrade.v7_0_0.UpgradeDynamicDataMapping
addStructureVersion, addStructureVersions, addTemplateVersion, addTemplateVersions
 
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 com.liferay.portal.kernel.dao.db.BaseDBProcess
runSQL, runSQL, runSQLTemplate, runSQLTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeJournal

public UpgradeJournal()
Method Detail

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 xsd)
                        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

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

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

Liferay 7.0-ce-m3