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

public class UpgradeJournal extends BaseUpgradePortletPreferences
Author:
Brian Wing Shun Chan, Marcellus Tavares, Juan Fernández, Bruno Basto
  • 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

      protected void addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement, String name, String value)
    • addResourcePermission

      protected void addResourcePermission(PreparedStatement preparedStatement, long companyId, String primKey, long roleId)
    • decodeURL

      protected String decodeURL(String url)
    • doUpgrade

      protected void doUpgrade() throws Exception
      Overrides:
      doUpgrade in class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
      Throws:
      Exception
    • fetchMetadataEntry

      protected com.liferay.portal.kernel.xml.Element fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement, String attributeName, String attributeValue)
    • getCompanyGroupId

      protected long getCompanyGroupId(long companyId) throws Exception
      Throws:
      Exception
    • getDDMStructureClassNameId

      protected long getDDMStructureClassNameId()
    • 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)
    • getDDMXSD

      protected String getDDMXSD(String journalXSD, Locale defaultLocale) throws Exception
      Throws:
      Exception
    • getDefaultLocale

      protected Locale getDefaultLocale(long companyId) throws Exception
      Throws:
      Exception
    • getJournalStructureClassNameId

      protected long getJournalStructureClassNameId()
    • getPortletIds

      protected String[] getPortletIds()
      Overrides:
      getPortletIds in class com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
    • getRoleId

      protected long getRoleId(String roleName) throws Exception
      Throws:
      Exception
    • removeAttribute

      protected void removeAttribute(com.liferay.portal.kernel.xml.Element element, String attributeName)
    • setUpStrutureAttributesMappings

      protected void setUpStrutureAttributesMappings()
    • updateAssetEntryClassTypeId

      protected void updateAssetEntryClassTypeId() throws Exception
      Throws:
      Exception
    • updateContentSearch

      protected void updateContentSearch() throws Exception
      Throws:
      Exception
    • updateContentSearch

      protected void updateContentSearch(long groupId, String portletId) throws Exception
      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

      protected void updateJournalResourcePermission() throws Exception
      Throws:
      Exception
    • updateJournalXSDDynamicElement

      protected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element, String defaultLanguageId)
    • updateLinkToLayoutContent

      protected void updateLinkToLayoutContent() throws Exception
      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

      protected long updateStructure(ResultSet resultSet) 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 com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
      Throws:
      Exception
    • upgradeRss

      protected void upgradeRss(PortletPreferences portletPreferences) throws Exception
      Throws:
      Exception
    • upgradeScopeIds

      protected void upgradeScopeIds(PortletPreferences portletPreferences) throws Exception
      Throws:
      Exception
    • upgradeURLTitle

      protected void upgradeURLTitle() throws Exception
      Throws:
      Exception