com.liferay.portal.kernel.upgrade.v6_2_0
Class BaseUpgradeAttachments
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.v6_2_0.BaseUpgradeAttachments
- All Implemented Interfaces:
- DBProcess
public abstract class BaseUpgradeAttachments
- extends UpgradeProcess
Method Summary |
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)
|
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
doHasTable, getThreshold, hasTable, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, 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 |
BaseUpgradeAttachments
public BaseUpgradeAttachments()
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
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class UpgradeProcess
- Throws:
Exception
getAttachments
protected String[] getAttachments(long companyId,
long containerModelId,
long resourcePrimKey)
throws Exception
- Throws:
Exception
getBitwiseValue
protected long getBitwiseValue(Map<String,Long> bitwiseValues,
List<String> actionIds)
getBitwiseValues
protected Map<String,Long> getBitwiseValues(String name)
throws Exception
- Throws:
Exception
getClassName
protected abstract String 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
protected abstract String getDirName(long containerModelId,
long resourcePrimKey)
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
protected abstract String getPortletId()
getRepositoryId
protected long getRepositoryId(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long classNameId,
String portletId)
throws Exception
- Throws:
Exception
getRoleId
protected long getRoleId(long companyId,
String name)
throws Exception
- Throws:
Exception
updateAttachments
protected abstract void updateAttachments()
throws Exception
- Throws:
Exception
updateEntryAttachments
protected void updateEntryAttachments(long companyId,
long groupId,
long resourcePrimKey,
long containerModelId,
long userId,
String userName)
throws Exception
- Throws:
Exception