Liferay 6.0.5

com.liferay.portal.upgrade.v4_3_0.util
Class JournalArticleContentUpgradeColumnImpl

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.util.BaseUpgradeColumnImpl
      extended by com.liferay.portal.upgrade.v4_3_0.util.JournalArticleContentUpgradeColumnImpl
All Implemented Interfaces:
UpgradeColumn

public class JournalArticleContentUpgradeColumnImpl
extends BaseUpgradeColumnImpl


Constructor Summary
JournalArticleContentUpgradeColumnImpl(UpgradeColumn companyIdColumn, UpgradeColumn groupIdColumn, UpgradeColumn articleIdColumn, UpgradeColumn versionColumn, UpgradeColumn structureIdColumn, ValueMapper imageIdMapper)
           
 
Method Summary
protected  void format(String oldCompanyId, long newCompanyId, long groupId, String articleId, double version, Element root)
           
protected  String formatContent(String content)
           
protected  String getNewImageId(String oldCompanyId, String oldImageId)
           
 Object getNewValue(Object oldValue)
           
protected  String replaceIds(String content)
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.util.BaseUpgradeColumnImpl
getName, getNewColumnType, getNewValue, getOldColumnType, getOldValue, increment, isApplicable, setNewValue, setOldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalArticleContentUpgradeColumnImpl

public JournalArticleContentUpgradeColumnImpl(UpgradeColumn companyIdColumn,
                                              UpgradeColumn groupIdColumn,
                                              UpgradeColumn articleIdColumn,
                                              UpgradeColumn versionColumn,
                                              UpgradeColumn structureIdColumn,
                                              ValueMapper imageIdMapper)
Method Detail

getNewValue

public Object getNewValue(Object oldValue)
                   throws Exception
Throws:
Exception

formatContent

protected String formatContent(String content)
                        throws Exception
Throws:
Exception

format

protected void format(String oldCompanyId,
                      long newCompanyId,
                      long groupId,
                      String articleId,
                      double version,
                      Element root)
               throws Exception
Throws:
Exception

getNewImageId

protected String getNewImageId(String oldCompanyId,
                               String oldImageId)
                        throws Exception
Throws:
Exception

replaceIds

protected String replaceIds(String content)
                     throws Exception
Throws:
Exception

Liferay 6.0.5