Liferay 7.0-ga1 portal-impl

com.liferay.portal.upgrade.v6_2_0
Class UpgradeJournal

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
          extended by com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
              extended by 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 com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
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
 
Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
UpgradeJournal()
           
 
Method Summary
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)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
deletePortletPreferences, getCompanyId, getGroup, getLayout, getLayoutUuid, getUpdatePortletPreferencesWhereClause, updatePortletPreferences, updatePortletPreferences, upgradeMultiValuePreference
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
alter, clearIndexesCache, getIndexesSQL, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
doHasTable, hasColumn, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeJournal

public UpgradeJournal()
Method Detail

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)

decodeURL

protected String decodeURL(String url)

doUpgrade

protected void doUpgrade()
                  throws Exception
Overrides:
doUpgrade in class com.liferay.portal.kernel.upgrade.BaseUpgradePortletPreferences
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

getPortletIds

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

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

updateJournalXSDDynamicElement

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

updatePreferencesClassPKs

protected void updatePreferencesClassPKs(PortletPreferences preferences,
                                         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 rs)
                        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.BaseUpgradePortletPreferences
Throws:
Exception

Liferay 7.0-ga1 portal-impl