Forums de discussion
setActive()
Daniel Wilmes, modifié il y a 11 années.
setActive()
Regular Member Publications: 164 Date d'inscription: 23/05/11 Publications récentes
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
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
Shinn Lok, modifié il y a 11 années.
RE: setActive()
Junior Member Publications: 89 Date d'inscription: 14/01/11 Publications récentes
user.isActive() & user.setStatus(...)?
Vitaliy Koshelenko, modifié il y a 11 années.
RE: setActive()
Expert Publications: 319 Date d'inscription: 25/03/11 Publications récentes
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;
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, modifié il y a 11 années.
RE: setActive()
Regular Member Publications: 164 Date d'inscription: 23/05/11 Publications récentes
Thanks!