Forums

Home » Liferay Social Office

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
praveen orvakanti
Incorporating Social Office features in an existing App
August 16, 2011 3:24 AM
Answer

praveen orvakanti

Rank: Junior Member

Posts: 51

Join Date: August 10, 2011

Recent Posts

Hi All,
I want to incorporate some of the existing Social Office features like Chat, mail, contacts, events etc into an existing application. How do i go about this process? Could you give me a brief step by step process that i would need to follow? What all files would i need, how do i make it connect to the DB that i use for the existing application and so on?

Thanks.
David H Nebinger
RE: Incorporating Social Office features in an existing App
August 16, 2011 7:28 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

Recent Posts

Existing app? Seriously?

Since there are no details whatsoever about what your existing app is, there is no way to tell you how to do this. The only things to say are:

  1. Liferay exposes much functionality as a web service. If your existing app can consume web services, this might be an option.
  2. If your existing app is a portlet that you are deploying in liferay and want to use some of the SO functionality, you can use the local services within Liferay to leverage the functionality.
praveen orvakanti
RE: Incorporating Social Office features in an existing App
August 16, 2011 7:41 AM
Answer

praveen orvakanti

Rank: Junior Member

Posts: 51

Join Date: August 10, 2011

Recent Posts

Hi David,
Apologies for not being clear in the first place.
The existing application can consume webapps. So suppose i want to use the chat and email functionality of SO in the existing app, what would i have to do?

Thanks
praveen orvakanti
RE: Incorporating Social Office features in an existing App
August 19, 2011 2:52 AM
Answer

praveen orvakanti

Rank: Junior Member

Posts: 51

Join Date: August 10, 2011

Recent Posts

Hello,
Can anyone just help me get started with incorporating the SO into an existing application? The existing application can consume web apps. So if i need Chat, Mail, Posts features of SO, should i just copy those web apps that are present in the SO/Tomcat/webapps directory??? Along with necessary jar files????
Bryan Cheung
RE: Incorporating Social Office features in an existing App
August 19, 2011 7:19 AM
Answer

Bryan Cheung

LIFERAY STAFF

Rank: Expert

Posts: 359

Join Date: August 26, 2004

Recent Posts

In Liferay 6.1 and Social Office 2.0 you will be able to deploy SO within Liferay Portal. These will be available Sep-Oct of this year.
David H Nebinger
RE: Incorporating Social Office features in an existing App
August 19, 2011 9:20 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

Recent Posts

Bryan, I think the OP's goal is to more or less take out the SO functionality from Liferay and incorporate it into their application.

They don't seem to understand that the SO features span more than just the Java code, that there is stuff in the themes, the javascript, the Liferay data (i.e. users), etc. that SO is based upon.

It's not like every function of, say, the chat portlet is exposed via a web service (i.e. posting a message, checking for new messages, seeing who's online) that their application could leverage. Even if it were, there are still data dependencies (i.e. the Liferay user ids and other APIs) that would have to be leveraged to make any real use of them.

To me, it sounds like they are looking for a generic SO platform that has these kinds of capabilities and are fishing to see if they can leverage the Liferay SO functionality in this manner.
praveen orvakanti
RE: Incorporating Social Office features in an existing App
August 19, 2011 10:15 AM
Answer

praveen orvakanti

Rank: Junior Member

Posts: 51

Join Date: August 10, 2011

Recent Posts

Hi David,
You have summarized my goals very well. But i do understand that SO features span more than just the Java Code. I am actually building the UI myself for the application that i was talking about. I just want the widget (that i am developing) to have some of the SO capabilities like chat, mail, posts etc. I also want to slightly tinker with LR's database to incorporate/accommodate my application's DB.

The UI is being built on Flex. Back-end is primarily Java and Oracle Database. I wwant to expose the SO features to my application and there by capture them and present them in the UI that is under development.

Do i sound fair? Or am i mistaken?

If this supposed plan seems possible, how should i go about it? I'm not that great in Java and i just hope you guys to be a little more brief while explaining it, like you are explaining it to a beginner or an intermediary emoticon
David H Nebinger
RE: Incorporating Social Office features in an existing App
August 19, 2011 10:46 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

Recent Posts

I really don't think it will prove to be practical at all.

I think if you want to include, for example, some sort of chat functionality, you'd be better off leveraging a library that already implements that, rather than somehow trying to cut that functionality out of Liferay.

For example, Smack would give you chat functionality w/o having to deal w/ decoupling Liferay's chat stuff...

Basically I think you're barking up the wrong tree with the extraction from Liferay plan. If you were going to build your app for Liferay, then sure leveraging Liferay's chat and other SO features would be worth it, but it is not worth it for the goals that you have.
praveen orvakanti
RE: Incorporating Social Office features in an existing App
August 19, 2011 10:57 AM
Answer

praveen orvakanti

Rank: Junior Member

Posts: 51

Join Date: August 10, 2011

Recent Posts

David,
I was under the impression that since Liferay exposes these features as webapps, i could just use some of those API and incorporate them into my code. Just trying to avoid rework.... Moreover i also wanted collaboration features like posting, replying to it, category specific forums and stuff. Thats y i chose Liferay.
David H Nebinger
RE: Incorporating Social Office features in an existing App
August 19, 2011 11:02 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7157

Join Date: September 1, 2006

Recent Posts

I think you should flog whomever gave you that impression... emoticon

Seriously, an API and a web app are two different things. Having the latter doesn't mean you also have the former...

If you actually use Liferay, you'll have access to all of that functionality. But you won't be able to cut out the pieces from Liferay in any form of clean or easy manner to incorporate into your own application.