Class BaseAttachmentsUpgradeProcess

Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v6_2_0.BaseAttachmentsUpgradeProcess
All Implemented Interfaces:
com.liferay.portal.kernel.dao.db.DBProcess, com.liferay.portal.kernel.upgrade.UpgradeStep
Direct Known Subclasses:
UpgradeMessageBoardsAttachments, UpgradeWikiAttachments

public abstract class BaseAttachmentsUpgradeProcess extends com.liferay.portal.kernel.upgrade.UpgradeProcess
Author:
Eudaldo Alonso
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess

    com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable
  • Field Summary

    Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess

    connection
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
    addDLFileEntry(long groupId, long companyId, long userId, String className, long classPK, String userName, Timestamp createDate, long repositoryId, long folderId, String name, String extension, String mimeType, String title, long size)
     
    protected void
    addDLFileVersion(long fileVersionId, long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, long folderId, long fileEntryId, String extension, String mimeType, String title, long size)
     
    protected long
    addDLFolder(long folderId, long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, boolean mountPoint, long parentFolderId, String name, boolean hidden)
     
    protected long
    addRepository(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId)
     
    protected void
    addResourcePermission(long companyId, String className, long primKey, long roleId, long actionIds)
     
    protected void
     
    protected String[]
    getAttachments(long companyId, long containerModelId, long resourcePrimKey)
     
    protected long
    getBitwiseValue(Map<String,Long> bitwiseValues, List<String> actionIds)
     
    protected Map<String,Long>
     
    protected abstract String
     
    protected long
     
    protected long
    getContainerModelFolderId(long groupId, long companyId, long resourcePrimKey, long containerModelId, long userId, String userName, Timestamp createDate)
     
    protected abstract String
    getDirName(long containerModelId, long resourcePrimKey)
     
    protected long
    getFolderId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, long parentFolderId, String name, boolean hidden)
     
    protected abstract String
     
    protected long
    getRepositoryId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId)
     
    protected long
    getRoleId(long companyId, String name)
     
    protected abstract void
     
    protected void
    updateEntryAttachments(long companyId, long groupId, long resourcePrimKey, long containerModelId, long userId, String userName)
     

    Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess

    addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade, upgrade

    Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess

    addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess

    runSQLTemplate, runSQLTemplateString
  • Constructor Details

    • BaseAttachmentsUpgradeProcess

      public BaseAttachmentsUpgradeProcess()
  • Method Details

    • addDLFileEntry

      protected long addDLFileEntry(long groupId, long companyId, long userId, String className, long classPK, String userName, Timestamp createDate, long repositoryId, long folderId, String name, String extension, String mimeType, String title, long size) throws Exception
      Throws:
      Exception
    • addDLFileVersion

      protected void addDLFileVersion(long fileVersionId, long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, long folderId, long fileEntryId, String extension, String mimeType, String title, long size) throws Exception
      Throws:
      Exception
    • addDLFolder

      protected long addDLFolder(long folderId, long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, boolean mountPoint, long parentFolderId, String name, boolean hidden) throws Exception
      Throws:
      Exception
    • addRepository

      protected long addRepository(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) throws Exception
      Throws:
      Exception
    • addResourcePermission

      protected void addResourcePermission(long companyId, String className, long primKey, long roleId, long actionIds) throws Exception
      Throws:
      Exception
    • doUpgrade

      protected void doUpgrade() throws Exception
      Specified by:
      doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
      Throws:
      Exception
    • getAttachments

      protected String[] getAttachments(long companyId, long containerModelId, long resourcePrimKey) throws Exception
      Throws:
      Exception
    • getBitwiseValue

      protected long getBitwiseValue(Map<String,Long> bitwiseValues, List<String> actionIds)
    • getBitwiseValues

      protected Map<String,Long> getBitwiseValues(String name) throws Exception
      Throws:
      Exception
    • getClassName

      protected abstract String getClassName()
    • getClassNameId

      protected long getClassNameId()
    • getContainerModelFolderId

      protected long getContainerModelFolderId(long groupId, long companyId, long resourcePrimKey, long containerModelId, long userId, String userName, Timestamp createDate) throws Exception
      Throws:
      Exception
    • getDirName

      protected abstract String getDirName(long containerModelId, long resourcePrimKey)
    • getFolderId

      protected long getFolderId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, long parentFolderId, String name, boolean hidden) throws Exception
      Throws:
      Exception
    • getPortletId

      protected abstract String getPortletId()
    • getRepositoryId

      protected long getRepositoryId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) throws Exception
      Throws:
      Exception
    • getRoleId

      protected long getRoleId(long companyId, String name) throws Exception
      Throws:
      Exception
    • updateAttachments

      protected abstract void updateAttachments() throws Exception
      Throws:
      Exception
    • updateEntryAttachments

      protected void updateEntryAttachments(long companyId, long groupId, long resourcePrimKey, long containerModelId, long userId, String userName) throws Exception
      Throws:
      Exception