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

Liferay portlet with alloy Ui form validator example.

 Alloy Ui  is built on YUI and we can use it in our liferay portlets.  Yui provides many component which are easy to use in our portlets  Here we see basic form validator.example with liferay portlet. Create portlet AlloyUi-portlet in eclipse. Add below content in view.jsp file Here we create two link for two JSP. <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <script src="http://cdn.alloyui.com/2.5.0/aui/aui-min.js"></script> <link href="http://cdn.alloyui.com/2.5.0/aui-css/css/bootstrap.min.css" rel="stylesheet"></link> <portlet:defineObjects /> <portlet:renderURL var="basicform"> <portlet:param name="mvcPath" value="/BasicFormValidatorExample.jsp"/> </portlet:renderURL> <portlet:renderURL var="fullform"> <portlet:param name="mvcPath" value="/FullFormValidatorExample.jsp"/> </portlet:re...

Start open office in linux through command for liferay

Some time liferay not generate preview and not allow conversion from word to pdf etc. The reason can be it is not started with root access. Please fire below command to start soffice with the root access. First Kill the soffice proccess. pkill -9 soffice Execute below command to run it sudo soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &