com.liferay.portal.upgrade.v6_1_0
Class UpgradeImageGallery
java.lang.Object
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v6_1_0.UpgradeImageGallery
public class UpgradeImageGallery
- extends UpgradeProcess
Method Summary |
protected void |
addDLFileEntry(String uuid,
long fileEntryId,
long groupId,
long companyId,
long userId,
String userName,
long versionUserId,
String versionUserName,
Date createDate,
Date modifiedDate,
long repositoryId,
long folderId,
String name,
String extension,
String mimeType,
String title,
String description,
String extraSettings,
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,
Date 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,
Date statusDate)
|
protected void |
addDLFolderEntry(String uuid,
long folderId,
long groupId,
long companyId,
long userId,
String userName,
Date createDate,
Date modifiedDate,
long repositoryId,
long parentFolderId,
String name,
String description,
Date lastPostDate)
|
protected void |
doUpgrade()
|
protected Object[] |
getImage(long imageId)
|
protected void |
migrateFile(long repositoryId,
long companyId,
String name,
Image image)
|
protected void |
migrateImage(long imageId)
|
protected void |
migrateImageFiles()
|
protected void |
updateIGFolderEntries()
|
protected void |
updateIGFolderPermissions()
|
protected void |
updateIGImageEntries()
|
protected boolean |
updateIGImageFolderId(long groupId,
String name,
long parentFolderId,
long folderId,
Map<Long,Long> folderIds)
|
protected void |
updateIGImagePermissions()
|
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, runSQL, runSQL, runSQLTemplate, runSQLTemplate, tableHasColumn, tableHasData, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeImageGallery
public UpgradeImageGallery()
throws Exception
- Throws:
Exception
addDLFileEntry
protected void addDLFileEntry(String uuid,
long fileEntryId,
long groupId,
long companyId,
long userId,
String userName,
long versionUserId,
String versionUserName,
Date createDate,
Date modifiedDate,
long repositoryId,
long folderId,
String name,
String extension,
String mimeType,
String title,
String description,
String extraSettings,
String version,
long size,
int readCount,
long smallImageId,
long largeImageId,
long custom1ImageId,
long custom2ImageId)
throws Exception
- Throws:
Exception
addDLFileVersion
protected void addDLFileVersion(long fileVersionId,
long groupId,
long companyId,
long userId,
String userName,
Date 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,
Date statusDate)
throws Exception
- Throws:
Exception
addDLFolderEntry
protected void addDLFolderEntry(String uuid,
long folderId,
long groupId,
long companyId,
long userId,
String userName,
Date createDate,
Date modifiedDate,
long repositoryId,
long parentFolderId,
String name,
String description,
Date lastPostDate)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class UpgradeProcess
- Throws:
Exception
getImage
protected Object[] getImage(long imageId)
throws Exception
- Throws:
Exception
migrateFile
protected void migrateFile(long repositoryId,
long companyId,
String name,
Image image)
throws Exception
- Throws:
Exception
migrateImage
protected void migrateImage(long imageId)
throws Exception
- Throws:
Exception
migrateImageFiles
protected void migrateImageFiles()
throws Exception
- Throws:
Exception
updateIGFolderEntries
protected void updateIGFolderEntries()
throws Exception
- Throws:
Exception
updateIGFolderPermissions
protected void updateIGFolderPermissions()
throws Exception
- Throws:
Exception
updateIGImageEntries
protected void updateIGImageEntries()
throws Exception
- Throws:
Exception
updateIGImageFolderId
protected boolean updateIGImageFolderId(long groupId,
String name,
long parentFolderId,
long folderId,
Map<Long,Long> folderIds)
throws Exception
- Throws:
Exception
updateIGImagePermissions
protected void updateIGImagePermissions()
throws Exception
- Throws:
Exception