Foros de discusión

ProgressTracker in 6.2

thumbnail
Alberto Martínez, modificado hace 7 años.

ProgressTracker in 6.2

New Member Mensajes: 23 Fecha de incorporación: 4/12/15 Mensajes recientes
Hi!

The class com.liferay.portal.kernel.util.ProgressTracker in 6.1 have
setProgress(int progress)
method, but in 6.2 version this method isn´t
I have find two method but I don´t know which is the correct to migration

	setPercent(int percent) 
        setStatus(int status) 


Thanks in advance
thumbnail
Juan Gonzalez, modificado hace 7 años.

RE: ProgressTracker in 6.2 (Respuesta)

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Alberto Martínez:
Hi!

The class com.liferay.portal.kernel.util.ProgressTracker in 6.1 have
setProgress(int progress)
method, but in 6.2 version this method isn´t
I have find two method but I don´t know which is the correct to migration

	setPercent(int percent) 
        setStatus(int status) 


Thanks in advance


Take a look possible values for status:

https://github.com/liferay/liferay-portal/blob/6.2.x/portal-service/src/com/liferay/portal/kernel/util/ProgressStatusConstants.java#L22-L28

And I think older setProgress should be equivalent to new setPercent.