Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jesse S Piascik
Programmatic Subscribe in Message Board
April 25, 2007 11:16 PM
Answer

Jesse S Piascik

Rank: New Member

Posts: 6

Join Date: September 20, 2006

Recent Posts

Does anyone know if there is a way to subscribe a list of users to a message board category? Also, is there a variable for the message id in the subscribe email setup?
Wilson Man
RE: Programmatic Subscribe in Message Board
April 26, 2007 12:42 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

you can call the method

1MBCategoryLocalServiceUtil.subscribeCategory(userId, categoryId)


in your code.

Unfortunately, their isn't a messageId variable you can use in the email setup. For that, you'll probably need to make your own modification to the notifySubscribers method.
Jason Amy
RE: Programmatic Subscribe in Message Board
April 26, 2007 2:15 PM
Answer

Jason Amy

Rank: Junior Member

Posts: 77

Join Date: July 4, 2006

Recent Posts

Wilson Man:

Unfortunately, their isn't a messageId variable you can use in the email setup. For that, you'll probably need to make your own modification to the notifySubscribers method.


There is a messageID variable that has been added, I filed a bug for this and it is fixed thanks to Raymond Auge:

http://support.liferay.com/browse/LEP-2536

-Jason
Jesse S Piascik
RE: Programmatic Subscribe in Message Board
April 26, 2007 2:19 PM
Answer

Jesse S Piascik

Rank: New Member

Posts: 6

Join Date: September 20, 2006

Recent Posts

Thank you both. I'll give it a try.

Jesse
Jesse S Piascik
RE: Programmatic Subscribe in Message Board
April 27, 2007 8:57 AM
Answer

Jesse S Piascik

Rank: New Member

Posts: 6

Join Date: September 20, 2006

Recent Posts

Is this in version 4.2.2?