com.liferay.portal.upgrade.v6_2_0
Class UpgradeJournal
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
com.liferay.portal.upgrade.v6_2_0.UpgradeJournal
- All Implemented Interfaces:
- DBProcess
public class UpgradeJournal
- extends BaseUpgradePortletPreferences
Method Summary |
protected void |
addDDMStructure(String uuid_,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentDDMStructureId,
long classNameId,
String ddmStructureKey,
String name,
String description,
String xsd,
String storageType,
int type)
|
protected void |
addDDMStructure(String uuid_,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String parentStructureId,
String ddmStructureKey,
String name,
String description,
String xsd)
|
protected void |
addDDMTemplate(String uuid_,
long ddmTemplateId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
String templateKey,
String name,
String description,
String type,
String mode,
String language,
String script,
boolean cacheable,
boolean smallImage,
long smallImageId,
String smallImageURL)
|
protected void |
doUpgrade()
|
protected long |
getCompanyGroupId(long companyId)
|
protected long |
getDDMStructureId(long groupId,
long companyGroupId,
String structureId)
|
protected long |
getDDMStructureId(long groupId,
long companyGroupId,
String structureId,
boolean warn)
|
protected long |
getDDMStructureId(long groupId,
String structureId,
boolean warn)
|
protected Locale |
getDefaultLocale(String xml)
|
protected String[] |
getPortletIds()
|
protected void |
updateAssetEntryClassTypeId()
|
protected void |
updatePreferencesClassPKs(PortletPreferences preferences,
String key)
|
protected void |
updateResourcePermission(long companyId,
String oldClassName,
String newClassName,
long oldPrimKey,
long newPrimKey)
|
protected long |
updateStructure(String structureId)
|
protected void |
updateStructures()
|
protected void |
updateTemplates()
|
protected String |
upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
|
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 |
UpgradeJournal
public UpgradeJournal()
addDDMStructure
protected void addDDMStructure(String uuid_,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long parentDDMStructureId,
long classNameId,
String ddmStructureKey,
String name,
String description,
String xsd,
String storageType,
int type)
throws Exception
- Throws:
Exception
addDDMStructure
protected void addDDMStructure(String uuid_,
long ddmStructureId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
String parentStructureId,
String ddmStructureKey,
String name,
String description,
String xsd)
throws Exception
- Throws:
Exception
addDDMTemplate
protected void addDDMTemplate(String uuid_,
long ddmTemplateId,
long groupId,
long companyId,
long userId,
String userName,
Timestamp createDate,
Timestamp modifiedDate,
long classNameId,
long classPK,
String templateKey,
String name,
String description,
String type,
String mode,
String language,
String script,
boolean cacheable,
boolean smallImage,
long smallImageId,
String smallImageURL)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Overrides:
doUpgrade
in class BaseUpgradePortletPreferences
- Throws:
Exception
getCompanyGroupId
protected long getCompanyGroupId(long companyId)
throws Exception
- Throws:
Exception
getDDMStructureId
protected long getDDMStructureId(long groupId,
long companyGroupId,
String structureId)
getDDMStructureId
protected long getDDMStructureId(long groupId,
long companyGroupId,
String structureId,
boolean warn)
getDDMStructureId
protected long getDDMStructureId(long groupId,
String structureId,
boolean warn)
getDefaultLocale
protected Locale getDefaultLocale(String xml)
getPortletIds
protected String[] getPortletIds()
- Overrides:
getPortletIds
in class BaseUpgradePortletPreferences
updateAssetEntryClassTypeId
protected void updateAssetEntryClassTypeId()
throws Exception
- Throws:
Exception
updatePreferencesClassPKs
protected void updatePreferencesClassPKs(PortletPreferences preferences,
String key)
throws Exception
- Throws:
Exception
updateResourcePermission
protected void updateResourcePermission(long companyId,
String oldClassName,
String newClassName,
long oldPrimKey,
long newPrimKey)
throws Exception
- Throws:
Exception
updateStructure
protected long updateStructure(String structureId)
throws Exception
- Throws:
Exception
updateStructures
protected void updateStructures()
throws Exception
- Throws:
Exception
updateTemplates
protected void updateTemplates()
throws Exception
- Throws:
Exception
upgradePreferences
protected String upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
throws Exception
- Specified by:
upgradePreferences
in class BaseUpgradePortletPreferences
- Throws:
Exception