Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure
In directory 
james.mmbase.org:/tmp/cvs-serv30840/portlets-secure/src/java/com/finalist/portlets/secure

Modified Files:
        SecureContentPortlet.java 
Log Message:
CMSC-900 Use commons.lang.SringUtils for string emptiness


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure
See also: http://www.mmbase.org/jira/browse/CMSC-900


Index: SecureContentPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure/SecureContentPortlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SecureContentPortlet.java   4 Apr 2008 14:22:10 -0000       1.2
+++ SecureContentPortlet.java   10 May 2008 16:32:16 -0000      1.3
@@ -11,7 +11,7 @@
 import org.mmbase.bridge.Cloud;
 import org.mmbase.bridge.Node;
 
-import net.sf.mmapps.commons.util.StringUtil;
+import org.apache.commons.lang.StringUtils;
 import net.sf.mmapps.modules.cloudprovider.CloudProviderFactory;
 
 import com.finalist.cmsc.portlets.AbstractContentPortlet;
@@ -29,13 +29,13 @@
           @Override
           protected void doView(RenderRequest req, RenderResponse res) throws 
PortletException, IOException {
              String elementId = req.getParameter(ELEMENT_ID);
-             if (StringUtil.isEmpty(elementId)) {
+             if (StringUtils.isEmpty(elementId)) {
                 PortletPreferences preferences = req.getPreferences();
                 elementId = preferences.getValue(CONTENTELEMENT, null);
              }
              getLogger().debug("doView for elementId: " + elementId);
 
-             if (!StringUtil.isEmpty(elementId)) {
+             if (StringUtils.isNotEmpty(elementId)) {
                  if(!isSecure(elementId) || isUserLoggedIn()) {
                         setAttribute(req, ELEMENT_ID, elementId);
                         setMetaData(req, elementId);
@@ -61,13 +61,13 @@
        @Override
           protected void doEdit(RenderRequest req, RenderResponse res) throws 
IOException, PortletException {
              String elementId = req.getParameter(ELEMENT_ID);
-             if (StringUtil.isEmpty(elementId)) {
+             if (StringUtils.isEmpty(elementId)) {
                 PortletPreferences preferences = req.getPreferences();
                 elementId = preferences.getValue(CONTENTELEMENT, null);
              }
              getLogger().debug("doEdit for elementId: " + elementId);
 
-             if (!StringUtil.isEmpty(elementId)) {
+             if (StringUtils.isNotEmpty(elementId)) {
                 setAttribute(req, ELEMENT_ID, elementId);
                 setMetaData(req, elementId);
                 doEdit(req, res, elementId);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to