• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to create announcements in LifeRay with the API

 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic