Class UpgradeJournal
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
com.liferay.portal.upgrade.v6_2_0.BaseUpgradePortletPreferences
com.liferay.portal.upgrade.v6_2_0.UpgradeJournal
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.db.DBProcess,com.liferay.portal.kernel.upgrade.UpgradeStep
- Author:
- Brian Wing Shun Chan, Marcellus Tavares, Juan Fernández, Bruno Basto
-
Nested Class Summary
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable -
Field Summary
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDDMStructure(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 voidaddDDMStructure(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 voidaddDDMTemplate(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 voidaddMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement, String name, String value) protected voidaddResourcePermission(PreparedStatement preparedStatement, long companyId, String primKey, long roleId) protected Stringprotected voidprotected com.liferay.portal.kernel.xml.ElementfetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement, String attributeName, String attributeValue) protected longgetCompanyGroupId(long companyId) protected longprotected longgetDDMStructureId(long groupId, long companyGroupId, String structureId) protected longgetDDMStructureId(long groupId, long companyGroupId, String structureId, boolean warn) protected longgetDDMStructureId(long groupId, String structureId, boolean warn) protected Stringprotected LocalegetDefaultLocale(long companyId) protected longprotected String[]protected longprotected voidremoveAttribute(com.liferay.portal.kernel.xml.Element element, String attributeName) protected voidprotected voidprotected voidprotected voidupdateContentSearch(long groupId, String portletId) protected voidupdateElement(long groupId, com.liferay.portal.kernel.xml.Element element) protected voidupdateJournalArticleClassNameIdAndClassPK(long journalStructureId, Long ddmStructureId) protected voidprotected voidupdateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element, String defaultLanguageId) protected voidprotected voidupdateLinkToLayoutElements(long groupId, com.liferay.portal.kernel.xml.Element element) protected voidupdatePreferencesClassPKs(PortletPreferences portletPreferences, String key) protected voidupdateResourcePermission(long companyId, String oldClassName, String newClassName, long oldPrimKey, long newPrimKey) protected longupdateStructure(String structureId) protected longupdateStructure(ResultSet resultSet) protected voidprotected voidprotected StringupgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) protected voidupgradeRss(PortletPreferences portletPreferences) protected voidupgradeScopeIds(PortletPreferences portletPreferences) protected voidMethods inherited from class com.liferay.portal.upgrade.v6_2_0.BaseUpgradePortletPreferences
deletePortletPreferencesByOwnerType, updatePortletPreferences, updatePortletPreferencesWithOwnerTypeMethods inherited from class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
getCompanyId, getGroup, getLayout, getLayoutRevision, getLayoutUuid, getUpdatePortletPreferencesWhereClause, upgradeMultiValuePreferenceMethods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade, upgradeMethods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Constructor Details
-
UpgradeJournal
public UpgradeJournal()
-
-
Method Details
-
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
-
addMetadataEntry
-
addResourcePermission
protected void addResourcePermission(PreparedStatement preparedStatement, long companyId, String primKey, long roleId) -
decodeURL
-
doUpgrade
- Overrides:
doUpgradein classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess- Throws:
Exception
-
fetchMetadataEntry
-
getCompanyGroupId
- Throws:
Exception
-
getDDMStructureClassNameId
protected long getDDMStructureClassNameId() -
getDDMStructureId
-
getDDMStructureId
protected long getDDMStructureId(long groupId, long companyGroupId, String structureId, boolean warn) -
getDDMStructureId
-
getDDMXSD
- Throws:
Exception
-
getDefaultLocale
- Throws:
Exception
-
getJournalStructureClassNameId
protected long getJournalStructureClassNameId() -
getPortletIds
- Overrides:
getPortletIdsin classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
-
getRoleId
- Throws:
Exception
-
removeAttribute
-
setUpStrutureAttributesMappings
protected void setUpStrutureAttributesMappings() -
updateAssetEntryClassTypeId
- Throws:
Exception
-
updateContentSearch
- Throws:
Exception
-
updateContentSearch
- Throws:
Exception
-
updateElement
protected void updateElement(long groupId, com.liferay.portal.kernel.xml.Element element) -
updateJournalArticleClassNameIdAndClassPK
protected void updateJournalArticleClassNameIdAndClassPK(long journalStructureId, Long ddmStructureId) throws Exception - Throws:
Exception
-
updateJournalResourcePermission
- Throws:
Exception
-
updateJournalXSDDynamicElement
protected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element, String defaultLanguageId) -
updateLinkToLayoutContent
- Throws:
Exception
-
updateLinkToLayoutElements
protected void updateLinkToLayoutElements(long groupId, com.liferay.portal.kernel.xml.Element element) -
updatePreferencesClassPKs
protected void updatePreferencesClassPKs(PortletPreferences portletPreferences, 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
- Throws:
Exception
-
updateStructure
- Throws:
Exception
-
updateStructures
- Throws:
Exception
-
updateTemplates
- Throws:
Exception
-
upgradePreferences
protected String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception - Specified by:
upgradePreferencesin classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess- Throws:
Exception
-
upgradeRss
- Throws:
Exception
-
upgradeScopeIds
- Throws:
Exception
-
upgradeURLTitle
- Throws:
Exception
-