Liferay 7.0-ce-m3

com.liferay.portal.upgrade.v7_0_0
Class UpgradeJournalArticleType

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.UpgradeJournalArticleType
All Implemented Interfaces:
DBProcess

public class UpgradeJournalArticleType
extends UpgradeBaseJournal


Constructor Summary
UpgradeJournalArticleType()
           
 
Method Summary
protected  void addAssetCategory(long assetCategoryId, long groupId, long companyId, long userId, long rightAssetCategoryId, long leftAssetCategoryId, String name, String title, long assetVocabularyId)
           
protected  void addAssetEntryToAssetCategory(long assetEntryId, long assetCategoryId)
           
protected  void addAssetVocabulary(long vocabularyId, long groupId, long companyId, long userId, String name, String title, String settings)
           
protected  void doUpgrade()
           
protected  List<String> getArticleTypes()
           
protected  long getAssetEntryId(long classPK)
           
protected  boolean hasSelectedArticleTypes()
           
protected  void updateArticles(long companyId, Map<String,Long> journalArticleTypesToAssetCategoryIds)
           
protected  void updateArticleType()
           
 
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

UpgradeJournalArticleType

public UpgradeJournalArticleType()
Method Detail

addAssetCategory

protected void addAssetCategory(long assetCategoryId,
                                long groupId,
                                long companyId,
                                long userId,
                                long rightAssetCategoryId,
                                long leftAssetCategoryId,
                                String name,
                                String title,
                                long assetVocabularyId)
                         throws Exception
Throws:
Exception

addAssetEntryToAssetCategory

protected void addAssetEntryToAssetCategory(long assetEntryId,
                                            long assetCategoryId)
                                     throws Exception
Throws:
Exception

addAssetVocabulary

protected void addAssetVocabulary(long vocabularyId,
                                  long groupId,
                                  long companyId,
                                  long userId,
                                  String name,
                                  String title,
                                  String settings)
                           throws Exception
Throws:
Exception

doUpgrade

protected void doUpgrade()
                  throws Exception
Overrides:
doUpgrade in class UpgradeDynamicDataMapping
Throws:
Exception

getArticleTypes

protected List<String> getArticleTypes()
                                throws Exception
Throws:
Exception

getAssetEntryId

protected long getAssetEntryId(long classPK)
                        throws Exception
Throws:
Exception

hasSelectedArticleTypes

protected boolean hasSelectedArticleTypes()
                                   throws Exception
Throws:
Exception

updateArticles

protected void updateArticles(long companyId,
                              Map<String,Long> journalArticleTypesToAssetCategoryIds)
                       throws Exception
Throws:
Exception

updateArticleType

protected void updateArticleType()
                          throws Exception
Throws:
Exception

Liferay 7.0-ce-m3