public class UpgradeImageGallery
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterColumnName, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterColumnType, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterTableAddColumn, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterTableDropColumn
Constructor and Description |
---|
UpgradeImageGallery() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDLFileEntry(String uuid,
long fileEntryId,
long groupId,
long companyId,
long userId,
String userName,
long versionUserId,
String versionUserName,
Timestamp createDate,
Timestamp modifiedDate,
long repositoryId,
long folderId,
String name,
String extension,
String mimeType,
String title,
String description,
String extraSettings,
long fileEntryTypeId,
String version,
long size,
int readCount,
long smallImageId,
long largeImageId,
long custom1ImageId,
long custom2ImageId) |
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,
String description,
String changeLog,
String extraSettings,
long fileEntryTypeId,
String version,
long size,
int status,
long statusByUserId,
String statusByUserName,
Timestamp statusDate) |
protected void |
addDLFolderEntry(String uuid,
long folderId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long repositoryId,
long parentFolderId,
String name,
String description,
Timestamp lastPostDate) |
protected void |
addIGImageDLFileEntryType() |
protected void |
addIGImageDLFileEntryType(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate) |
protected void |
deleteConflictingIGPermissions(String igResourceName,
String dlResourceName) |
protected void |
doUpgrade() |
protected long |
getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds) |
protected Map<String,Long> |
getBitwiseValues(String name) |
protected long |
getCompanyGroupId(long companyId) |
protected byte[] |
getDatabaseImageAsBytes(com.liferay.portal.kernel.model.Image image) |
protected long |
getDefaultUserId(long companyId) |
protected byte[] |
getHookImageAsBytes(com.liferay.portal.kernel.model.Image image) |
protected InputStream |
getHookImageAsStream(com.liferay.portal.kernel.model.Image image) |
protected com.liferay.portal.kernel.model.Image |
getImage(long imageId) |
protected long |
getMaxFileVersionId(long fileEntryId) |
protected List<String> |
getResourceActionIds(Map<String,Long> bitwiseValues,
long actionIdsLong) |
protected void |
migrateFile(long repositoryId,
long companyId,
String name,
com.liferay.portal.kernel.model.Image image) |
protected void |
migrateImage(long imageId) |
protected void |
migrateImage(long fileEntryId,
long companyId,
long groupId,
long folderId,
String name,
long smallImageId,
long largeImageId,
long custom1ImageId,
long custom2ImageId) |
protected void |
migrateImageFiles() |
protected void |
migrateThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long largeImageId,
long thumbnailImageId,
long custom1ImageId,
long custom2ImageId) |
protected void |
updateIGFolderEntries() |
protected void |
updateIGFolderPermissions() |
protected void |
updateIGImageEntries() |
protected void |
updateIGImageEntries(long companyId,
long fileEntryTypeId) |
protected boolean |
updateIGImageFolderId(long groupId,
String name,
long parentFolderId,
long folderId,
Map<Long,Long> folderIds) |
protected void |
updateIGImagePermissions() |
protected void |
updateIGtoDLPermissions(String igResourceName,
String dlResourceName) |
alter, clearIndexesCache, getIndexesSQL, getTableName, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
public UpgradeImageGallery() throws Exception
Exception
protected void addDLFileEntry(String uuid, long fileEntryId, long groupId, long companyId, long userId, String userName, long versionUserId, String versionUserName, Timestamp createDate, Timestamp modifiedDate, long repositoryId, long folderId, String name, String extension, String mimeType, String title, String description, String extraSettings, long fileEntryTypeId, String version, long size, int readCount, long smallImageId, long largeImageId, long custom1ImageId, long custom2ImageId) 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, String description, String changeLog, String extraSettings, long fileEntryTypeId, String version, long size, int status, long statusByUserId, String statusByUserName, Timestamp statusDate) throws Exception
Exception
protected void addDLFolderEntry(String uuid, long folderId, long groupId, long companyId, long userId, String userName, Timestamp createDate, Timestamp modifiedDate, long repositoryId, long parentFolderId, String name, String description, Timestamp lastPostDate) throws Exception
Exception
protected void addIGImageDLFileEntryType() throws Exception
Exception
protected void addIGImageDLFileEntryType(long groupId, long companyId, long userId, String userName, Timestamp createDate, Timestamp modifiedDate) throws Exception
Exception
protected void deleteConflictingIGPermissions(String igResourceName, String dlResourceName) throws Exception
Exception
protected void doUpgrade() throws Exception
doUpgrade
in class com.liferay.portal.kernel.upgrade.UpgradeProcess
Exception
protected long getBitwiseValue(Map<String,Long> bitwiseValues, List<String> actionIds)
protected Map<String,Long> getBitwiseValues(String name) throws Exception
Exception
protected long getCompanyGroupId(long companyId) throws Exception
Exception
protected byte[] getDatabaseImageAsBytes(com.liferay.portal.kernel.model.Image image) throws SQLException
SQLException
protected long getDefaultUserId(long companyId) throws Exception
Exception
protected byte[] getHookImageAsBytes(com.liferay.portal.kernel.model.Image image) throws IOException, com.liferay.portal.kernel.exception.PortalException, SQLException
IOException
com.liferay.portal.kernel.exception.PortalException
SQLException
protected InputStream getHookImageAsStream(com.liferay.portal.kernel.model.Image image) throws com.liferay.portal.kernel.exception.PortalException, SQLException
com.liferay.portal.kernel.exception.PortalException
SQLException
protected com.liferay.portal.kernel.model.Image getImage(long imageId) throws Exception
Exception
protected long getMaxFileVersionId(long fileEntryId)
protected List<String> getResourceActionIds(Map<String,Long> bitwiseValues, long actionIdsLong)
protected void migrateFile(long repositoryId, long companyId, String name, com.liferay.portal.kernel.model.Image image) throws Exception
Exception
protected void migrateImage(long imageId) throws Exception
Exception
protected void migrateImage(long fileEntryId, long companyId, long groupId, long folderId, String name, long smallImageId, long largeImageId, long custom1ImageId, long custom2ImageId) throws Exception
Exception
protected void migrateImageFiles() throws Exception
Exception
protected void migrateThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long largeImageId, long thumbnailImageId, long custom1ImageId, long custom2ImageId) throws Exception
Exception
protected void updateIGFolderEntries() throws Exception
Exception
protected void updateIGFolderPermissions() throws Exception
Exception
protected void updateIGImageEntries() throws Exception
Exception
protected void updateIGImageEntries(long companyId, long fileEntryTypeId) throws Exception
Exception
protected boolean updateIGImageFolderId(long groupId, String name, long parentFolderId, long folderId, Map<Long,Long> folderIds) throws Exception
Exception
protected void updateIGImagePermissions() throws Exception
Exception
protected void updateIGtoDLPermissions(String igResourceName, String dlResourceName) throws Exception
Exception