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
Related
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?
I know this is a duplicate post but I needed help here. I had posted about my query before on how should I approach to migrate a website which is currently in OpenCms into Liferay.
I will share whatever I have found on internet and a reply that I got in one of the forums here on stackoverflow.
I was suggested to use ftl templates. but won't it be like executing the code everytime the user makes changes to a web page?
The website has static as well as dynamic pages. I need a way to recreate them in liferay so that in future if the users wish to change the data content of website they can do so easily. IN case of dynamic pages they will upate their database. IN case of static pages they would want to change data (if required) from liferay framework.
How should I create templates and add pages that use a particular template and also add content to the pages?
SHould I write a code or can I do directly from the liferay UI ? Is there a quick way to do this?
Regards
First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed.
In short, the UI of our project is controlled by Liferay, but control of data displayed on UI or submitted from UI should be from our developed backend code.
Now I have a few questions regarding above said approach of fulfilling the requirement:
What we are trying to do is possible?
Is this approach recommendable for what we intended to do?
Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.
Ok let me try to answer your question point-wise and I would answer your last question first, which should automatically clear other questions:
Q. Also, we would like to know in what scenarios/requirements Liferay is useful.
This can have a very wide answer, but I have made it shorter for you:
If your site is content heavy and not data heavy then go for Portal
If you plan to use only a single web-application in a portal then I would suggest standalone custom developed web-application is much better.
I agree liferay portal will give you lot of things out-of-box like Single Sign-on, authorization, authentication, friendly-url and page creation and also lot of applications like Blogs, Wikis, Document library, some social networking apps etc. But think about it, do you really need all this? if not, then this is overkill
Here are some really nice links to better understand a portal's usage:
When to use a portal
Why to use portal technology
liferay tag wiki: It has nice description as to what is liferay and it also contains relevant links to Admin guide which will tell you what all functionalities liferay has and how you can manage it.
So still if you find your other questions unanswered, read-on ...
Q1. What we are trying to do is possible?
Nope. Portlet technology is different from Servlet technology. Liferay (or anyother portal) does not provide a way (atleast a simple one) to integrate servlets that would render pages inside a portal. For eg: Since with servlet you define URL mappings for a particular servlets before-hand in a web.xml but in a portal the URLs are generated by the Portlet Container. So portals work with portlets and not Servlets.
Q2. Is this approach recommendable for what we intended to do?
Nope. As I already explained in Q1.
Q3. Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
If you want to go the liferay way then Yes.
If you want to build applications that talk to your custom tables then portlets are the way to go.
Q4. What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
If you go with Liferay. In this scenario you can create a combination of liferay-hook & portlet (may be using service-builder) to customize liferay's User creation mechanism and there by store data in both Liferay's User table and your custom tables.
Liferay's permission system is really fine-grained so you can also benefit from this system and put permission even on the data level.
In conclusion I would say:
Everything boils down to what your requirements are and what resources you have. And sometimes what future requirements you can have.
Note: All the terms used in this answer which are specific to liferay (like service-builder, hook etc) are explained in the liferay tag wiki.
Hope this helps. If you would like to know anything specific I would gladly update my answer.
is there a way to create/export a LAR from liferay server A and import this in liferay server B with a script or even a maven/hudson plugin? I'm using Liferay 6.0.5.
thanks,
Stijn
The best way to achieve what you want is to make use of scheduling for remote publication. You can find this option in the manage pages portlet.
Keep in mind that you can deploy servlets in Liferay. I would package the war file as a "web" plugin as described in this article on Nabble in order to access the Liferay APIs. From here you could perform whatever units of work you want, of which exporting a lar file. Call the servlet URL with the appropriate parameters and you're g2g.
You may refer to following Liferay resources to get details of Liferay API:
http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/LayoutLocalServiceUtil.html
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/staging/StagingImpl.java
Can someone please tell me how to do the following in SharePoint (WSS 3.0):
Have a user log in (user name and password) on a page and then if correct display the home page of a WSS 3.0 site?
I think it's called forms based authentication.
Here's a video about using Forms Auth. with WSS3 and here are some samples. Basically, you use the login.aspx page in _layouts to collect credentials and cache them. You have to modify web.config to use the membership provider. More on that here.
This is one of the best article on FBA
Save yourself a lot of time and checkout http://sharepointsolutions.com/SharePoint-Add-ons/Products/Pages/ExtranetCollaborationManager.aspx
I have done it several ways but this has made life easier when configuring environments.
As a special case of Forms Based AuthN, in case you don't have to own the DB containing your users, you can rely on Live ID to authenticate users to your site. Haven't tried this, but may help you.
I just believe some JavaScript is enough to do that.Maybe I am Wrong!