Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure
In directory
james.mmbase.org:/tmp/cvs-serv2337/portlets-secure/src/java/com/finalist/portlets/secure
Modified Files:
Tag: b1_4
SecureContentPortlet.java SecureContentChannelPortlet.java
Log Message:
Removed commnunity calls from core portlets.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure
Index: SecureContentPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure/SecureContentPortlet.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- SecureContentPortlet.java 6 Apr 2008 20:14:39 -0000 1.1.2.2
+++ SecureContentPortlet.java 7 Apr 2008 09:46:18 -0000 1.1.2.3
@@ -45,6 +45,12 @@
}
+
+ private boolean isUserLoggedIn() {
+ return Community.isAuthenticated();
+ }
+
+
private boolean isSecure(String elementId) {
Cloud cloud =
CloudProviderFactory.getCloudProvider().getCloud();
Node node = cloud.getNode(elementId);
Index: SecureContentChannelPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-secure/src/java/com/finalist/portlets/secure/SecureContentChannelPortlet.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- SecureContentChannelPortlet.java 6 Apr 2008 20:14:39 -0000 1.1.2.2
+++ SecureContentChannelPortlet.java 7 Apr 2008 09:46:18 -0000 1.1.2.3
@@ -42,6 +42,11 @@
}
}
+
+ private boolean isUserLoggedIn() {
+ return Community.isAuthenticated();
+ }
+
private List<ContentElement> getContentElements(Node channel,
List<String> contenttypes, String orderby, String direction, boolean
useLifecycle, String archive, int offset, int maxNumber, int year, int month,
int day, HashMap<String,Object> extraParameters) {
List<ContentElement> result = new ArrayList<ContentElement>();
if (channel != null) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs