Class BasePortletPreferencesUpgradeProcess

Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.BasePortletPreferencesUpgradeProcess
All Implemented Interfaces:
DBProcess, UpgradeStep
Direct Known Subclasses:
CamelCaseUpgradePortletPreferences

public abstract class BasePortletPreferencesUpgradeProcess extends UpgradeProcess
Author:
Jorge Ferrer, Brian Wing Shun Chan
  • Constructor Details

    • BasePortletPreferencesUpgradeProcess

      public BasePortletPreferencesUpgradeProcess()
  • Method Details

    • doUpgrade

      protected void doUpgrade() throws Exception
      Specified by:
      doUpgrade in class UpgradeProcess
      Throws:
      Exception
    • getCompanyId

      protected long getCompanyId(String sql, long primaryKey) throws Exception
      Throws:
      Exception
    • getGroup

      protected Object[] getGroup(long groupId) throws Exception
      Throws:
      Exception
    • getLayout

      protected Object[] getLayout(long plid) throws Exception
      Throws:
      Exception
    • getLayoutRevision

      protected Object[] getLayoutRevision(long layoutRevisionId) throws Exception
      Throws:
      Exception
    • getLayoutUuid

      protected String getLayoutUuid(long plid, long layoutId) throws Exception
      Throws:
      Exception
    • getPortletIds

      protected String[] getPortletIds()
    • getUpdatePortletPreferencesWhereClause

      protected String getUpdatePortletPreferencesWhereClause()
    • updatePortletPreferences

      protected void updatePortletPreferences() throws Exception
      Throws:
      Exception
    • upgradeMultiValuePreference

      protected void upgradeMultiValuePreference(jakarta.portlet.PortletPreferences portletPreferences, String key) throws jakarta.portlet.ReadOnlyException
      Throws:
      jakarta.portlet.ReadOnlyException
    • upgradePreferences

      protected abstract String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception
      Throws:
      Exception