Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure
In directory
james.mmbase.org:/tmp/cvs-serv9561/portlets-secure/src/java/com/finalist/portlets/secure
Modified Files:
SecureContentPortlet.java SecureContentChannelPortlet.java
Log Message:
CMSC-1064 Reduce mmapps.CloudProvider usage
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-1064
Index: SecureContentPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure/SecureContentPortlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- SecureContentPortlet.java 10 May 2008 16:32:16 -0000 1.3
+++ SecureContentPortlet.java 10 Sep 2008 12:03:53 -0000 1.4
@@ -12,7 +12,6 @@
import org.mmbase.bridge.Node;
import org.apache.commons.lang.StringUtils;
-import net.sf.mmapps.modules.cloudprovider.CloudProviderFactory;
import com.finalist.cmsc.portlets.AbstractContentPortlet;
import com.finalist.cmsc.services.community.Community;
@@ -52,7 +51,7 @@
private boolean isSecure(String elementId) {
- Cloud cloud =
CloudProviderFactory.getCloudProvider().getCloud();
+ Cloud cloud = getCloudForAnonymousUpdate();
Node node = cloud.getNode(elementId);
return(node.getNodeManager().hasField("secure") &&
node.getBooleanValue("secure"));
}
Index: SecureContentChannelPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure/SecureContentChannelPortlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- SecureContentChannelPortlet.java 25 Jul 2008 15:53:10 -0000 1.3
+++ SecureContentChannelPortlet.java 10 Sep 2008 12:03:53 -0000 1.4
@@ -4,8 +4,6 @@
import javax.portlet.RenderRequest;
-import net.sf.mmapps.modules.cloudprovider.CloudProviderFactory;
-
import org.mmbase.bridge.*;
import com.finalist.cmsc.beans.MMBaseNodeMapper;
@@ -29,7 +27,7 @@
return super.getContentElements(req, contenttypes,
channel, offset, orderby, direction, archive, elementsPerPage, year, month,
day, useLifecycleBool);
}
else {
- Cloud cloud =
CloudProviderFactory.getCloudProvider().getCloud();
+ Cloud cloud = getCloudForAnonymousUpdate();
if (channel != null) {
Node chan = cloud.getNode(channel);
return getContentElements(chan, contenttypes,
orderby, direction, useLifecycleBool, archive, offset, elementsPerPage, year,
month, day, NOT_SECURE_PARAMETER_MAP);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs