Foros de discusión

setActive()

Daniel Wilmes, modificado hace 11 años.

setActive()

Regular Member Mensajes: 164 Fecha de incorporación: 23/05/11 Mensajes recientes
Hi there,

in liferay 6.1.1 the setActive method is no longer part of the user object. Are users no longer active/not active? If they are does anyone know what ServiceUtil or Object allows one to set a user active/not active?

Thanks,
Daniel
thumbnail
Shinn Lok, modificado hace 11 años.

RE: setActive()

Junior Member Mensajes: 89 Fecha de incorporación: 14/01/11 Mensajes recientes
user.isActive() & user.setStatus(...)?
thumbnail
Vitaliy Koshelenko, modificado hace 11 años.

RE: setActive()

Expert Mensajes: 319 Fecha de incorporación: 25/03/11 Mensajes recientes
In Liferay 6.1 the active/inactive flag was replaced by a list of statuses. They are available in WorkflowConstants class:

public static final int STATUS_ANY = -1;
public static final int STATUS_APPROVED = 0;
public static final int STATUS_PENDING = 1;
public static final int STATUS_DRAFT = 2;
public static final int STATUS_EXPIRED = 3;
public static final int STATUS_DENIED = 4;
public static final int STATUS_INACTIVE = 5;
public static final int STATUS_INCOMPLETE = 6;
Daniel Wilmes, modificado hace 11 años.

RE: setActive()

Regular Member Mensajes: 164 Fecha de incorporación: 23/05/11 Mensajes recientes
Thanks!