Fórumok

Nyitólap » Liferay Portal » English » 3. Development

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
Balaji Chopparapu
Liferay upgrade to 6.1.0
2012. január 24. 2:52
Válasz

Balaji Chopparapu

Rangsorolás: New Member

Hozzászólások: 18

Csatlakozás dátuma: 2010. október 8.

Legújabb hozzászólások

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
2012. január 24. 6:09
Válasz

Alexander Chow

LIFERAY STAFF

Rangsorolás: Liferay Master

Hozzászólások: 519

Csatlakozás dátuma: 2005. július 19.

Legújabb hozzászólások

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
2012. január 25. 3:50
Válasz

Balaji Chopparapu

Rangsorolás: New Member

Hozzászólások: 18

Csatlakozás dátuma: 2010. október 8.

Legújabb hozzászólások

Thanks Alexander. It worked.
Farrel Chen
RE: Liferay upgrade to 6.1.0
2012. január 27. 13:11
Válasz

Farrel Chen

Rangsorolás: New Member

Hozzászólások: 16

Csatlakozás dátuma: 2011. április 20.

Legújabb hozzászólások

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
2012. március 1. 7:22
Válasz

Jan Eerdekens

Rangsorolás: New Member

Hozzászólások: 15

Csatlakozás dátuma: 2011. január 20.

Legújabb hozzászólások

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
2012. március 6. 9:15
Válasz

Farrel Chen

Rangsorolás: New Member

Hozzászólások: 16

Csatlakozás dátuma: 2011. április 20.

Legújabb hozzászólások

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
2012. március 6. 9:58
Válasz

Jan Eerdekens

Rangsorolás: New Member

Hozzászólások: 15

Csatlakozás dátuma: 2011. január 20.

Legújabb hozzászólások

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.