掲示板

setActive()

11年前 に Daniel Wilmes によって更新されました。

setActive()

Regular Member 投稿: 164 参加年月日: 11/05/23 最新の投稿
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
11年前 に Shinn Lok によって更新されました。

RE: setActive()

Junior Member 投稿: 89 参加年月日: 11/01/14 最新の投稿
user.isActive() & user.setStatus(...)?
thumbnail
11年前 に Vitaliy Koshelenko によって更新されました。

RE: setActive()

Expert 投稿: 319 参加年月日: 11/03/25 最新の投稿
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;
11年前 に Daniel Wilmes によって更新されました。

RE: setActive()

Regular Member 投稿: 164 参加年月日: 11/05/23 最新の投稿
Thanks!