cancel
Showing results for 
Search instead for 
Did you mean: 

RESTFull Integration-Liferay and Alfresco- Do-it-yourself

jonas
Champ in-the-making
Champ in-the-making
Real Demo

http://sesame.cignex.com default page (images, flashes - videos, games, etc. and contents coming from Alfresco 2.1.1 at Liferay 4.3.5)

Login as jonas@cignex.com/jonas

Edit an article -> insert document as link or image or flash at HTML editor. Alfresco is used as Repository of Liferay. You can use Alfresco just as Liferay's repository - image gallery, document library, etc.

Do-it-yourself

Download bundled file: Liferay-Alfresco-REST-Tomcat-6.zip from http://liferay.cignex.com/sesame/

Create database for alfresco in MySQL

create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

Create database for liferay in MySQL
create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

Use JDK 6.0 or above and JAVA_HOME is set as well.

For more details, please visit
http://liferay.cignex.com/sesame/
12 REPLIES 12

redcoat
Champ in-the-making
Champ in-the-making
Hi,

Very interested in this…but can't seem to get to any of the links.

cheers,

David

jonas
Champ in-the-making
Champ in-the-making
Hi David,

Try to add some contents such as images, documents, flash, etc. at your local alfresco repository.

such as http://localhost:8080/alfresco

login as admin/admin

Add content at Guest Home.

Now you are ready to see images, flashes and documents as links.

Good luck!

Jonas

redcoat
Champ in-the-making
Champ in-the-making
Thanks, Jonas.

I was actually talking about the download site…but now it's working.

Pulled everything down and trying to set it up.  A little confused by the database instructions - seems like they say to create 2 db's called liferay?  Should one be called 'alfresco'?

Create database for alfresco in MySQL

create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

Create database for liferay in MySQL
create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

jonas
Champ in-the-making
Champ in-the-making
You are right, there is one error.

The correct one should be:

Create database for alfresco in MySQL
create database alfresco;
grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option;
grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option;

Create database for liferay in MySQL
create database liferay;
grant all on liferay.* to 'liferay'@'localhost' identified by 'liferay' with grant option;
grant all on liferay.* to 'liferay'@'localhost.localdomain' identified by 'liferay' with grant option;

redcoat
Champ in-the-making
Champ in-the-making
Great.  That works, and everything starts ok (apart from a Faces error).

I have added some documents to Alfresco Guest Home using admin/admin, and added the Alfresco portlet to Liferay.

I can't seem to find the documents I added, however.

Also, in this set up do you have to duplicate the users/groups etc. in Liferay and Alfresco?

many thanks!!

David

redcoat
Champ in-the-making
Champ in-the-making
bump.

Anyone?

jonas
Champ in-the-making
Champ in-the-making
Hi David

Which kind of portlets: alfresco client? or alfresco content?

If you want to share same users / groups between Liferay and Alfresco, use LDAP for both Liferay and Alfresco.

Good Luck!

Jonas

redcoat
Champ in-the-making
Champ in-the-making
Hi Jonas,

I need to show the content available to the particular user in the portlet. 

In liferay I logged in as Test/test, opened the Add Content pane, and under CMS selected Alfresco and Alfresco Content.

The contect portlet tells me to contact the admin to set up this portlet.  I Click on Select Content and see the User Id/password fields.  I set up a Test/test user in Alfresco and when I tent Test/test in the maximised portlet and click Save, I can browse the content beneath.

However, I need it to automatically use the Liferay user/password and show the content that user has permissions for in the Portlet in the Normal state.

Is this possible?  Am I missing something?

thanks,

David

redcoat
Champ in-the-making
Champ in-the-making
anyone?