You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ms...@apache.org on 2015/11/27 13:37:53 UTC

[12/38] portals-pluto git commit: Replaced code that reads the deployment descriptor with an implementation that can be better extended to add v3.0 support. Added test cases. Uses jaxb binding classes that are generated at compile time.

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityConstraintImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityConstraintImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityConstraintImpl.java
new file mode 100644
index 0000000..bc6f53a
--- /dev/null
+++ b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityConstraintImpl.java
@@ -0,0 +1,117 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+
+package org.apache.pluto.container.om.portlet.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+import org.apache.pluto.container.om.portlet.DisplayName;
+import org.apache.pluto.container.om.portlet.SecurityConstraint;
+import org.apache.pluto.container.om.portlet.UserDataConstraint;
+
+/**
+ * Security Constraint
+ * 
+ * @author Scott Nicklous
+ *
+ */
+public class SecurityConstraintImpl implements SecurityConstraint {
+   
+   private UserDataConstraint udc;
+   private final List<DisplayName> dispNames = new ArrayList<DisplayName>();
+   private final ArrayList<String> portletNames = new ArrayList<String>();
+   
+   
+   /**
+    * Copy constructor
+    */
+   public SecurityConstraintImpl(SecurityConstraint sc) {
+      this.udc = sc.getUserDataConstraint();
+      for (DisplayName disp : sc.getDisplayNames()) {
+         dispNames.add(new DisplayNameImpl(disp));
+      }
+      for (String pn : sc.getPortletNames()) {
+         this.portletNames.add(new String(pn));
+      }
+   }
+
+   /**
+    * Constructor
+    */
+   public SecurityConstraintImpl(UserDataConstraint udc) {
+      this.udc = new UserDataConstraintImpl(udc);
+   }
+   
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#getUserDataConstraint()
+    */
+   @Override
+   public UserDataConstraint getUserDataConstraint() {
+      return new UserDataConstraintImpl(udc);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#getDisplayName(java.util.Locale)
+    */
+   @Override
+   public DisplayName getDisplayName(Locale locale) {
+      DisplayName ret = null;
+      for (DisplayName item : dispNames) {
+         if (item.getLocale().equals(locale)) {
+            ret = new DisplayNameImpl(item);
+         }
+      }
+      return ret;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#getDisplayNames()
+    */
+   @Override
+   public List<DisplayName> getDisplayNames() {
+      return new ArrayList<DisplayName>(dispNames);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#addDisplayName(org.apache.pluto.container.om.portlet.DisplayName)
+    */
+   @Override
+   public void addDisplayName(DisplayName desc) {
+      dispNames.add(desc);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#getPortletNames()
+    */
+   @Override
+   public List<String> getPortletNames() {
+      return new ArrayList<String>(portletNames);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityConstraint#addPortletName(java.lang.String)
+    */
+   @Override
+   public void addPortletName(String portletName) {
+      portletNames.add(portletName);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityRoleRefImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityRoleRefImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityRoleRefImpl.java
new file mode 100644
index 0000000..4a3e0ba
--- /dev/null
+++ b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SecurityRoleRefImpl.java
@@ -0,0 +1,115 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+
+package org.apache.pluto.container.om.portlet.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+import org.apache.pluto.container.om.portlet.Description;
+import org.apache.pluto.container.om.portlet.SecurityRoleRef;
+
+/**
+ * A single event declaration
+ * 
+ * @author Scott Nicklous
+ */
+public class SecurityRoleRefImpl implements SecurityRoleRef {
+   
+   private String roleLink;
+   private String roleName;
+   private final List<Description> descs = new ArrayList<Description>();
+   
+   
+   /**
+    * Copy constructor
+    * @param srr
+    */
+   public SecurityRoleRefImpl(SecurityRoleRef srr) {
+      this.roleName = srr.getRoleName();
+      this.roleLink = srr.getRoleLink();
+      for (Description desc : srr.getDescriptions()) {
+         descs.add(new DescriptionImpl(desc));
+      }
+   }
+
+   /**
+    * Constructor
+    * @param roleName      Role name
+    */
+   public SecurityRoleRefImpl(String roleName) {
+      this.roleName = roleName;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#getRoleName()
+    */
+   @Override
+   public String getRoleName() {
+      return roleName;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#getRoleLink()
+    */
+   @Override
+   public String getRoleLink() {
+      return roleLink;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#setRoleLink(String)
+    */
+   @Override
+   public void setRoleLink(String roleLink) {
+      this.roleLink = roleLink;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#getDescription(java.util.Locale)
+    */
+   @Override
+   public Description getDescription(Locale locale) {
+      Description ret = null;
+      for (Description item : descs) {
+         if (item.getLocale().equals(locale)) {
+            ret = new DescriptionImpl(item);
+         }
+      }
+      return ret;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#getDescriptions()
+    */
+   @Override
+   public List<Description> getDescriptions() {
+      return new ArrayList<Description>(descs);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.SecurityRoleRef#addDescription(org.apache.pluto.container.om.portlet.Description)
+    */
+   @Override
+   public void addDescription(Description desc) {
+      descs.add(desc);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SupportsImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SupportsImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SupportsImpl.java
new file mode 100644
index 0000000..366c103
--- /dev/null
+++ b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/SupportsImpl.java
@@ -0,0 +1,105 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+
+package org.apache.pluto.container.om.portlet.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.pluto.container.om.portlet.Supports;
+
+/**
+ * @author Scott Nicklous
+ *
+ */
+public class SupportsImpl implements Supports {
+   
+   private String mime;
+   private final ArrayList<String> portletModes = new ArrayList<String>();
+   private final ArrayList<String> windowStates = new ArrayList<String>();
+   
+   /**
+    * Copy constructor
+    */
+   public SupportsImpl(Supports sup) {
+      mime = sup.getMimeType();
+      for (String pm : sup.getPortletModes()) {
+         portletModes.add(pm);
+      }
+      for (String ws : sup.getWindowStates()) {
+         windowStates.add(ws);
+      }
+   }
+
+   /**
+    * Constructor
+    */
+   public SupportsImpl(String mt) {
+      mime = mt;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#getMimeType()
+    */
+   @Override
+   public String getMimeType() {
+      return mime;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#setMimeType(java.lang.String)
+    */
+   @Override
+   public void setMimeType(String mt) {
+      mime = mt;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#getPortletModes()
+    */
+   @Override
+   public List<String> getPortletModes() {
+      return new ArrayList<String>(portletModes);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#addPortletMode(java.lang.String)
+    */
+   @Override
+   public void addPortletMode(String portletMode) {
+      portletModes.add(portletMode);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#getWindowStates()
+    */
+   @Override
+   public List<String> getWindowStates() {
+      return new ArrayList<String>(windowStates);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.Supports#addWindowState(java.lang.String)
+    */
+   @Override
+   public void addWindowState(String windowState) {
+      windowStates.add(windowState);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserAttributeImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserAttributeImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserAttributeImpl.java
new file mode 100644
index 0000000..8431028
--- /dev/null
+++ b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserAttributeImpl.java
@@ -0,0 +1,97 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+
+package org.apache.pluto.container.om.portlet.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+import org.apache.pluto.container.om.portlet.Description;
+import org.apache.pluto.container.om.portlet.UserAttribute;
+
+/**
+ * A single event declaration
+ * 
+ * @author Scott Nicklous
+ */
+public class UserAttributeImpl implements UserAttribute {
+   
+   private String name;
+   private final List<Description> descs = new ArrayList<Description>();
+   
+   
+   /**
+    * Copy constructor
+    * @param udc
+    */
+   public UserAttributeImpl(UserAttribute udc) {
+      this.name = udc.getName();
+      for (Description desc : udc.getDescriptions()) {
+         descs.add(new DescriptionImpl(desc));
+      }
+   }
+
+   /**
+    * Constructor
+    * @param name   UserAttribute name
+    */
+   public UserAttributeImpl(String name) {
+      this.name = name;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserAttribute#getUserAttributeName()
+    */
+   @Override
+   public String getName() {
+      return name;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserAttribute#getDescription(java.util.Locale)
+    */
+   @Override
+   public Description getDescription(Locale locale) {
+      Description ret = null;
+      for (Description item : descs) {
+         if (item.getLocale().equals(locale)) {
+            ret = new DescriptionImpl(item);
+         }
+      }
+      return ret;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserAttribute#getDescriptions()
+    */
+   @Override
+   public List<Description> getDescriptions() {
+      return new ArrayList<Description>(descs);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserAttribute#addDescription(org.apache.pluto.container.om.portlet.Description)
+    */
+   @Override
+   public void addDescription(Description desc) {
+      descs.add(desc);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserDataConstraintImpl.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserDataConstraintImpl.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserDataConstraintImpl.java
new file mode 100644
index 0000000..07aa5fd
--- /dev/null
+++ b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/UserDataConstraintImpl.java
@@ -0,0 +1,97 @@
+/*  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+
+package org.apache.pluto.container.om.portlet.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+
+import org.apache.pluto.container.om.portlet.Description;
+import org.apache.pluto.container.om.portlet.UserDataConstraint;
+
+/**
+ * A single event declaration
+ * 
+ * @author Scott Nicklous
+ */
+public class UserDataConstraintImpl implements UserDataConstraint {
+   
+   private String transportGuarantee;
+   private final List<Description> descs = new ArrayList<Description>();
+   
+   
+   /**
+    * Copy constructor
+    * @param udc
+    */
+   public UserDataConstraintImpl(UserDataConstraint udc) {
+      this.transportGuarantee = udc.getTransportGuarantee();
+      for (Description desc : udc.getDescriptions()) {
+         descs.add(new DescriptionImpl(desc));
+      }
+   }
+
+   /**
+    * Constructor
+    * @param fn   UserDataConstraint name
+    */
+   public UserDataConstraintImpl(String udc) {
+      this.transportGuarantee = udc;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserDataConstraint#getUserDataConstraintName()
+    */
+   @Override
+   public String getTransportGuarantee() {
+      return transportGuarantee;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserDataConstraint#getDescription(java.util.Locale)
+    */
+   @Override
+   public Description getDescription(Locale locale) {
+      Description ret = null;
+      for (Description item : descs) {
+         if (item.getLocale().equals(locale)) {
+            ret = new DescriptionImpl(item);
+         }
+      }
+      return ret;
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserDataConstraint#getDescriptions()
+    */
+   @Override
+   public List<Description> getDescriptions() {
+      return new ArrayList<Description>(descs);
+   }
+
+   /* (non-Javadoc)
+    * @see org.apache.pluto.container.om.portlet.UserDataConstraint#addDescription(org.apache.pluto.container.om.portlet.Description)
+    */
+   @Override
+   public void addDescription(Description desc) {
+      descs.add(desc);
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ContainerRuntimeOptionType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ContainerRuntimeOptionType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ContainerRuntimeOptionType.java
deleted file mode 100644
index c8e8e25..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ContainerRuntimeOptionType.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The container-runtime-option element contains settings for the portlet container that the portlet expects to be
- * honored at runtime. These settings may re-define default portlet container behavior, like the javax.portlet.escapeXml
- * setting that disables XML encoding of URLs produced by the portlet tag library as default. Names with the
- * javax.portlet prefix are reserved for the Java Portlet Specification. Used in: portlet-app, portlet <p>Java class
- * for container-runtime-optionType complex type. <p>The following schema fragment specifies the expected content
- * contained within this class.
- * 
- * <pre>
- * &lt;complexType name=&quot;container-runtime-optionType&quot;&gt;
- *   &lt;complexContent&gt;
- *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
- *       &lt;sequence&gt;
- *         &lt;element name=&quot;name&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}nameType&quot;/&gt;
- *         &lt;element name=&quot;value&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}valueType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *       &lt;/sequence&gt;
- *     &lt;/restriction&gt;
- *   &lt;/complexContent&gt;
- * &lt;/complexType&gt;
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "container-runtime-optionType", propOrder = { "name", "value" })
-public class ContainerRuntimeOptionType
-{
-    @XmlElement(required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String name;
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    List<String> value;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomPortletModeType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomPortletModeType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomPortletModeType.java
deleted file mode 100644
index d0b0fcf..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomPortletModeType.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * A custom portlet mode that one or more portlets in this portlet application supports. Used in: portlet-app <p>Java
- * class for custom-portlet-modeType complex type. <p>The following schema fragment specifies the expected content
- * contained within this class.
- * 
- * <pre>
- * &lt;complexType name=&quot;custom-portlet-modeType&quot;&gt;
- *   &lt;complexContent&gt;
- *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
- *       &lt;sequence&gt;
- *         &lt;element name=&quot;description&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;portlet-mode&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-modeType&quot;/&gt;
- *       &lt;/sequence&gt;
- *       &lt;attribute name=&quot;id&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
- *     &lt;/restriction&gt;
- *   &lt;/complexContent&gt;
- * &lt;/complexType&gt;
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "custom-portlet-modeType", propOrder = { "description", "portletMode" })
-public class CustomPortletModeType
-{
-    @XmlElement(name = "description")
-    List<DescriptionType> description;
-    @XmlElement(name = "portlet-mode", required = true)
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String portletMode;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomWindowStateType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomWindowStateType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomWindowStateType.java
deleted file mode 100644
index c4062a9..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/CustomWindowStateType.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * A custom window state that one or more portlets in this portlet application supports. Used in: portlet-app <p>Java
- * class for custom-window-stateType complex type. <p>The following schema fragment specifies the expected content
- * contained within this class.
- * 
- * <pre>
- * &lt;complexType name="custom-window-stateType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="description" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="window-state" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}window-stateType"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "custom-window-stateType", propOrder = { "description", "windowState" })
-public class CustomWindowStateType
-{
-    @XmlElement(name = "description")
-    List<DescriptionType> description;
-    @XmlElement(name = "window-state", required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String windowState;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DescriptionType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DescriptionType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DescriptionType.java
deleted file mode 100644
index d65b9c2..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DescriptionType.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The description element is used to provide text describing the parent element. The description element should include
- * any information that the portlet application war file producer wants to provide to the consumer of the portlet
- * application war file (i.e., to the Deployer). Typically, the tools used by the portlet application war file consumer
- * will display the description when processing the parent element that contains the description. It has an optional
- * attribute xml:lang to indicate which language is used in the description according to RFC 1766
- * (http://www.ietf.org/rfc/rfc1766.txt). The default value of this attribute is English(“en”). Used in: init-param,
- * portlet, portlet-app, security-role <p>Java class for descriptionType complex type. <p>The following schema
- * fragment specifies the expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="descriptionType">
- *   &lt;simpleContent>
- *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
- *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
- *     &lt;/extension>
- *   &lt;/simpleContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "descriptionType", propOrder = { "value" })
-public class DescriptionType
-{
-    @XmlValue
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String value;
-    @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
-    String lang = null;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DisplayNameType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DisplayNameType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DisplayNameType.java
deleted file mode 100644
index 7cd0313..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/DisplayNameType.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The display-name type contains a short name that is intended to be displayed by tools. It is used by display-name
- * elements. The display name need not be unique. Example: ...
- * 
- * <pre>
- * &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;display-name xmlns="http://www.w3.org/2001/XMLSchema" xmlns:portlet="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en"&gt;Employee Self Service&lt;/display-name&gt;
- * </pre>
- * 
- * It has an optional attribute xml:lang to indicate which language is used in the description according to RFC 1766
- * (http://www.ietf.org/rfc/rfc1766.txt). The default value of this attribute is English(“en”). <p>Java class for
- * display-nameType complex type. <p>The following schema fragment specifies the expected content contained within this
- * class.
- * 
- * <pre>
- * &lt;complexType name="display-nameType">
- *   &lt;simpleContent>
- *     &lt;extension base="&lt;http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd>string">
- *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
- *     &lt;/extension>
- *   &lt;/simpleContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "display-nameType", propOrder = { "value" })
-public class DisplayNameType
-{
-    @XmlValue
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String value;
-    @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
-    String lang = null;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/InitParamType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/InitParamType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/InitParamType.java
deleted file mode 100644
index e9ab049..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/InitParamType.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The init-param element contains a name/value pair as an initialization param of the portlet Used in:portlet <p>Java
- * class for init-paramType complex type. <p>The following schema fragment specifies the expected content contained
- * within this class.
- * 
- * <pre>
- * &lt;complexType name="init-paramType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="description" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}nameType"/>
- *         &lt;element name="value" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}valueType"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "init-paramType", propOrder = { "description", "name", "value" })
-public class InitParamType
-{
-    @XmlElement(name = "description")
-    List<DescriptionType> description;
-    @XmlElement(required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String name;
-    @XmlElement(required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String value;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ObjectFactory.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ObjectFactory.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ObjectFactory.java
deleted file mode 100644
index 2c82ab4..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/ObjectFactory.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-/**
- * This object contains factory methods for each Java content interface and Java element interface generated in the
- * org.apache.pluto.descriptors.portlet10 package. <p>An ObjectFactory allows you to programatically construct new
- * instances of the Java representation for XML content. The Java representation of XML content can consist of schema
- * derived interfaces and classes representing the binding of schema type definitions, element declarations and model
- * groups. Factory methods for each of these are provided in this class.
- * 
- * @version $Id$
- */
-@XmlRegistry
-public class ObjectFactory
-{
-    private final static QName _PortletApp_QNAME = new QName("http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd",
-                                                             "portlet-app");
-
-    public ObjectFactory()
-    {
-    }
-
-    public PortletAppType createPortletApp()
-    {
-        return new PortletAppType();
-    }
-
-    @XmlElementDecl(namespace = "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd", name = "portlet-app")
-    public JAXBElement<PortletAppType> createPortletApp(PortletAppType value)
-    {
-        return new JAXBElement<PortletAppType>(_PortletApp_QNAME, PortletAppType.class, null, value);
-    }
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletAppType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletAppType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletAppType.java
deleted file mode 100644
index 2723517..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletAppType.java
+++ /dev/null
@@ -1,471 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.pluto.container.om.portlet.CustomPortletMode;
-import org.apache.pluto.container.om.portlet.CustomWindowState;
-import org.apache.pluto.container.om.portlet.Description;
-import org.apache.pluto.container.om.portlet.DisplayName;
-import org.apache.pluto.container.om.portlet.InitParam;
-import org.apache.pluto.container.om.portlet.PortletApplicationDefinition;
-import org.apache.pluto.container.om.portlet.PortletDefinition;
-import org.apache.pluto.container.om.portlet.PortletInfo;
-import org.apache.pluto.container.om.portlet.Preference;
-import org.apache.pluto.container.om.portlet.Preferences;
-import org.apache.pluto.container.om.portlet.SecurityConstraint;
-import org.apache.pluto.container.om.portlet.SecurityRoleRef;
-import org.apache.pluto.container.om.portlet.Supports;
-import org.apache.pluto.container.om.portlet.UserAttribute;
-
-/**
- * <p>Java class for portlet-appType complex type.</p> <p>The following schema fragment specifies the expected
- * content contained within this class.</p>
- * 
- * <pre>
- * &lt;complexType name=&quot;portlet-appType&quot;&gt;
- *   &lt;complexContent&gt;
- *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
- *       &lt;sequence&gt;
- *         &lt;element name=&quot;portlet&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portletType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;custom-portlet-mode&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}custom-portlet-modeType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;custom-window-state&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}custom-window-stateType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;user-attribute&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}user-attributeType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;security-constraint&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}security-constraintType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *       &lt;/sequence&gt;
- *       &lt;attribute name=&quot;version&quot; use=&quot;required&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
- *       &lt;attribute name=&quot;id&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
- *     &lt;/restriction&gt;
- *   &lt;/complexContent&gt;
- * &lt;/complexType&gt;
- * </pre>
- * 
- * @version $Id$
- */
-@XmlRootElement(name = "portlet-app")
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "portlet-appType", propOrder = { "portlet", "customPortletMode", "customWindowState", "userAttribute",
-                                                "securityConstraint" })
-public class PortletAppType
-{
-    @XmlElement(name = "portlet")
-    List<PortletType> portlet;
-    @XmlElement(name = "custom-portlet-mode")
-    List<CustomPortletModeType> customPortletMode;
-    @XmlElement(name = "custom-window-state")
-    List<CustomWindowStateType> customWindowState;
-    @XmlElement(name = "user-attribute")
-    List<UserAttributeType> userAttribute;
-    @XmlElement(name = "security-constraint")
-    List<SecurityConstraintType> securityConstraint;
-    @XmlAttribute(required = true)
-    String version = PortletApplicationDefinition.JSR_168_VERSION;
-    
-    public PortletAppType()
-    {
-    }
-    
-    public PortletAppType(PortletApplicationDefinition app)
-    {
-        // downgrade
-        for (PortletDefinition pd : app.getPortlets())
-        {
-            if (portlet == null)
-            {
-                portlet = new ArrayList<PortletType>();
-            }
-            PortletType pt = new PortletType();
-            downgradePortlet(pd, pt);
-            portlet.add(pt);            
-        }
-        for (CustomPortletMode cpm : app.getCustomPortletModes())
-        {
-            if (customPortletMode == null)
-            {
-                customPortletMode = new ArrayList<CustomPortletModeType>();
-            }
-            CustomPortletModeType cpmt = new CustomPortletModeType();
-            cpmt.portletMode = cpm.getPortletMode();
-            for (Description d : cpm.getDescriptions())
-            {
-                if (cpmt.description == null)
-                {
-                    cpmt.description = new ArrayList<DescriptionType>();
-                }
-                DescriptionType dt = new DescriptionType();
-                dt.lang = d.getLang();
-                dt.value = d.getDescription();
-                cpmt.description.add(dt);
-            }
-        }
-        for (CustomWindowState cws : app.getCustomWindowStates())
-        {
-            if (customWindowState == null)
-            {
-                customWindowState = new ArrayList<CustomWindowStateType>();
-            }
-            CustomWindowStateType cwst = new CustomWindowStateType();
-            cwst.windowState = cws.getWindowState();
-            for (Description d : cws.getDescriptions())
-            {
-                if (cwst.description == null)
-                {
-                    cwst.description = new ArrayList<DescriptionType>();
-                }
-                DescriptionType dt = new DescriptionType();
-                dt.lang = d.getLang();
-                dt.value = d.getDescription();
-                cwst.description.add(dt);
-            }
-        }
-    }
-    
-    public PortletApplicationDefinition upgrade()
-    {
-        PortletApplicationDefinition app = new org.apache.pluto.container.om.portlet20.impl.PortletAppType();
-        app.setVersion(version);
-        if (portlet != null)
-        {
-            for (PortletType src : portlet)
-            {
-                PortletDefinition target = app.addPortlet(src.portletName);
-                upgradePortlet(src, target);
-            }
-        }
-        if (customPortletMode != null)
-        {
-            for (CustomPortletModeType src : customPortletMode)
-            {
-                CustomPortletMode target = app.addCustomPortletMode(src.portletMode);
-                if (src.description != null)
-                {
-                    for (DescriptionType d : src.description)
-                    {
-                        Description desc = target.addDescription(d.lang);
-                        desc.setDescription(d.value);
-                    }
-                }
-            }
-        }
-        if (customWindowState != null)
-        {
-            for (CustomWindowStateType src : customWindowState)
-            {
-                CustomWindowState target = app.addCustomWindowState(src.windowState);
-                if (src.description != null)
-                {
-                    for (DescriptionType d : src.description)
-                    {
-                        Description desc = target.addDescription(d.lang);
-                        desc.setDescription(d.value);
-                    }
-                }
-            }
-        }
-        if (userAttribute != null)
-        {
-            for (UserAttributeType src : userAttribute)
-            {
-                UserAttribute target = app.addUserAttribute(src.name);
-                if (src.description != null)
-                {
-                    for (DescriptionType d : src.description)
-                    {
-                        Description desc = target.addDescription(d.lang);
-                        desc.setDescription(d.value);
-                    }
-                }
-            }
-        }
-        if (securityConstraint != null)
-        {
-            for (SecurityConstraintType src : securityConstraint)
-            {
-                SecurityConstraint target = app.addSecurityConstraint(src.userDataConstraint.transportGuarantee);
-                if (src.displayName != null)
-                {
-                    for (DisplayNameType d : src.displayName)
-                    {
-                        DisplayName dname = target.addDisplayName(d.lang);
-                        dname.setDisplayName(d.value);
-                    }
-                }
-                if (src.portletCollection != null && src.portletCollection.portletName != null)
-                {
-                    for (String pname : src.portletCollection.portletName)
-                    {
-                        target.addPortletName(pname);
-                    }
-                }
-            }
-        }
-        return app;
-    }
-    
-    private void downgradePortlet(PortletDefinition src, PortletType target)
-    {
-        for (Description d : src.getDescriptions())
-        {
-            if (target.description == null)
-            {
-                target.description = new ArrayList<DescriptionType>();
-            }
-            DescriptionType dt = new DescriptionType();
-            dt.lang = d.getLang();
-            dt.value = d.getDescription();
-            target.description.add(dt);
-        }
-        for (DisplayName d : src.getDisplayNames())
-        {
-            if (target.displayName == null)
-            {
-                target.displayName = new ArrayList<DisplayNameType>();
-            }
-            DisplayNameType dnt = new DisplayNameType();
-            dnt.lang = d.getLang();
-            dnt.value = d.getDisplayName();
-            target.displayName.add(dnt);
-        }
-        target.portletClass = src.getPortletClass();
-        if (src.getExpirationCache() != 0)
-        {
-            target.expirationCache = new Integer(src.getExpirationCache());
-        }
-        for (InitParam p : src.getInitParams())
-        {
-            if (target.initParam == null)
-            {
-                target.initParam = new ArrayList<InitParamType>();
-            }
-            InitParamType pt = new InitParamType();
-            pt.name = p.getParamName();
-            pt.value = p.getParamValue();
-            for (Description d : p.getDescriptions())
-            {
-                if (pt.description == null)
-                {
-                    pt.description = new ArrayList<DescriptionType>();
-                }
-                DescriptionType dt = new DescriptionType();
-                dt.lang = d.getLang();
-                dt.value = d.getDescription();
-                pt.description.add(dt);
-            }
-            target.initParam.add(pt);
-        }
-        for (Supports s : src.getSupports())
-        {
-            if (target.supports == null)
-            {
-                target.supports = new ArrayList<SupportsType>();
-            }
-            SupportsType st = new SupportsType();
-            st.mimeType = s.getMimeType();
-            for (String name : s.getPortletModes())
-            {
-                if (st.portletMode == null)
-                {
-                    st.portletMode = new ArrayList<String>();
-                }
-                st.portletMode.add(name);
-            }
-            target.supports.add(st);
-        }
-        for (String lang : src.getSupportedLocales())
-        {
-            if (target.supportedLocale == null)
-            {
-                target.supportedLocale = new ArrayList<String>();
-            }
-            target.supportedLocale.add(lang);
-        }
-        target.resourceBundle = src.getResourceBundle();
-        PortletInfoType pit = new PortletInfoType();
-        pit.title = src.getPortletInfo().getTitle();
-        pit.shortTitle = src.getPortletInfo().getShortTitle();
-        pit.keywords = src.getPortletInfo().getKeywords();
-        if (pit.title != null || pit.shortTitle != null || pit.keywords != null)
-        {
-            target.portletInfo = pit;
-        }
-        PortletPreferencesType ppt = new PortletPreferencesType();
-        ppt.preferencesValidator = src.getPortletPreferences().getPreferencesValidator();
-        for (Preference p : src.getPortletPreferences().getPortletPreferences())
-        {
-            if (ppt.preference == null)
-            {
-                ppt.preference = new ArrayList<PreferenceType>();                
-            }
-            PreferenceType pt = new PreferenceType();
-            pt.name = p.getName();
-            pt.readOnly = p.isReadOnly() ? Boolean.TRUE : null;
-            for (String value : p.getValues())
-            {
-                if (pt.value == null)
-                {
-                    pt.value = new ArrayList<String>();
-                }
-                pt.value.add(value);
-            }
-            ppt.preference.add(pt);
-        }
-        if (ppt.preferencesValidator != null || ppt.preference != null)
-        {
-            target.portletPreferences = ppt;
-        }
-        for (SecurityRoleRef srr : src.getSecurityRoleRefs())
-        {
-            if (target.securityRoleRef == null)
-            {
-                target.securityRoleRef = new ArrayList<SecurityRoleRefType>();                
-            }
-            SecurityRoleRefType srrt = new SecurityRoleRefType();
-            srrt.roleName = srr.getRoleName();
-            srrt.roleLink = srr.getRoleLink();
-            for (Description d : srr.getDescriptions())
-            {
-                if (srrt.description == null)
-                {
-                    srrt.description = new ArrayList<DescriptionType>();
-                }
-                DescriptionType dt = new DescriptionType();
-                dt.lang = d.getLang();
-                dt.value = d.getDescription();
-                srrt.description.add(dt);
-            }
-            target.securityRoleRef.add(srrt);
-        }
-    }
-    
-    private void upgradePortlet(PortletType src, PortletDefinition target)
-    {
-        if (src.description != null)
-        {
-            for (DescriptionType d : src.description)
-            {
-                Description desc = target.addDescription(d.lang);
-                desc.setDescription(d.value);
-            }
-        }
-        if (src.displayName != null)
-        {
-            for (DisplayNameType d : src.displayName)
-            {
-                DisplayName dname = target.addDisplayName(d.lang);
-                dname.setDisplayName(d.value);
-            }
-        }
-        target.setPortletClass(src.portletClass);
-        if (src.expirationCache != null)
-        {
-            target.setExpirationCache(src.expirationCache.intValue());
-        }
-        if (src.initParam != null)
-        {
-            for (InitParamType p : src.initParam)
-            {
-                InitParam param = target.addInitParam(p.name);
-                param.setParamValue(p.value);
-                if (p.description != null)
-                {
-                    for (DescriptionType d : p.description)
-                    {
-                        Description desc = param.addDescription(d.lang);
-                        desc.setDescription(d.value);
-                    }
-                }
-            }
-        }
-        if (src.supports != null)
-        {
-            for (SupportsType st : src.supports)
-            {
-                Supports s = target.addSupports(st.mimeType);
-                if (st.portletMode != null)
-                {
-                    for (String mode : st.portletMode)
-                    {
-                        s.addPortletMode(mode);
-                    }
-                }
-            }
-        }
-        if (src.supportedLocale != null)
-        {
-            for (String lang : src.supportedLocale)
-            {
-                target.addSupportedLocale(lang);
-            }
-        }
-        target.setResourceBundle(src.resourceBundle);
-        if (src.portletInfo != null)
-        {
-            PortletInfo pi = target.getPortletInfo();
-            pi.setTitle(src.portletInfo.title);
-            pi.setShortTitle(src.portletInfo.shortTitle);
-            pi.setKeywords(src.portletInfo.keywords);
-        }
-        if (src.portletPreferences != null)
-        {
-            Preferences prefs = target.getPortletPreferences();
-            prefs.setPreferencesValidator(src.portletPreferences.preferencesValidator);
-            if (src.portletPreferences.preference != null)
-            {
-                for (PreferenceType p : src.portletPreferences.preference)
-                {
-                    Preference pref = prefs.addPreference(p.name);
-                    if (p.value != null)
-                    {
-                        for (String value : p.value)
-                        {
-                            pref.addValue(value);
-                        }
-                    }
-                    if (p.readOnly != null)
-                    {
-                        pref.setReadOnly(p.readOnly.booleanValue());
-                    }
-                }
-            }
-        }
-        if (src.securityRoleRef != null)
-        {
-            for (SecurityRoleRefType rrt : src.securityRoleRef)
-            {
-                SecurityRoleRef srr = target.addSecurityRoleRef(rrt.roleName);
-                srr.setRoleLink(rrt.roleLink);
-                if (rrt.description != null)
-                {
-                    for (DescriptionType d : rrt.description)
-                    {
-                        Description desc = srr.addDescription(d.lang);
-                        desc.setDescription(d.value);
-                    }
-                }
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletCollectionType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletCollectionType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletCollectionType.java
deleted file mode 100644
index d404025..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletCollectionType.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The portlet-collectionType is used to identify a subset of portlets within a portlet application to which a security
- * constraint applies. Used in: security-constraint <p>Java class for portlet-collectionType complex type. <p>The
- * following schema fragment specifies the expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="portlet-collectionType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="portlet-name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-nameType" maxOccurs="unbounded"/>
- *       &lt;/sequence>
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "portlet-collectionType", propOrder = { "portletName" })
-public class PortletCollectionType
-{
-    @XmlElement(name = "portlet-name", required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    List<String> portletName;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletInfoType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletInfoType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletInfoType.java
deleted file mode 100644
index 00e622e..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletInfoType.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * <p>Java class for portlet-infoType complex type. <p>The following schema fragment specifies the expected content
- * contained within this class.
- * 
- * <pre>
- * &lt;complexType name=&quot;portlet-infoType&quot;&gt;
- *   &lt;complexContent&gt;
- *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
- *       &lt;sequence&gt;
- *         &lt;element name=&quot;title&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}titleType&quot;/&gt;
- *         &lt;element name=&quot;short-title&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}short-titleType&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;keywords&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}keywordsType&quot; minOccurs=&quot;0&quot;/&gt;
- *       &lt;/sequence&gt;
- *       &lt;attribute name=&quot;id&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
- *     &lt;/restriction&gt;
- *   &lt;/complexContent&gt;
- * &lt;/complexType&gt;
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "portlet-infoType", propOrder = { "title", "shortTitle", "keywords" })
-public class PortletInfoType
-{
-    @XmlElement(name = "title")
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String title;
-    @XmlElement(name = "short-title")
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String shortTitle;
-    @XmlElement(name = "keywords")
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String keywords;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletPreferencesType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletPreferencesType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletPreferencesType.java
deleted file mode 100644
index 3918f7f..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletPreferencesType.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * Portlet persistent preference store. Used in: portlet <p>Java class for portlet-preferencesType complex type. <p>The
- * following schema fragment specifies the expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="portlet-preferencesType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="preference" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}preferenceType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="preferences-validator" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}preferences-validatorType" minOccurs="0"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "portlet-preferencesType", propOrder = { "preference", "preferencesValidator" })
-public class PortletPreferencesType
-{
-    @XmlElement(name = "preference")
-    List<PreferenceType> preference;
-    @XmlElement(name = "preferences-validator")
-    String preferencesValidator;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletType.java
deleted file mode 100644
index 50c8b82..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PortletType.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The portlet element contains the declarative data of a portlet. Used in: portlet-app <p>Java class for portletType
- * complex type. <p>The following schema fragment specifies the expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name=&quot;portletType&quot;&gt;
- *   &lt;complexContent&gt;
- *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
- *       &lt;sequence&gt;
- *         &lt;element name=&quot;description&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;portlet-name&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-nameType&quot;/&gt;
- *         &lt;element name=&quot;display-name&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}display-nameType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;portlet-class&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-classType&quot;/&gt;
- *         &lt;element name=&quot;init-param&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}init-paramType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;expiration-cache&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}expiration-cacheType&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;supports&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}supportsType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
- *         &lt;element name=&quot;supported-locale&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}supported-localeType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;choice&gt;
- *           &lt;sequence&gt;
- *             &lt;element name=&quot;resource-bundle&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}resource-bundleType&quot;/&gt;
- *             &lt;element name=&quot;portlet-info&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-infoType&quot; minOccurs=&quot;0&quot;/&gt;
- *           &lt;/sequence&gt;
- *           &lt;element name=&quot;portlet-info&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-infoType&quot;/&gt;
- *         &lt;/choice&gt;
- *         &lt;element name=&quot;portlet-preferences&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-preferencesType&quot; minOccurs=&quot;0&quot;/&gt;
- *         &lt;element name=&quot;security-role-ref&quot; type=&quot;{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}security-role-refType&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
- *       &lt;/sequence&gt;
- *       &lt;attribute name=&quot;id&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; /&gt;
- *     &lt;/restriction&gt;
- *   &lt;/complexContent&gt;
- * &lt;/complexType&gt;
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "portletType", propOrder = { "description", "portletName", "displayName", "portletClass", "initParam",
-                                            "expirationCache", "supports", "supportedLocale", "resourceBundle",
-                                            "portletInfo", "portletPreferences", "securityRoleRef" })
-public class PortletType
-{
-    @XmlElement(name = "description")
-    List<DescriptionType> description;
-    @XmlElement(name = "portlet-name", required = true)
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String portletName;
-    @XmlElement(name = "display-name")
-    List<DisplayNameType> displayName;
-    @XmlElement(name = "portlet-class", required = true)
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String portletClass;
-    @XmlElement(name = "init-param")
-    List<InitParamType> initParam;
-    @XmlElement(name = "expiration-cache")
-    Integer expirationCache;
-    @XmlElement(required = true)
-    List<SupportsType> supports;
-    @XmlElement(name = "supported-locale")
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    List<String> supportedLocale;
-    @XmlElement(name = "resource-bundle")
-    @XmlJavaTypeAdapter(value = CollapsedStringAdapter.class)
-    String resourceBundle;
-    @XmlElement(name = "portlet-info")
-    PortletInfoType portletInfo;
-    @XmlElement(name = "portlet-preferences")
-    PortletPreferencesType portletPreferences;
-    @XmlElement(name = "security-role-ref")
-    List<SecurityRoleRefType> securityRoleRef;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PreferenceType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PreferenceType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PreferenceType.java
deleted file mode 100644
index 0c69c78..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/PreferenceType.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * Persistent preference values that may be used for customization and personalization by the portlet. Used in:
- * portlet-preferences <p>Java class for preferenceType complex type. <p>The following schema fragment specifies the
- * expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="preferenceType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}nameType"/>
- *         &lt;element name="value" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}valueType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="read-only" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}read-onlyType" minOccurs="0"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "preferenceType", propOrder = { "name", "value", "readOnly" })
-public class PreferenceType
-{
-    @XmlElement(required = true)
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String name;
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    List<String> value;
-    @XmlElement(name = "read-only")
-    Boolean readOnly;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityConstraintType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityConstraintType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityConstraintType.java
deleted file mode 100644
index 68ee7ba..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityConstraintType.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * The security-constraintType is used to associate intended security constraints with one or more portlets. Used in:
- * portlet-app <p>Java class for security-constraintType complex type. <p>The following schema fragment specifies the
- * expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="security-constraintType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="display-name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}display-nameType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="portlet-collection" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-collectionType"/>
- *         &lt;element name="user-data-constraint" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}user-data-constraintType"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "security-constraintType", propOrder = { "displayName", "portletCollection", "userDataConstraint" })
-public class SecurityConstraintType
-{
-    @XmlElement(name = "display-name")
-    List<DisplayNameType> displayName;
-    @XmlElement(name = "portlet-collection", required = true)
-    PortletCollectionType portletCollection;
-    @XmlElement(name = "user-data-constraint", required = true)
-    UserDataConstraintType userDataConstraint;
-}

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/bf15b331/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityRoleRefType.java
----------------------------------------------------------------------
diff --git a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityRoleRefType.java b/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityRoleRefType.java
deleted file mode 100644
index 319f1de..0000000
--- a/pluto-container/src/main/java/org/apache/pluto/container/om/portlet10/impl/SecurityRoleRefType.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.pluto.container.om.portlet10.impl;
-
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-/**
- * The security-role-ref element contains the declaration of a security role reference in the code of the web
- * application. The declaration consists of an optional description, the security role name used in the code, and an
- * optional link to a security role. If the security role is not specified, the Deployer must choose an appropriate
- * security role. The value of the role name element must be the String used as the parameter to the
- * EJBContext.isCallerInRole(String roleName) method or the HttpServletRequest.isUserInRole(String role) method. Used
- * in: portlet <p>Java class for security-role-refType complex type. <p>The following schema fragment specifies the
- * expected content contained within this class.
- * 
- * <pre>
- * &lt;complexType name="security-role-refType">
- *   &lt;complexContent>
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       &lt;sequence>
- *         &lt;element name="description" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
- *         &lt;element name="role-name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}role-nameType"/>
- *         &lt;element name="role-link" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}role-linkType" minOccurs="0"/>
- *       &lt;/sequence>
- *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     &lt;/restriction>
- *   &lt;/complexContent>
- * &lt;/complexType>
- * </pre>
- * 
- * @version $Id$
-*/
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "security-role-refType", propOrder = { "description", "roleName", "roleLink" })
-public class SecurityRoleRefType
-{
-    @XmlElement(name = "description")
-    List<DescriptionType> description;
-    @XmlElement(name = "role-name", required = true)
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    String roleName;
-    @XmlElement(name = "role-link")
-    @XmlJavaTypeAdapter(value=CollapsedStringAdapter.class)
-    String roleLink;
-}