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 -
Method Summary
Modifier and TypeMethodDescriptionprotected longaddDLFileEntry(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 voidaddDLFileVersion(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 longaddDLFolder(long folderId, long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, boolean mountPoint, long parentFolderId, String name, boolean hidden) protected longaddRepository(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) protected voidaddResourcePermission(long companyId, String className, long primKey, long roleId, long actionIds) protected voidprotected String[]getAttachments(long companyId, long containerModelId, long resourcePrimKey) protected longgetBitwiseValues(String name) protected abstract Stringprotected longprotected longgetContainerModelFolderId(long groupId, long companyId, long resourcePrimKey, long containerModelId, long userId, String userName, Timestamp createDate) protected abstract StringgetDirName(long containerModelId, long resourcePrimKey) protected longgetFolderId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long repositoryId, long parentFolderId, String name, boolean hidden) protected abstract Stringprotected longgetRepositoryId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) protected longprotected abstract voidprotected voidupdateEntryAttachments(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, upgradeMethods 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, runSQLTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
doUpgradein classcom.liferay.portal.kernel.upgrade.UpgradeProcess- Throws:
Exception
-
getAttachments
protected String[] getAttachments(long companyId, long containerModelId, long resourcePrimKey) throws Exception - Throws:
Exception
-
getBitwiseValue
-
getBitwiseValues
- Throws:
Exception
-
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
-
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
-
getRepositoryId
protected long getRepositoryId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) throws Exception - Throws:
Exception
-
getRoleId
- Throws:
Exception
-
updateAttachments
- Throws:
Exception
-
updateEntryAttachments
protected void updateEntryAttachments(long companyId, long groupId, long resourcePrimKey, long containerModelId, long userId, String userName) throws Exception - Throws:
Exception
-