Integrating Alfresco and Liferay to show only one folder - liferay

I'm trying to integrate Alfresco and Liferay. I have configured CMIS integration following this guide. It works without problem.
But now, I want to configure that repository to show only one folder. I can set a start folder on "Document and Media Portlet", but if I try to add a folder of the Alfresco repository, it says that there are not folders.
Here is a screenshot of "Document and Media portlet" integrated with an Alfresco repository
And this is when I try to select one folder of the repository
Any help will be appreciated.

Finally I figured out where was the problem.
Alfresco's Solr indexes were corrupted. My CMIS queries were not working, so search documents within a folder by using CMIS, did not retuned results.
I have removed Solr Indexes, restarted Alfresco, and now Liferay is working without problem

Related

Orchard CMS - remove an alternative

I have created a shape alternative, 'List.cshtml' but don't need this.
Now that I deleted the file from the Views folder, Blog Post list throws an error trying to find view file in theme directory and list of Content items in dashboard doesn't display any items.
So how do I delete a published view alternative and have Orchard go back to using the version from the module?
Version 1.10.0
Sounds like you need to restart the site. I recommend going into IIS and recycle the app pool.
Is this a deployed version of the site? I think that is the only time it will error when you remove a view file, if you're running the source in Visual Studio it will go back up the cascade to the proper view file/location.

How to get a specific folder in alfresco from liferay

I'm using Liferay 6.2 and Alfresco community 5.0.
I've succeeded to integrate Alfresco at Liferay with a CMIS connection.
The inheritance rule is activated on my repository(company home), and I can't disable the inheritance on the sub folders (boss's order).
My Alfresco repository root (company home) is readable by every one, so the sub folders too.
each users have his folder in the repository (folder's name = username)
My boss's wish:
when a user is authenticated in Liferay, he should only see his own
folder, not all the repository.
And I'm lost.
Where can I modify, or create, a CMIS query in order to get the user's folder, and not all the repository...
It is possible to do that or do I have write my own portlet ?
Maybe I can do that in Alfresco ?
Alfresco automatically creates a user folder with private access for each user, you can find the folders in //app:company_home/app:user_homes
You should write a cmis path query that navigates to this user folder, it should look like this (example is listing files in directory for user "testuser"):
SELECT * FROM cmis:folder WHERE
CONTAINS('PATH:"//app:company_home/app:user_homes/cm:testuser/*"')
More in : https://forums.alfresco.com/forum/developer-discussions/alfresco-api/how-get-user-home-space-id-06272011-0628

I want to know the source files for this liferay 6.2 search portlet(jsp and java)

I am working in liferay 6.2 search portlet. I want to know the source files for this search portlet(jsp and java). I have searched the files in my whole project but i cant find the files. Thanks in advance
Here are locations you are looking for:
portal-web/docroot/html/portlet/search/..
portal-impl/src/com/liferay/portlet/search/..
JSP files can be found inside ROOT
1. /html/portlet/search
2. /html/taglib/ui/search (start.jsp)
For java files open portal-impl.jar file and search for all search API classes.
And if you really want the source - past and future versions of it - then please visit: Liferay Portal Github Page

Does Liferay Search Portlet searches in CMIS repository?

I have mounted SharePoint and Alfresco repositories in my liferay portal. Now, If I search for any document from Document and Media Search, it is searching from mounted repositories, but if I Search the same from Search portlet it is not searching from mounted repositories.
Do we have any configuration by which we can make Search portlet search into mounted repositories too?
Early reply would be appreciated. Thank you.
Linking to your crossposts on the Liferay forums: https://www.liferay.com/community/forums/-/message_boards/view_message/54236660 and https://www.liferay.com/community/forums/-/message_boards/view_message/54216971. The discussion has already begun there and it would be weird if there would be a second independent discussion here.
Is it too much to ask you to link to other posts that you did at the same time yourself?

Connecting Alfresco and Liferay with a specified user

I am trying to connect Alfresco (4.2) with Liferay (6.1.1). Everything works without problems if I use Documents and Media Portlet.
My problem is I need to use a specified user to connect to Alfresco and not the logged user.
I have tried to add some properties on portal-ext.properties, like dl.store.cmis.credentials.username, and dl.store.cmis.credentials.password, but without luck.
Can someone help me?

Resources