com.liferay.portal.upgrade.v7_0_0
Class UpgradeDynamicDataMapping
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v7_0_0.UpgradeDynamicDataMapping
- All Implemented Interfaces:
- DBProcess
- Direct Known Subclasses:
- UpgradeBaseJournal
public class UpgradeDynamicDataMapping
- extends UpgradeProcess
|
Method Summary |
protected void |
addStructureLayout(String uuid_,
long structureLayoutId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long structureVersionId,
String definition)
|
protected void |
addStructureVersion(long structureVersionId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long structureId,
long parentStructureId,
String name,
String description,
String definition,
String storageType,
int type,
int status,
long statusByUserId,
String statusByUserName,
Timestamp statusDate)
|
protected void |
addTemplateVersion(long templateVersionId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long classNameId,
long classPK,
long templateId,
String name,
String description,
String language,
String script,
int status,
long statusByUserId,
String statusByUserName,
Timestamp statusDate)
|
protected void |
doUpgrade()
|
protected DDMForm |
getDDMForm(long structureId)
|
protected DDMFormValues |
getDDMFormValues(DDMForm ddmForm,
String xml)
|
protected String |
getDefaultDDMFormLayoutDefinition(DDMForm ddmForm)
|
protected String |
toJSON(DDMForm ddmForm)
|
protected String |
toJSON(DDMFormValues ddmFormValues)
|
protected void |
transformFileUploadDDMFormFields(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long entryId,
String entryVersion,
DDMFormValues ddmFormValues)
|
protected void |
updateContent(DDMForm ddmForm,
long contentId)
|
protected void |
updateContent(long contentId,
String data_)
|
protected DDMForm |
updateDDMFormFields(DDMForm ddmForm)
|
protected void |
updateStructureStorageType()
|
protected void |
updateStructureVersionStorageType()
|
protected void |
upgradeDDLFileUploadReferences()
|
protected void |
upgradeDDMSchema()
|
protected void |
upgradeDLFileUploadReferences()
|
protected void |
upgradeFileUploadReferences()
|
protected void |
upgradeStructureDefinition(long structureId,
String definition)
|
protected void |
upgradeStructuresAndAddStructureVersionsAndLayouts()
|
protected void |
upgradeTemplatesAndAddTemplateVersions()
|
protected void |
upgradeTemplateScript(long templateId,
String script)
|
protected void |
upgradeXMLStorageAdapter()
|
| 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 |
UpgradeDynamicDataMapping
public UpgradeDynamicDataMapping()
addStructureLayout
protected void addStructureLayout(String uuid_,
long structureLayoutId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long structureVersionId,
String definition)
throws Exception
- Throws:
Exception
addStructureVersion
protected void addStructureVersion(long structureVersionId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long structureId,
long parentStructureId,
String name,
String description,
String definition,
String storageType,
int type,
int status,
long statusByUserId,
String statusByUserName,
Timestamp statusDate)
throws Exception
- Throws:
Exception
addTemplateVersion
protected void addTemplateVersion(long templateVersionId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long classNameId,
long classPK,
long templateId,
String name,
String description,
String language,
String script,
int status,
long statusByUserId,
String statusByUserName,
Timestamp statusDate)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade in class UpgradeProcess
- Throws:
Exception
getDDMForm
protected DDMForm getDDMForm(long structureId)
throws Exception
- Throws:
Exception
getDDMFormValues
protected DDMFormValues getDDMFormValues(DDMForm ddmForm,
String xml)
throws Exception
- Throws:
Exception
getDefaultDDMFormLayoutDefinition
protected String getDefaultDDMFormLayoutDefinition(DDMForm ddmForm)
toJSON
protected String toJSON(DDMForm ddmForm)
toJSON
protected String toJSON(DDMFormValues ddmFormValues)
transformFileUploadDDMFormFields
protected void transformFileUploadDDMFormFields(long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
long entryId,
String entryVersion,
DDMFormValues ddmFormValues)
throws Exception
- Throws:
Exception
updateContent
protected void updateContent(DDMForm ddmForm,
long contentId)
throws Exception
- Throws:
Exception
updateContent
protected void updateContent(long contentId,
String data_)
throws Exception
- Throws:
Exception
updateDDMFormFields
protected DDMForm updateDDMFormFields(DDMForm ddmForm)
updateStructureStorageType
protected void updateStructureStorageType()
throws Exception
- Throws:
Exception
updateStructureVersionStorageType
protected void updateStructureVersionStorageType()
throws Exception
- Throws:
Exception
upgradeDDLFileUploadReferences
protected void upgradeDDLFileUploadReferences()
throws Exception
- Throws:
Exception
upgradeDDMSchema
protected void upgradeDDMSchema()
throws Exception
- Throws:
Exception
upgradeDLFileUploadReferences
protected void upgradeDLFileUploadReferences()
throws Exception
- Throws:
Exception
upgradeFileUploadReferences
protected void upgradeFileUploadReferences()
throws Exception
- Throws:
Exception
upgradeStructureDefinition
protected void upgradeStructureDefinition(long structureId,
String definition)
throws Exception
- Throws:
Exception
upgradeStructuresAndAddStructureVersionsAndLayouts
protected void upgradeStructuresAndAddStructureVersionsAndLayouts()
throws Exception
- Throws:
Exception
upgradeTemplatesAndAddTemplateVersions
protected void upgradeTemplatesAndAddTemplateVersions()
throws Exception
- Throws:
Exception
upgradeTemplateScript
protected void upgradeTemplateScript(long templateId,
String script)
throws Exception
- Throws:
Exception
upgradeXMLStorageAdapter
protected void upgradeXMLStorageAdapter()
throws Exception
- Throws:
Exception