com.liferay.portal.upgrade.v7_0_0
Class UpgradeJournalArticleType
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.UpgradeJournalArticleType
- All Implemented Interfaces:
- DBProcess
public class UpgradeJournalArticleType
- extends UpgradeBaseJournal
|
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.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 |
UpgradeJournalArticleType
public UpgradeJournalArticleType()
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