public class UpgradeJournal
extends com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
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 |
---|
UpgradeJournal() |
Modifier and Type | Method and Description |
---|---|
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 |
addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement,
String name,
String value) |
protected String |
decodeURL(String url) |
protected void |
doUpgrade() |
protected com.liferay.portal.kernel.xml.Element |
fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement,
String attributeName,
String attributeValue) |
protected long |
getCompanyGroupId(long companyId) |
protected long |
getDDMStructureClassNameId() |
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 String |
getDDMXSD(String journalXSD,
Locale defaultLocale) |
protected Locale |
getDefaultLocale(long companyId) |
protected String[] |
getPortletIds() |
protected void |
removeAttribute(com.liferay.portal.kernel.xml.Element element,
String attributeName) |
protected void |
setUpStrutureAttributesMappings() |
protected void |
updateAssetEntryClassTypeId() |
protected void |
updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element,
String defaultLanguageId) |
protected void |
updatePreferencesClassPKs(PortletPreferences preferences,
String key) |
protected void |
updateResourcePermission(long companyId,
String oldClassName,
String newClassName,
long oldPrimKey,
long newPrimKey) |
protected long |
updateStructure(ResultSet rs) |
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) |
protected void |
upgradeURLTitle() |
deletePortletPreferences, getCompanyId, getGroup, getLayout, getLayoutRevision, getLayoutUuid, getUpdatePortletPreferencesWhereClause, updatePortletPreferences, updatePortletPreferences, upgradeMultiValuePreference
alter, clearIndexesCache, getIndexesSQL, getTableName, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
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
Exception
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
Exception
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
Exception
protected void addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement, String name, String value)
protected String decodeURL(String url)
protected void doUpgrade() throws Exception
doUpgrade
in class com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
Exception
protected com.liferay.portal.kernel.xml.Element fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement, String attributeName, String attributeValue)
protected long getCompanyGroupId(long companyId) throws Exception
Exception
protected long getDDMStructureClassNameId()
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 String getDDMXSD(String journalXSD, Locale defaultLocale) throws Exception
Exception
protected Locale getDefaultLocale(long companyId) throws Exception
Exception
protected String[] getPortletIds()
getPortletIds
in class com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
protected void removeAttribute(com.liferay.portal.kernel.xml.Element element, String attributeName)
protected void setUpStrutureAttributesMappings()
protected void updateAssetEntryClassTypeId() throws Exception
Exception
protected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element, String defaultLanguageId)
protected void updatePreferencesClassPKs(PortletPreferences preferences, String key) throws Exception
Exception
protected void updateResourcePermission(long companyId, String oldClassName, String newClassName, long oldPrimKey, long newPrimKey) throws Exception
Exception
protected long updateStructure(ResultSet rs) throws Exception
Exception
protected long updateStructure(String structureId) throws Exception
Exception
protected void updateStructures() throws Exception
Exception
protected void updateTemplates() throws Exception
Exception
protected String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception
upgradePreferences
in class com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
Exception
protected void upgradeURLTitle() throws Exception
Exception