| Author |
How to create announcements in LifeRay with the API
|
Alejandro Barrero
Ranch Hand
Joined: Aug 01, 2005
Posts: 273
|
|
I need to create announcements in LifeRay with data from an existing data base (or display the data in any other way). I would want to know how do I write code to do this.
Your help will be greatly appreciated,
Alejandro Barrero
|
Your help will be greatly appreciated,
Alejandro Barrero
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
So, you want a portlet that runs and displays certain pieces of data from time to time?
Where is the data or announcement coming from?
Are you just trying to write a portlet that reads from a queue? Or reads from a database table?
-Cameron McKenzie
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
Alejandro Barrero
Ranch Hand
Joined: Aug 01, 2005
Posts: 273
|
|
|
Thank you for your reply. I need to display data and images that already exit in a database. It is too much data to to create announcements or other items by hand. I think the solution is to write code that would create the LifeRay items; I don't want to dig in the source code and think that perhaps I could use the API.
|
 |
Arvind Mishra
Greenhorn
Joined: Jul 04, 2007
Posts: 28
|
|
AnnouncementsEntryLocalServiceImpl.java
AnnouncementsDeliveryLocalServiceImpl.java
AnnouncementsFlagLocalServiceImpl.java
are three IMPL classed which deal with announcements.
AnnouncementsEntryLocalServiceImpl.java is responsible for DB Operations.
These are impl classes . to access the method you need to call it on util classes .
Example : AnnouncementsEntryLocalServiceUtil.addEntry()
Thanks
Arvind Mishra
|
Regards<br />Arvind Mishra<br />SCJP<br />SCWCD<br />IBM SOA Associate
|
 |
Alejandro Barrero
Ranch Hand
Joined: Aug 01, 2005
Posts: 273
|
|
|
Thank you very much Arvid, but what do I have to do to have acces to the classes? What documentation is there, other than JavaDocs for the API?
|
 |
 |
|
|
subject: How to create announcements in LifeRay with the API
|
|
|