掲示板
setActive()
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
user.isActive() & user.setStatus(...)?
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;