Liferay OpenCMIS integration with Alfresco - liferay

I want to integrate Alfresco repository to Liferay's document and media portlet and I've configured the same with CMIS Web-Services in control panel.
Custom properties (custom aspects created in Alfresco) are not visible in document details in Liferay while retrieving document details.
I found that to retrieve that information I need to integrate OpenCMIS in Liferay.
Do I need to do custom code implementation for the same? Do I need to write any hook/ext in Liferay to implement the same? Or I can do that with some configuration change in Liferay and Alfresco both.

Related

Existing project as a portlet in Liferay

How do we add an existing project(not a Liferay) in the form of a URL as a portlet in the Liferay portal.
If you have any existing web application running on somewhere else. You can use Liferay's iframe portlet. Just provide the URL of your application in the portlet.
Ref :
Iframe Portlet

Liferay: Custom Role to Add Specific Portlet

I've created a Regular User Role in my Liferay Portal titled Announcement Poster - the purpose of this role is to give all normal, non-administrative users the ability to add only the Announcement and the Alert Liferay out-of-the-box portlets to a page, as well as modify and delete those portlets as needed.
According to this post pertaining to Liferay 6.1, this can be done very simply by defining a Role's permissions and I've seen other users have success with the method, however in Liferay 6.2 I cannot achieve this - With my current settings, the user can still see the Edit and Preview options as well as the Portlet Configuration option. I simply want only the Add option to be displayed to a user assigned to this role.
My defined role permissions are as follows:
So far I've tried many combinations of Site, Site Setting & Application permissions but can't achieve the desired outcome; has anyone had any luck with this or a similar situation?
Subsequent Liferay forum post https://www.liferay.com/community/forums/-/message_boards/message/43455741
I don't think it is a Liferay bug, simply those buttons are not under permission system. You can hide them via css, or better, you can hook the dockbar JSP and render them with your own conditions.
EDIT:
When I say "those buttons are not under permission system" i mean singly.

Link Liferay and Alfresco with sso (OpenAM) authenticated user

We need to show document from alfresco in Liferay portlets. We would use the CMIS connector with the document library. But we are required that the users be authenticated with OpenAM (a sso).
All the research I've done seam to indicate that ootb it doesn't work. But I can't find anyone that made it works.
So is it possible to use the CMIS connector with an SSO authenticated user?
If yes, what step should we do, or is there some doc already available?
If no, Is there any work around or other solution to connect Liferay with alfresco with an SSO authenticated user?
So to summarize the situation, no, by default there is no way to use Liferay document librairy/cmis connector with any SSO.
But, it is possible to use it by modifying the Liferay feature (With hook) and using a specific strategies (This go from proxy sso to some java script hack that I wont go to deep into as we decides not to do it) to get the required info to send to alfresco.
Other solution (that we chooses) is to implement a custom authentication on alfresco and to use a password that is not the user one as password, but there is some security concern that need to be taken into account with this solution because the simple way to do it create a "master password" that could be used by anyone.
So basically there is really no one size fit all solutions on this subject.

Invoking json web services in liferay

I am currently trying to use the Liferay JSON WebService API to access entities (e.g. "Student") from my database. I used ServiceBuilder to build Services for this entity and implemented a method "public Student getStudentByID(long StudentId){...}" in the StudentServiceImpl.
I am also able to see and access this method via "http://sampletest.com/RestTestLiferayProject-portlet/api/jsonws"
How can i invoke this service from another portlet?
my understanding is the json services are intended for use from outside your Liferay instance. From within a portlet you should be able to import your service classes and use them directly.
Apologies if I've misunderstood your question.

Where can I find information on how to customize the user registration process of Liferay + Sun Web Space Portal

I need to quickly customize the user registration form of the liferay/web space portal? Have not found any direct information on this so would appreciate any tips.
There are several possibilities:
The source is available, so you might want to patch the existing process
The API is available (e.g. see this thread in the liferay forum), so you can batch-create users or implement your own registration portlet and just use the API. AFAIK you can even register users via a webservice interface.
You can batch-insert users into the database
If your existing user data is stored in LDAP, you can connect Liferay to the database.

Resources