Connecting Alfresco and Liferay with a specified user - liferay

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?

Related

How to configure CAS without LDAP in Liferay?

I just created a thread in the Liferay forum about my problem, I would appreciate it if you answered here and if possible also there.
I am working with Liferay 6.2.5 CE and this is what I am trying to achieve:
Integrate CAS for SSO
On successful create a Liferay User and
Redirect to default private page or to the requested url
On logout delete the user
Important: Liferay is not going to use any LDAP.
I am stuck in the step two, I am not clear what I need to program or to configure. I found this article that seems to do what I need but it is from 2013 and maybe there is a better way to do it (not modifying directly the server files)
Thank you.
I've had to modify CASFilter too in Liferay 6.2 and I think your only option is to modify server files like the tutorial says. It is not that hard

Adding content to dashboard of liferay user other than admin

I am new to using Liferay, and practicing currently on Liferay DXP. I have created various user, and wanted to add different content to dashboard of any user. Such as asset publisher which will list all the assets published by that user. I am able to add this modified content only for Admin User. I am not able to find any setting where I can change the look and feel of dashboard for every user.
Can anyone please help me where I can find it? It might be pretty simple but I am unable to find it.
Thank you in advance for helping me.
You can look at the ADT. Modify the templates as per requirement and on user roles. You won't be able to deliver content as per individual user but to roles. You can also have portlet preferences to show different content on different criteria. This all is possible. You will have to study the subject more. It will be very difficult to detail out the whole stuff here. But yes with ADT in Liferay 7 / DXP you have a lot of flexibility.

Error:500 unexpected Condition at Xpage application

Currently working at 9.0.1 FP6.
When I Make some changes and run Xpage application at lotus notes it gives me Error 500 : unexpected error condition. To resolve it I sign the application from IBM domino administrator and clean it from designer then I again execute the application it works fine until I make some other changes .
please some one guide me how to resolve this issue permanently.
Firstly, do you have the xpage error page checked?
In Designer >> Application Properties >>Errors and Timeouts >> [Check] Display XPage runtime error page.
Checking that option may give you some more information - Also, is anything extra written to the server log?
Are you making changes to the design of the application or to a document within the database?
If it is with designer, are you building the project? You should do this really after each change before using the application.
Where you say you sign the database from the admin client, are you doing so with an admin id which is different to the id you are normally using, as if it is a different id, it may be the id you are using does not have the correct rights?
Also, is the database is located in a folder within the Notes data directory? If so try putting the database in the Notes data directory and not in any
subdirectories.
Just a couple of quick things:
Your code MUST be signed with the same ID. Just re-check by looking at the design elements in Domino Designer!
What does the logs on the server tell you? You could use the Log File Reader project on OpenNTF to get easy access to these logs and stack traces.
/John
Open the Domino\data\domino\workspace\logs\error-log-0.xml file. It contains full stack trace of the error.

Integrating Alfresco and Liferay to show only one folder

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

Extracting Metadata of Lotus Notes Applications Using Notes Java API?

I am looking for extracting metadata about Notes Applications on a Domino server using Java Notes API. I tried reading the list of applications/databases from catalog.nsf file.
But catalog.nsf does not have new Applications that are created based on a existing template.
So From where can I get the list of applications that are existing on a Domino Server? Will the new Applications be added to catalog? If not how to make them to be added in the catalog?
Any help or Ideas will be much appreciated.
Thanks,
Srinivas
So if you want to do this in Java If the catalog.nsf is not upto date, then you can also try the dbdirectory class, look ==>here.
This should have an example to give you an idea how to read through all database on the server. If the Domino server is not registering new applications then catalog process is not running. You can load it by simply type "load catalog" at the console. More details ==>here.
There can still be other issues, but will wait for your response.
This is more of a "Server Fault" answer, but in the Domino Directory, you can turn on the Domain Catalog server task for a server in your domain, and that server will populate (and keep updated) the catalog.nsf file, which will then replicate across your domain.
So just enable that task within the server document, or go to the domino console and type load catalog

Resources