public abstract class BaseAttachmentsUpgradeProcess extends UpgradeProcess
UpgradeProcess.Alterable, UpgradeProcess.AlterColumnName, UpgradeProcess.AlterColumnType, UpgradeProcess.AlterTableAddColumn, UpgradeProcess.AlterTableDropColumnconnection| Constructor and Description |
|---|
BaseAttachmentsUpgradeProcess() |
| Modifier and Type | Method and 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 |
doUpgrade() |
protected String[] |
getAttachments(long companyId,
long containerModelId,
long resourcePrimKey) |
protected long |
getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds) |
protected Map<String,Long> |
getBitwiseValues(String name) |
protected abstract String |
getClassName() |
protected long |
getClassNameId() |
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 |
getPortletId() |
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 |
updateAttachments() |
protected void |
updateEntryAttachments(long companyId,
long groupId,
long resourcePrimKey,
long containerModelId,
long userId,
String userName) |
alter, clearIndexesCache, ensureTableExists, getConnection, getIndexesSQL, getIndexSQLs, getTableColumnsMap, getTableName, getThreshold, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, removePrimaryKey, updateIndexes, upgrade, upgrade, upgrade, upgradeTable, upgradeTabledoHasTable, hasColumn, hasColumnType, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, runSQLTemplateStringprotected 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
Exceptionprotected 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
Exceptionprotected 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
Exceptionprotected long addRepository(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long classNameId,
String portletId)
throws Exception
Exceptionprotected void addResourcePermission(long companyId,
String className,
long primKey,
long roleId,
long actionIds)
throws Exception
Exceptionprotected void doUpgrade()
throws Exception
doUpgrade in class UpgradeProcessExceptionprotected String[] getAttachments(long companyId,
long containerModelId,
long resourcePrimKey)
throws Exception
Exceptionprotected long getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds)
protected Map<String,Long> getBitwiseValues(String name)
throws Exception
Exceptionprotected abstract String getClassName()
protected long getClassNameId()
protected long getContainerModelFolderId(long groupId,
long companyId,
long resourcePrimKey,
long containerModelId,
long userId,
String userName,
Timestamp createDate)
throws Exception
Exceptionprotected 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)
throws Exception
Exceptionprotected abstract String getPortletId()
protected long getRepositoryId(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long classNameId,
String portletId)
throws Exception
Exceptionprotected long getRoleId(long companyId,
String name)
throws Exception
Exceptionprotected abstract void updateAttachments()
throws Exception
Exceptionprotected void updateEntryAttachments(long companyId,
long groupId,
long resourcePrimKey,
long containerModelId,
long userId,
String userName)
throws Exception
Exception