Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create announcements in LifeRay with the API  RSS feed

 
Alejandro Barrero
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Alejandro Barrero
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Alejandro Barrero
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!