From: Julien V. <ju...@jb...> - 2005-07-04 18:23:41
|
User: julien Date: 05/07/04 14:22:49 Modified: portlet/src/main/org/jboss/portal/portlet PortletContainer.java Log: - moved transport guarantee out of portlet meta data to a more generic class - embryon of secure transport interceptor class that takes care of checking the portlet transport garantee Revision Changes Path 1.9 +22 -1 jboss-portal/portlet/src/main/org/jboss/portal/portlet/PortletContainer.java (In the diff below, changes in quantity of whitespace are not shown.) Index: PortletContainer.java =================================================================== RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/portlet/PortletContainer.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- PortletContainer.java 28 Jun 2005 17:58:15 -0000 1.8 +++ PortletContainer.java 4 Jul 2005 18:22:49 -0000 1.9 @@ -39,10 +39,12 @@ import java.util.Iterator; import java.util.HashMap; import java.util.Collections; +import java.util.Set; +import java.util.HashSet; /** * @author <a href="mailto:ju...@jb...">Julien Viet</a> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ public class PortletContainer implements Component { @@ -92,6 +94,9 @@ /** Are we started or not */ protected boolean started = false; + /** User data constraint. */ + protected Set userDataConstraints; + public PortletContainer(String id, PortletWebApp webApp, PortletMetaData metadata) { this.id = id; @@ -164,6 +169,10 @@ contentTypes.setMetadata(metadata.getContentTypes()); contentTypes.start(); + // + Set userDataConstraints = new HashSet(); + userDataConstraints.addAll(metadata.getUserDataConstraints()); + // Finally initialize the porlet instance try { @@ -183,6 +192,7 @@ this.preferences = preferences; this.contentTypes = contentTypes; this.resourceBundles = resourceBundles; + this.userDataConstraints = userDataConstraints; this.started = true; // Let invocation flow in @@ -250,6 +260,7 @@ preferences = null; contentTypes = null; preferences = null; + userDataConstraints = null; } } @@ -321,6 +332,16 @@ return webApp; } + public Set getUserDataConstraints() + { + return userDataConstraints; + } + + public void setUserDataConstraints(Set userDataConstraints) + { + this.userDataConstraints = userDataConstraints; + } + public String toString() { return "[PortletContainer=" + id + "]"; |