How to integrate recaptcha in liferay 6.2? - liferay

I want to create recaptcha in liferay 6.2.I have no idea how to integrate recaptcha in liferay 6.2.

It depends on what you want to do with it. If you want to use it when people sign up for accounts, don't look much further than portal.properties, just search for recaptcha and adjust the settings in your portal-ext.properties.
If you want to use recaptcha in any custom application, integration is just like in any other application - there's probably nothing really Liferay-specific in there.

Related

Google Dialog Flow: Change Design/Colours

I use Google Dialog Flow and I still created a Agent. I want to customize the appeareance of the chat window and I do not know how to do it. It seems like there is no options to do this in the DialogFlow Console. I have seen that there are products like Botcopy, but I want to do it by myself. Do I need to use the API to integrate the bot into my website if I want to change the looks?
the DialogFlow web widget is mean to be used for testing, you can hack the CSS and override the way it looks but it is not a recommended approach.
In order to integrate your DialogFlow chatbot on a website you can indeed use Botcopy or Kommunicate (both provide a Widget to add to the web site with some customisation options).
If you are a UI guru you want to build something yourself you can use the DialogFlow SDK https://github.com/googleapis/nodejs-dialogflow

What is a plugin project in liferay

I'm new to liferay. And I've some basic question that what is liferay all about. What is a liferay plugin project or service builder project? Is liferay any framework,GUI tool, a content manager or WHAT?
I know that you guys are not engaged with this tool in this BLOG but still somehow it is related to java. So please guys help me.
Have you tried reading the liferay tag-wiki on stackoverflow? Just hover your mouse over it and you will have answers to all your questions. And if you want more just click on the pop-up and you would also find details about how to learn more about Liferay.
Still as per the norms of answering, here are some brief answers to your question:
Is liferay any framework,GUI tool, a content manager or WHAT?
Liferay is an open source JSR 286 compliant web-portal and social platform, written in Java. It includes content-management and more. It has different plugins known as portlets like Blogs, Forums, Document management, Content management etc.
What is a liferay plugin project or service builder project?
Plugin projects are nothing but small components/applications/widgets that run in the portal. Some might have UI and others might run in the backend.
Service Builder is a framework in liferay to ease development of services which might include service to access database, web-services, json web-services.
Everything else is given in the tag-wiki and the wiki also includes links to official resources if you wish to use/develop in liferay.
plugins are features which developers add them to portals like liferay.
for example:
liferay hooks are defined to do some tasks, like user's authentication, adding users, etc .. and we want change (override) that hooks, so we need develop ext plugins to do this for us.

What jar contains com.liferay.portal.security.permission.PermissionCheckerImpl in Liferay 6.1.2?

I am trying to follow http://liferaysatish.blogspot.de/2011/11/permissionchecker.html (which is basically a repost of another blog post).
I need to implement my own PermissionChecker to be able to support an SSO server (check if the user has been authenticated). However, there article mentions com.liferay.portal.security.permission.PermissionCheckerImpl, but there is no such class in whatever jars I was looking for it.
What I am trying to achive is to tie liferay's internal security to an external SSO Server (wso2). If there is another way to achieve this, I would love to try it.
I was trying with AdvancedPermissionChecker and SimplePermissionChecker, but I become endless redirects using them.
regards and thanks
Leon
I need to implement my own PermissionChecker
I don't believe so. At least you can make your life easier if you integrate your SSO just like any of the already integrated 6 (or so) SSO systems, authenticating the current user to Liferay and then leaving the actual permission check to Liferay.
SSO is typically used for making sure the user is who they are, then redirecting to the application they're providing their services to. If you want to maintain permissions externally to Liferay, you're best of to use an LDAP and group your users there. On the Liferay side, map those LDAP users/groups to Lifeary-usergroup-memberships. Provide the required permissions/memberships for those usergroups and you're set. Implementing your own permission checking (which will also be used internal to Liferay) is one of the least maintainable ideas that I've ever heard of.
I believe the latest Liferay does not have this file anymore. You should search for it in the 5.0 version. And the JAR itself is in \ROOT\WEB-INF\lib\portal-impl.jar
http://docs.liferay.com/portal/5.0/javadocs/portal-impl/com/liferay/portal/security/permission/PermissionCheckerImpl.java.html

Import/export google mail (was "[is it possible to] create custom Google Lab")

Is it possible to create a custom Google Lab project? Or do Google Engineers have to create them? I'd like to integrate Gmail with another web application on a company web server.
If that is not possible, is there a way to import/export google mail in some format (ie: XML, HTML, etc..) for a specific gmail user or group of gmail users?
No.
You're looking for the IMAP protocol, which allows you to interact with Gmail messages.
No, it's not possible. Google Labs projects are Google's own experiments, not something you can add to yourself.
As Nadir Muzaffar said, maybe Gmail's API is what you're looking for: https://developers.google.com/gmail/
I'd like to add that you may create a browser extension.
You may start with experimenting with Developer toolbar (F12) and then pack your javascript to an extension.
If you use I.E. Chrome, see I.E. https://robots.thoughtbot.com/how-to-make-a-chrome-extension or try to look at your current extensions in order to understand how it's working ( ~/.config/google-chrome/Default/Extensions/ or ~/.config/google-chrome/Default/Extensions/ )
Note that if GMail changes, your extension may not work anymore.

Hosting Google Apps UI in my app

I'm investigating the possibility of re-using Google Apps/Docs in a local hybrid desktop/browser application.
I've been going through the Google documentation on manipulating docs, eg. the Spreadsheet. I can't seem to find any info on actually hosting the UI. Is this possible, or does it require some form of permission from Google?
You want to basically embed an browser control in your application pointed at the URL of a Google Apps doc? You could use the Google Document List API to retrieve the documents for a user, then use the URLs of those documents in your embedded browser control.
You don't need Google's permission to do that; you're writing a browser with some extra smarts built in.
What do you mean by "hosting the UI?" These apps are HTML/CSS/JavaScript. Are you thinking about embedding them in AIR or Titanium, or in some kind of web control in another app?
i briefly looked into doing this, and figured if i really wanted to i could just load the gdocs page content dynamically, and use javascript to strip away the superflous elements like header and footer. but instead i'll probably just use an OS alternate because they have come a long way and I want rich hooks.

Resources