Monday, 8 December 2014

Maven portlet development - Liferay service builder portlet

MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0 1. Navigate to the folder where you want to create Liferay plugin 2. Execute the command mvn archetype:generate. This will take some time for the first time. You might need to rerun this command for twice to get it complete. 3. It will ask to choose a number&nb...

Monday, 8 September 2014

Spring Web Service Client Using Maven with Liferay Portlet

Create one simple maven base project in Eclipse. Save your wsdl file in the resource directory with WSDL extension. Make sure about the extension Copy following build and dependencies tag.  <build>     <plugins>         <plugin>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-codegen-plugin</artifactId>             <version>${cxf.version}</version>             <executions>                 <execution>                     <id>generate-sources</id>                     <phase>generate-sources</phase>                     <configuration>                     <sourceRoot>src/main/java</sourceRoot>                     <wsdlOptions>                         <wsdlOption>                             <wsdl>${basedir}/src/main/resources/TestService.wsdl</wsdl>                         </wsdlOption>                     </wsdlOptions>                     </configuration>                     <goals>                         <goal>wsdl2java</goal>                     </goals>                 </execution>             </executions>             <dependencies>                 <dependency>                     <groupId>xerces</groupId>                     <artifactId>xercesImpl</artifactId>                     <version>2.9.1</version>                 </dependency>             </dependencies>         </plugin>     </plugins> </build>     <dependencies>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-tools-common</artifactId>             <version>${cxf.version}</version>         </dependency>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-rt-frontend-simple</artifactId>             <version>${cxf.version}</version>         </dependency>         <dependency>             <groupId>org.apache.cxf</groupId>             <artifactId>cxf-rt-transports-http</artifactId>             <version>${cxf.version}</version>         </dependency>     </dependencies>     <properties>         <cxf.version>2.7.7</cxf.version>     </properties> build...

Tuesday, 2 September 2014

Spring MVC portlet using maven

Create Maven base Liferay portlet Please following the below link to create a Liferay portlet using maven command prompt. http://wellofjava.blogspot.com/2014/08/maven-portlet-development-for-command.html Define Maven dependencies for Sping MVC portlet Now you will need to add following dependencies in Maven file to make spring portlet. <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc-portlet</artifactId> <version>${spring.version}</version> </dependency> <dependency> ...

Thursday, 7 August 2014

Maven Portlet Development - For Command Prompt Lovers

Navigate to the folder where you want to create Liferay plugin Execute the command mvn archetype:generate. This will take some time for the first time. You might need to rerun this command for twice to get it complete. It will ask to choose a number or apply filter. Enter filter for Liferay, simply type liferay and hit enter. Select proper archetype for particular pulgin e.g for Liferay portlet pulgin select liferay-portlet-archetype Enter liferay portlet archetype version. E. g. Version of Liferay, for our case we need to choose 6.2.0-RC5. Define...

Wednesday, 30 July 2014

Simple Captcha Text Producer Implementation

This blog is in reference to the Liferay hook in Marketplace. Following is the link for the Captcha Internationalization. Captcha Internationalization Hook Same Concept can be used to implement multilingual Captcha for any web site. Simple Captcha is the opensource implementation for captcha service. Please check the following URL for more details about SimpleCaptcha. http://simplecaptcha.sourceforge.net/ Simple Captcha is providing textProducer for Captcha implementation. The textProducer class produces a string with some random Character...

Tuesday, 22 July 2014

Liferay HSQL DB Access

        Normally at the time of development, we have fixed name of database which will be used for production environment. We configure the same DB in our local or development environment for the build. But in case of doing POC, preparing demo for PreSales or making some reusable component, we might not have access to such environment, or as per the system requirement, It might not be a good idea to spend time after configuring...

Monday, 14 July 2014

Mobile/SMS Verification

        Now a days, Most of the site needs to verify the mobile number and email address of their users for security purpose. Liferay is providing email verification OOB. I have developed a reusable component to verify mobile number of the customer using SMS service.         This plugin will help to integrate that functionality directly to the Liferay portal.         Key Features Admin can enable/disable mobile verification very easily. Mobile...

Tuesday, 1 July 2014

LDAP server Error Codes

Code(decimal)Error code (string)Description 0LDAP_SUCCESSSuccess 1LDAP_OPERATIONS_ERROROperations error 2LDAP_PROTOCOL_ERRORProtocol error 3LDAP_TIMELIMIT_EXCEEDEDTimelimit exceeded 4LDAP_SIZELIMIT_EXCEEDEDSizelimit exceeded 5LDAP_COMPARE_FALSECompare false 6LDAP_COMPARE_TRUECompare true 7LDAP_STRONG_AUTH_NOT_SUPPORTEDStrong authentication not supported 8LDAP_STRONG_AUTH_REQUIREDStrong authentication required 9LDAP_PARTIAL_RESULTSPartial results 16LDAP_NO_SUCH_ATTRIBUTENo such attribute 17LDAP_UNDEFINED_TYPEUndefined attribute type 18LDAP_INAPPROPRIATE_MATCHINGInappropriate...