Fórum

setActive()

Daniel Wilmes, modificado 11 Anos atrás.

setActive()

Regular Member Postagens: 164 Data de Entrada: 23/05/11 Postagens Recentes
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 11 Anos atrás.

RE: setActive()

Junior Member Postagens: 89 Data de Entrada: 14/01/11 Postagens Recentes
user.isActive() & user.setStatus(...)?
thumbnail
Vitaliy Koshelenko, modificado 11 Anos atrás.

RE: setActive()

Expert Postagens: 319 Data de Entrada: 25/03/11 Postagens Recentes
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 11 Anos atrás.

RE: setActive()

Regular Member Postagens: 164 Data de Entrada: 23/05/11 Postagens Recentes
Thanks!