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 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
getBitwiseValues
(String name) 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
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
- Specified by:
doUpgrade
in 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
-