public abstract class BaseUpgradeAttachments extends UpgradeProcess
UpgradeProcess.Alterable, UpgradeProcess.AlterColumnName, UpgradeProcess.AlterColumnType, UpgradeProcess.AlterTableAddColumn, UpgradeProcess.AlterTableDropColumn
connection
Constructor and Description |
---|
BaseUpgradeAttachments() |
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, getIndexesSQL, getTableName, getThreshold, increment, increment, increment, isPortal62TableName, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
doHasTable, hasColumn, hasColumnType, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
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
Exception
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
Exception
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
Exception
protected long addRepository(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) throws Exception
Exception
protected void addResourcePermission(long companyId, String className, long primKey, long roleId, long actionIds) throws Exception
Exception
protected void doUpgrade() throws Exception
doUpgrade
in class UpgradeProcess
Exception
protected String[] getAttachments(long companyId, long containerModelId, long resourcePrimKey) throws Exception
Exception
protected long getBitwiseValue(Map<String,Long> bitwiseValues, List<String> actionIds)
protected Map<String,Long> getBitwiseValues(String name) throws Exception
Exception
protected 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
Exception
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) throws Exception
Exception
protected abstract String getPortletId()
protected long getRepositoryId(long groupId, long companyId, long userId, String userName, Timestamp createDate, long classNameId, String portletId) throws Exception
Exception
protected long getRoleId(long companyId, String name) throws Exception
Exception
protected abstract void updateAttachments() throws Exception
Exception
protected void updateEntryAttachments(long companyId, long groupId, long resourcePrimKey, long containerModelId, long userId, String userName) throws Exception
Exception