This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes How to create announcements in LifeRay with the API Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "How to create announcements in LifeRay with the API" Watch "How to create announcements in LifeRay with the API" New topic
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to create announcements in LifeRay with the API
 
Similar Threads
How to create scrollable images in Liferay
Deployment in Liferay
File Management
How do i create java portal application?
Liferay clustering