Files
ofbiz-plugins/ecommerce
Jacques Le Roux f3c3271d12 Improved: Use Groovy Truth instead of UtilValidate Class in Groovy
(OFBIZ-11064)

As we all know, Groovy is a powerful language with great built-in functions. 
Groovy Truth[1] is one of them, which is not used properly in our code base. 
We have used UtilValidate Class to validate arguments for Empty or NotEmpty, 
which can easily be done in groovy with built-in functionality[1].
 
Current Code: if (UtilValidate.isNotEmpty(locations)) { ... }
Groovy Built-in Code: if (locations) { ... }
 
[1] - http://groovy-lang.org/semantics.html#Groovy-Truth
 
We need to careful for some points while we change this:
Like:
maxRetry = 0
if (!maxRetry)
{  // Not set, use a default  maxRetry = -1 }

Because groovy evaluates zero to be false, it wouldn't be possible to set
maxRetry to zero.  So it's best not to use groovy truth for null-checks on
numbers in some cases. 
 
Thanks: Pawan Verma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1860051 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 10:36:16 +00:00
..
2017-10-27 08:11:12 +00:00

Apache OFBiz

Ecommerce component

more information

How to use Janrain Engage Social Login.

1.Get API Key from http://www.janrain.com/products/engage/social-login. 2.Configure file setting : ecommerce.properties you can put it Example: -------------------------------------------------------------------------------- # -- Enable janrain engage (Y/ N) default N janrain.enabled=N

        # -- Janrain api key (secret)
        janrain.apiKey=exampleKey
        
        # -- Janrain application domain
        janrain.baseUrl=https://example.rpxnow.com
        
        # -- Janrain application name
        janrain.appName=exampleAppName
      --------------------------------------------------------------------------------

3.Restart the server.

How to test Janrain Engage Social Login.

  1. Go to Login screen.
  2. Look the Social Login Widget and you can use these existing accounts to sign-in to your website.
  3. First time if account does not exists then system will create new account.
  4. After account existing in the system you can use "Social Login Widget" to login account.

===================================================================================================