google.com, pub-5747754088801811, DIRECT, f08c47fec0942fa0 Skip to main content

Integrating Alfresco Repository to Liferay Documents and Media Portlet


  • Install alfresco in your system
  • Install liferay in your system.
  • Edit your liferay-home\tomcat-7.0.42\conf\server.xml file 

<Server port="5005" shutdown="SHUTDOWN">
<Connector port="5050" protocol="HTTP/1.1">
        connectionTimeout="20000"
         redirectPort="5443" URIEncoding="UTF-8" />
<Connector port="5009" protocol="AJP/1.3" redirectPort="5443" URIEncoding="UTF-8" />



  • Add in portal-ext.properties file below property.

session.store.password=true
company.security.auth.type=screenName

Note:- Above line is useful for similarity in credential for both alfresco and liferay.

  • ReStart liferay server 
  • Start alfresco server
  • Login with admin user in liferay.

  • This time it will ask screen name and password due to above properties file.

Create new user with


Screen Name :-  admin
Password      :-   admin
Email            :-   anything(my case :-  admin@alfresco.com)
Role             :-    Power User
                           Administrator







  • Logout from liferay.
  • Now again login with newly created user.
  • Screen name  :-  admin
  • Password       :-  admin 

  • Add document and media portlet in your page.
  • Now click on  Add -> Repository





  • New Repository page will open. Fill the bellow settings.
Name                                                 : Alfresco Repository
Description                                       : Alfresco Repository
Repository Type                               : CMIS Repository (AtomPub)
Repository URL                                :  http://localhost:8080/alfresco/cmisatom    (4.x alfresco version)
Repository ID                                    :                                                                   (We dont require to provide it)
Viewable by                : Site members 
And Save it 

Choose Pub URLs for various vendor repositories as per alfreso version.
RepositoryAtomPub URL
Alfresco 3.4http://<host>/alfresco/service/cmis
Alfresco 4.xhttp://<host>/alfresco/cmisatom
IBM P8http://<host>/p8cmis/resources/Service
Nuxeohttp://<host>/nuxeo/atom/cmis

















It will show repository with folder of alfresco.


































Comments

Popular posts from this blog

Disable cache content of browser access on back button after logout liferay dxp

Some time we have requirement where we do not want to allow back button after logout and show cached browser content. Liferay provide properties which with we are able to restrict to see content on back button after logout. If user click back button after logout it will show the login page. We require to provide below properties in portal-ext.properties. Restart the server once applying below properties browser.cache.signed.in.disabled=true

Liferay crud porrtlet with Jasper Reports.

I have used Meera Prince Crud operation demo for the Jasper reports which allow to export report in PDF , word, XLS format. It will look lie below image. Find Source code for the complete example on below location. LIFERAY JASPER REPORT INTEGRATION 1 I have available PhoneManger Crud Portlet which have pagination and crud functionality. 2 I create report-listing-mobile.jrxml  file with help of Ireport tool. <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report-listing" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin=&q