Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Daniel Wilmes
setActive()
August 29, 2012 12:35 PM
Answer

Daniel Wilmes

Rank: Regular Member

Posts: 164

Join Date: May 23, 2011

Recent Posts

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
Shinn Lok
RE: setActive()
August 29, 2012 2:42 PM
Answer

Shinn Lok

LIFERAY STAFF

Rank: Junior Member

Posts: 89

Join Date: January 14, 2011

Recent Posts

user.isActive() & user.setStatus(...)?
Vitaliy Koshelenko
RE: setActive()
August 30, 2012 9:01 AM
Answer

Vitaliy Koshelenko

Rank: Expert

Posts: 290

Join Date: March 25, 2011

Recent Posts

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
RE: setActive()
August 30, 2012 9:50 AM
Answer

Daniel Wilmes

Rank: Regular Member

Posts: 164

Join Date: May 23, 2011

Recent Posts

Thanks!