StringUtils.isNotEmpty() VS StringUtils.isNotBlank() in WCS

StringUtils.isNotEmpty() StringUtils.isNotEmpty() is used to find if the String is not empty/String is length 0 and not null. Example:StringUtils.isNotEmpty(null)      = falseStringUtils.isNotEmpty(“”)         = falseStringUtils.isNotEmpty(” “)       = trueStringUtils.isNotEmpty(”  lol  “) = trueStringUtils.isNotEmpty(“lol”)     = true StringUtils.isNotBlank() StringUtils.isNotBlank() takes it a step forward. It not only checks if the 

Continue Reading →

What is data bean, access bean, session bean and entity bean in wcs

Data beans: Data beans implement one or all of the following Java interfaces: com.ibm.commerce.SmartDataBean com.ibm.commerce.CommandDataBean com.ibm.commerce.InputDataBean (optional) Instantiating databean in JSP Instantiating databean in Java Access Beans: Access beans are wrappers over the entity beans. Finding data by primary key Using a refreshcopyhelper method Do not need to use the refreshCopyHelper() if we are using 

Continue Reading →

Must follow guide lines to create a rest handler in wcs v8

Writing REST handler: If you are writing a custom handle in WCS follow below steps: Make entry of your custom handler in resources-ext.properties at below path.Rest\WebContent\WEB-INF\config\resources-ext.propertiese.g com.mycomp.commerce.rest.handlers.ExMyHandler If you want this to be served only over HTTPS/ support partial authentication, then entry has to be made in wc-rest-security.xml (/Rest/WebContent/WEB-INF/config/com.ibm.commerce.rest-ext/wc-rest-security.xml) with the API PATH. Create a 

Continue Reading →