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 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 void
addResourcePermission
(PreparedStatement preparedStatement, long companyId, String primKey, long roleId) protected String
protected void
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
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
protected Locale
getDefaultLocale
(long companyId) protected long
protected String[]
protected long
protected void
removeAttribute
(com.liferay.portal.kernel.xml.Element element, String attributeName) protected void
protected void
protected void
protected void
updateContentSearch
(long groupId, String portletId) protected void
updateElement
(long groupId, com.liferay.portal.kernel.xml.Element element) protected void
updateJournalArticleClassNameIdAndClassPK
(long journalStructureId, Long ddmStructureId) protected void
protected void
updateJournalXSDDynamicElement
(com.liferay.portal.kernel.xml.Element element, String defaultLanguageId) protected void
protected void
updateLinkToLayoutElements
(long groupId, com.liferay.portal.kernel.xml.Element element) protected void
updatePreferencesClassPKs
(PortletPreferences portletPreferences, String key) protected void
updateResourcePermission
(long companyId, String oldClassName, String newClassName, long oldPrimKey, long newPrimKey) protected long
updateStructure
(String structureId) protected long
updateStructure
(ResultSet resultSet) protected void
protected void
protected String
upgradePreferences
(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) protected void
upgradeRss
(PortletPreferences portletPreferences) protected void
upgradeScopeIds
(PortletPreferences portletPreferences) protected void
Methods inherited from class com.liferay.portal.upgrade.v6_2_0.BaseUpgradePortletPreferences
deletePortletPreferencesByOwnerType, updatePortletPreferences, updatePortletPreferencesWithOwnerType
Methods inherited from class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
getCompanyId, getGroup, getLayout, getLayoutRevision, getLayoutUuid, getUpdatePortletPreferencesWhereClause, upgradeMultiValuePreference
Methods 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, upgrade
Methods 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, runSQLTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
doUpgrade
in 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:
getPortletIds
in 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:
upgradePreferences
in classcom.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
- Throws:
Exception
-
upgradeRss
- Throws:
Exception
-
upgradeScopeIds
- Throws:
Exception
-
upgradeURLTitle
- Throws:
Exception
-