com.liferay.portal.upgrade.v6_0_0
Class UpgradeAsset
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v6_0_0.UpgradeAsset
- All Implemented Interfaces:
- DBProcess
public class UpgradeAsset
- extends UpgradeProcess
Method Summary |
protected void |
addCategory(long entryId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentCategoryId,
String name,
long vocabularyId)
|
protected void |
addEntry(long assetId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
boolean visible,
Timestamp startDate,
Timestamp endDate,
Timestamp publishDate,
Timestamp expirationDate,
String mimeType,
String title,
String description,
String summary,
String url,
int height,
int width,
double priority,
int viewCount)
|
protected void |
addProperty(String tableName,
String pkName,
String assocationPKName,
long propertyId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long categoryId,
String key,
String value)
|
protected void |
addTag(long entryId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String name)
|
protected void |
addVocabulary(long vocabularyId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String name,
String description)
|
protected void |
copyAssociations(long tagsEntryId,
String tableName,
String pkName)
|
protected void |
copyEntriesToCategories(long vocabularyId)
|
protected void |
copyProperties(long categoryId,
String tableName,
String pkName,
String assocationPKName)
|
protected void |
doUpgrade()
|
protected void |
updateAssetCategories()
|
protected void |
updateAssetEntries()
|
protected void |
updateAssetTags()
|
protected void |
updateAssetTagsCount()
|
protected void |
updateCategoryResource(long companyId,
long categoryId)
|
protected void |
updateResourceCodes()
|
protected void |
updateResourceCodes(String oldCodeName,
String newCodeName)
|
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
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 |
UpgradeAsset
public UpgradeAsset()
addCategory
protected void addCategory(long entryId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentCategoryId,
String name,
long vocabularyId)
throws Exception
- Throws:
Exception
addEntry
protected void addEntry(long assetId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
boolean visible,
Timestamp startDate,
Timestamp endDate,
Timestamp publishDate,
Timestamp expirationDate,
String mimeType,
String title,
String description,
String summary,
String url,
int height,
int width,
double priority,
int viewCount)
throws Exception
- Throws:
Exception
addProperty
protected void addProperty(String tableName,
String pkName,
String assocationPKName,
long propertyId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long categoryId,
String key,
String value)
throws Exception
- Throws:
Exception
addTag
protected void addTag(long entryId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String name)
throws Exception
- Throws:
Exception
addVocabulary
protected void addVocabulary(long vocabularyId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String name,
String description)
throws Exception
- Throws:
Exception
copyAssociations
protected void copyAssociations(long tagsEntryId,
String tableName,
String pkName)
throws Exception
- Throws:
Exception
copyEntriesToCategories
protected void copyEntriesToCategories(long vocabularyId)
throws Exception
- Throws:
Exception
copyProperties
protected void copyProperties(long categoryId,
String tableName,
String pkName,
String assocationPKName)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class UpgradeProcess
- Throws:
Exception
updateAssetCategories
protected void updateAssetCategories()
throws Exception
- Throws:
Exception
updateAssetEntries
protected void updateAssetEntries()
throws Exception
- Throws:
Exception
updateAssetTags
protected void updateAssetTags()
throws Exception
- Throws:
Exception
updateAssetTagsCount
protected void updateAssetTagsCount()
throws Exception
- Throws:
Exception
updateCategoryResource
protected void updateCategoryResource(long companyId,
long categoryId)
throws Exception
- Throws:
Exception
updateResourceCodes
protected void updateResourceCodes()
throws Exception
- Throws:
Exception
updateResourceCodes
protected void updateResourceCodes(String oldCodeName,
String newCodeName)
throws Exception
- Throws:
Exception