com.liferay.portal.upgrade.v6_0_0
Class UpgradeAsset

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
      extended by com.liferay.portal.upgrade.v6_0_0.UpgradeAsset

public class UpgradeAsset
extends com.liferay.portal.kernel.upgrade.UpgradeProcess

View Source

Author:
Jorge Ferrer, Brian Wing Shun Chan

Constructor Summary
UpgradeAsset()
           
 
Method Summary
protected  void addCategory(long entryId, long groupId, long companyId, long userId, java.lang.String userName, java.sql.Timestamp createDate, java.sql.Timestamp modifiedDate, long parentCategoryId, java.lang.String name, long vocabularyId)
           
protected  void addEntry(long assetId, long groupId, long companyId, long userId, java.lang.String userName, java.sql.Timestamp createDate, java.sql.Timestamp modifiedDate, long classNameId, long classPK, boolean visible, java.sql.Timestamp startDate, java.sql.Timestamp endDate, java.sql.Timestamp publishDate, java.sql.Timestamp expirationDate, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String summary, java.lang.String url, int height, int width, double priority, int viewCount)
           
protected  void addProperty(java.lang.String tableName, java.lang.String pkName, long propertyId, long companyId, long userId, java.lang.String userName, java.sql.Timestamp createDate, java.sql.Timestamp modifiedDate, long categoryId, java.lang.String key, java.lang.String value)
           
protected  void addTag(long entryId, long groupId, long companyId, long userId, java.lang.String userName, java.sql.Timestamp createDate, java.sql.Timestamp modifiedDate, java.lang.String name)
           
protected  void addVocabulary(long vocabularyId, long groupId, long companyId, long userId, java.lang.String userName, java.sql.Timestamp createDate, java.sql.Timestamp modifiedDate, java.lang.String name, java.lang.String description)
           
protected  void copyAssociations(long tagsEntryId, java.lang.String tableName, java.lang.String pkName)
           
protected  void copyEntriesToCategories(long vocabularyId)
           
protected  void copyProperties(long categoryId, java.lang.String tableName, java.lang.String pkName)
           
protected  void doUpgrade()
           
protected  void updateAssetCategories()
           
protected  void updateAssetEntries()
           
protected  void updateAssetTags()
           
protected  void updateCategoryResource(long companyId, long categoryId)
           
protected  void updateResourceCodes()
           
protected  void updateResourceCodes(java.lang.String oldCodeName, java.lang.String newCodeName)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, upgrade, upgrade, upgrade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeAsset

public UpgradeAsset()
Method Detail

addCategory

protected void addCategory(long entryId,
                           long groupId,
                           long companyId,
                           long userId,
                           java.lang.String userName,
                           java.sql.Timestamp createDate,
                           java.sql.Timestamp modifiedDate,
                           long parentCategoryId,
                           java.lang.String name,
                           long vocabularyId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

addEntry

protected void addEntry(long assetId,
                        long groupId,
                        long companyId,
                        long userId,
                        java.lang.String userName,
                        java.sql.Timestamp createDate,
                        java.sql.Timestamp modifiedDate,
                        long classNameId,
                        long classPK,
                        boolean visible,
                        java.sql.Timestamp startDate,
                        java.sql.Timestamp endDate,
                        java.sql.Timestamp publishDate,
                        java.sql.Timestamp expirationDate,
                        java.lang.String mimeType,
                        java.lang.String title,
                        java.lang.String description,
                        java.lang.String summary,
                        java.lang.String url,
                        int height,
                        int width,
                        double priority,
                        int viewCount)
                 throws java.lang.Exception
Throws:
java.lang.Exception

addProperty

protected void addProperty(java.lang.String tableName,
                           java.lang.String pkName,
                           long propertyId,
                           long companyId,
                           long userId,
                           java.lang.String userName,
                           java.sql.Timestamp createDate,
                           java.sql.Timestamp modifiedDate,
                           long categoryId,
                           java.lang.String key,
                           java.lang.String value)
                    throws java.lang.Exception
Throws:
java.lang.Exception

addTag

protected void addTag(long entryId,
                      long groupId,
                      long companyId,
                      long userId,
                      java.lang.String userName,
                      java.sql.Timestamp createDate,
                      java.sql.Timestamp modifiedDate,
                      java.lang.String name)
               throws java.lang.Exception
Throws:
java.lang.Exception

addVocabulary

protected void addVocabulary(long vocabularyId,
                             long groupId,
                             long companyId,
                             long userId,
                             java.lang.String userName,
                             java.sql.Timestamp createDate,
                             java.sql.Timestamp modifiedDate,
                             java.lang.String name,
                             java.lang.String description)
                      throws java.lang.Exception
Throws:
java.lang.Exception

copyAssociations

protected void copyAssociations(long tagsEntryId,
                                java.lang.String tableName,
                                java.lang.String pkName)
                         throws java.lang.Exception
Throws:
java.lang.Exception

copyEntriesToCategories

protected void copyEntriesToCategories(long vocabularyId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

copyProperties

protected void copyProperties(long categoryId,
                              java.lang.String tableName,
                              java.lang.String pkName)
                       throws java.lang.Exception
Throws:
java.lang.Exception

doUpgrade

protected void doUpgrade()
                  throws java.lang.Exception
Overrides:
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
Throws:
java.lang.Exception

updateAssetCategories

protected void updateAssetCategories()
                              throws java.lang.Exception
Throws:
java.lang.Exception

updateAssetEntries

protected void updateAssetEntries()
                           throws java.lang.Exception
Throws:
java.lang.Exception

updateAssetTags

protected void updateAssetTags()
                        throws java.lang.Exception
Throws:
java.lang.Exception

updateCategoryResource

protected void updateCategoryResource(long companyId,
                                      long categoryId)
                               throws java.lang.Exception
Throws:
java.lang.Exception

updateResourceCodes

protected void updateResourceCodes()
                            throws java.lang.Exception
Throws:
java.lang.Exception

updateResourceCodes

protected void updateResourceCodes(java.lang.String oldCodeName,
                                   java.lang.String newCodeName)
                            throws java.lang.Exception
Throws:
java.lang.Exception