Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Balaji Chopparapu
Liferay upgrade to 6.1.0
January 24, 2012 2:52 AM
Answer

Balaji Chopparapu

Rank: New Member

Posts: 22

Join Date: October 8, 2010

Recent Posts

Hi,

We are upgrading from liferay 5.2 to latest version liferay 6.1.0. I converted ext to ext plugin using the upgrade utility provided by the liferay but observed following issues.

In liferay 6.1.0 we couldn’t find the classes “MBMessageFlagLocalServiceUtil.java” and “BBCodeUtil.java”. Are they removed? If it is. What are the other alternate classes provided?

Thanks in Advance
Balaji
Alexander Chow
RE: Liferay upgrade to 6.1.0
January 24, 2012 6:09 AM
Answer

Alexander Chow

Community Moderator

Rank: Liferay Master

Posts: 518

Join Date: July 19, 2005

Recent Posts

MBMessageFlagLocalServiceUtil was renamed and optimised into MBThreadFlagLocalServiceUtil. See LPS-20275.

BBCodeUtil was merged with a few other things and renamed BBCodeTranslatorUtil. See LPS-20791

Alex
Balaji Chopparapu
RE: Liferay upgrade to 6.1.0
January 25, 2012 3:50 AM
Answer

Balaji Chopparapu

Rank: New Member

Posts: 22

Join Date: October 8, 2010

Recent Posts

Thanks Alexander. It worked.
Farrel Chen
RE: Liferay upgrade to 6.1.0
January 27, 2012 1:11 PM
Answer

Farrel Chen

Rank: New Member

Posts: 18

Join Date: April 20, 2011

Recent Posts

Thanks for the useful info. However, do you know what are these functions changed to?

The method hasReadFlag(long, MBThread) is undefined for the type MBThreadFlagLocalServiceUtil
The method hasAnswerFlag(long) is undefined for the type MBThreadFlagLocalServiceUtil
The method hasQuestionFlag(long) is undefined for the type MBThreadFlagLocalServiceUtil
The method hasReadFlag(long, MBThread) is undefined for the type MBThreadFlagLocalServiceUtil
Jan Eerdekens
RE: Liferay upgrade to 6.1.0
March 1, 2012 7:22 AM
Answer

Jan Eerdekens

Rank: New Member

Posts: 15

Join Date: January 20, 2011

Recent Posts

I'm running into the same kind of issue after an upgrade. Before I was perfectly able to add question/answer flags using the MBMessageFlagLocalServiceUtil, but now I can't seem to find the new counterparts. Time and time again Liferay keeps breaking APIs without providing enough information, e.g. documentation, on how to migrate code that uses APIs that have changed.
Farrel Chen
RE: Liferay upgrade to 6.1.0
March 6, 2012 9:15 AM
Answer

Farrel Chen

Rank: New Member

Posts: 18

Join Date: April 20, 2011

Recent Posts

Yes that really sucks.
I later figured that it's easier to use the 6.1 version as base, and redo the customization -- I located all the customized code by comparing my code and the 6.0.5 source code.
Jan Eerdekens
RE: Liferay upgrade to 6.1.0
March 6, 2012 9:58 AM
Answer

Jan Eerdekens

Rank: New Member

Posts: 15

Join Date: January 20, 2011

Recent Posts

It seems that now in 6.1 when you create your category you have to pass in "question" as the 5th parameter to the addCategory call instead of adding a question flag later. If you then want to mark an answer you need to do
1MBMessageLocalServiceUtil.updateAnswer(answer.getMessageId(), true, false);
instead of adding an answer flag like before. At least this is what did the trick for me.