Author: mwringe
Date: 2008-12-15 23:17:25 -0500 (Mon, 15 Dec 2008)
New Revision: 12387
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/DisplayNameMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/InstanceMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PolicyPermissionMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstanceMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstancesMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferenceMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferencesMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/SecurityConstrainMetaData.java
Removed:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication10MetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication20MetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomPortletModeMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomWindowStateMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ListenerMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication10MetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication20MetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletMetaDataConstants.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PublicRenderParameterMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/UserAttributeMetaData.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ValidationErrorHandler.java
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/adapter/
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/common/
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/event/
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/filter/
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/portlet/
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/security/
Log:
Code update dump.
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication10MetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication10MetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication10MetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,47 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2008, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-
-package org.jboss.portal.metadata.portlet;
-
-import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
-import org.jboss.portal.metadata.portlet.PortletMetaDataConstants;
-import org.jboss.xb.annotations.JBossXmlSchema;
-
-import javax.xml.bind.annotation.XmlNs;
-import javax.xml.bind.annotation.XmlNsForm;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlRootElement(name = "portlet-app")
-@XmlType(name = "portlet-appType")
-@JBossXmlSchema(xmlns = {@XmlNs(namespaceURI =
PortletMetaDataConstants.PORTLET_JSR_168_NS, prefix = "portlet")},
- ignoreUnresolvedFieldOrClass = false,
- namespace = PortletMetaDataConstants.PORTLET_JSR_168_NS,
- elementFormDefault = XmlNsForm.QUALIFIED)
-public class AnnotationPortletApplication10MetaData extends PortletApplication10MetaData
-{
-}
\ No newline at end of file
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication20MetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication20MetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/AnnotationPortletApplication20MetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,48 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2008, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-
-package org.jboss.portal.metadata.portlet;
-
-import org.jboss.portal.metadata.portlet.PortletApplication20MetaData;
-import org.jboss.portal.metadata.portlet.PortletMetaDataConstants;
-import org.jboss.xb.annotations.JBossXmlSchema;
-
-import javax.xml.bind.annotation.XmlNs;
-import javax.xml.bind.annotation.XmlNsForm;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-
-@XmlRootElement(name = "portlet-app")
-@XmlType(name = "portlet-appType")
-@JBossXmlSchema(xmlns = {@XmlNs(namespaceURI =
PortletMetaDataConstants.PORTLET_JSR_286_NS, prefix = "portlet")},
- ignoreUnresolvedFieldOrClass = false,
- namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS,
- elementFormDefault = XmlNsForm.QUALIFIED)
-public class AnnotationPortletApplication20MetaData extends PortletApplication20MetaData
-{
-}
\ No newline at end of file
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomPortletModeMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomPortletModeMetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomPortletModeMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,88 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "custom-portlet-modeType")
-public class CustomPortletModeMetaData extends DescribableMetaData
-{
-
- /** The custom portlet mode id*/
- private String id;
-
- /** The portlet mode */
- private String portletMode;
-
- /** Is portal managed */
- private boolean portalManaged = true;
-
- public CustomPortletModeMetaData() {}
-
- public CustomPortletModeMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "portlet-mode")
- public String getPortletMode()
- {
- return portletMode;
- }
-
- public void setPortletMode(String portletMode)
- {
- this.portletMode = portletMode;
- }
-
- @XmlElement(name = "portal-managed", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public boolean isPortalManaged()
- {
- return portalManaged;
- }
-
- public void setPortalManaged(boolean portalManaged)
- {
- this.portalManaged = portalManaged;
- }
-
-}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomWindowStateMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomWindowStateMetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/CustomWindowStateMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,74 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "custom-window-stateType")
-public class CustomWindowStateMetaData extends DescribableMetaData
-{
-
- /** The window state id */
- private String id;
-
- /** The window state */
- private String windowState;
-
- public CustomWindowStateMetaData() {}
-
- public CustomWindowStateMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "window-state")
- public String getWindowState()
- {
- return windowState;
- }
-
- public void setWindowState(String windowState)
- {
- this.windowState = windowState;
- }
-
-}
\ No newline at end of file
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/DisplayNameMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/DisplayNameMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/DisplayNameMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,63 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class DisplayNameMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+
+ protected String lang;
+
+ protected String displayName;
+
+ @XmlAttribute(name = "xml:lang")
+ public void setLang(String lang)
+ {
+ this.lang = lang;
+ }
+
+ @XmlElement(name = "display-name")
+ public void setDisplayName(String displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ public String getLang()
+ {
+ return lang;
+ }
+
+ public String getDisplayName()
+ {
+ return displayName;
+ }
+
+}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/InstanceMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/InstanceMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/InstanceMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,104 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.apache.log4j.Logger;
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class InstanceMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+
+ protected String instanceId;
+
+ protected String portletRef;
+
+ protected List<DisplayNameMetaData> displayNames;
+
+ protected PortletPreferencesMetaData portletPreferences;
+
+ protected SecurityConstrainMetaData securityContraint;
+
+ @XmlElement(name = "instance-id")
+ public void setInstanceId(String instanceId)
+ {
+ this.instanceId = instanceId;
+ }
+
+ @XmlElement(name = "portlet-ref")
+ public void setPortletRef(String portletRef)
+ {
+ this.portletRef = portletRef;
+ }
+
+ @XmlElement(name = "display-name")
+ public void setDisplayName(List<DisplayNameMetaData> displayNames)
+ {
+ this.displayNames = displayNames;
+ }
+
+ @XmlElement(name = "perferences")
+ public void setPreferences(PortletPreferencesMetaData preferences)
+ {
+ this.portletPreferences = preferences;
+ }
+
+ @XmlElement(name = "security-constraint")
+ public void setSecurityConstraint(SecurityConstrainMetaData securityConstraint)
+ {
+ this.securityContraint = securityConstraint;
+ }
+
+ public String getInstanceId()
+ {
+ return instanceId;
+ }
+
+ public String getPortletRef()
+ {
+ return portletRef;
+ }
+
+ public List<DisplayNameMetaData> getDisplayNames()
+ {
+ return displayNames;
+ }
+
+ public PortletPreferencesMetaData getPortletPreferences()
+ {
+ return portletPreferences;
+ }
+
+ public SecurityConstrainMetaData getSecurityContraint()
+ {
+ return securityContraint;
+ }
+
+}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ListenerMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ListenerMetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ListenerMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,95 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import javax.xml.bind.annotation.XmlAttribute;
-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;
-
-import org.jboss.portal.common.i18n.LocalizedString;
-import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
-import org.jboss.portal.metadata.portlet.adapter.LocalizedStringAdapter;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "listenerType")
-public class ListenerMetaData extends DescribableMetaData
-{
-
- /** The id */
- private String id;
-
- /** The display name */
- private LocalizedString displayName;
-
- /** The listener class */
- private String listenerClass;
-
- public ListenerMetaData() {}
-
- public ListenerMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "display-name")
- @XmlJavaTypeAdapter(LocalizedStringAdapter.class)
- public LocalizedString getDisplayName()
- {
- return displayName;
- }
-
- public void setDisplayName(LocalizedString displayName)
- {
- this.displayName = displayName;
- }
-
- @XmlElement(name = "listener-class")
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- public String getListenerClass()
- {
- return listenerClass;
- }
-
- public void setListenerClass(String listenerClass)
- {
- this.listenerClass = listenerClass;
- }
-
-}
-
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PolicyPermissionMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PolicyPermissionMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PolicyPermissionMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,74 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PolicyPermissionMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+ protected String actionName;
+
+ protected String roleName;
+
+ protected boolean unchecked = false;
+
+ @XmlElement(name = "action-name")
+ public void setActionName(String actionName)
+ {
+ this.actionName = actionName;
+ }
+
+ @XmlElement(name = "role-name")
+ public void setRoleName(String roleName)
+ {
+ this.roleName = roleName;
+ }
+
+ @XmlElement(name = "unchecked")
+ public void setUnchecked()
+ {
+ this.unchecked = true;
+ }
+
+ public String getActionName()
+ {
+ return actionName;
+ }
+
+ public String getRoleName()
+ {
+ return roleName;
+ }
+
+ public boolean isUnchecked()
+ {
+ return unchecked;
+ }
+
+}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication10MetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication10MetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication10MetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,217 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-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 javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
-import org.jboss.portal.metadata.portlet.security.SecurityConstraintMetaData;
-import org.jboss.portal.metadata.portlet.adapter.CustomPortletModeAdapter;
-import org.jboss.portal.metadata.portlet.adapter.CustomWindowStateAdapter;
-import org.jboss.portal.metadata.portlet.adapter.PortletListAdapter;
-import org.jboss.portal.metadata.portlet.adapter.UserAttributeAdapter;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-
-@XmlRootElement(name = "portlet-app")
-@XmlType(name = "portlet-appType")
-public class PortletApplication10MetaData
-{
- /** The portlet application id. */
- private String id;
-
- /** The portlet application version. */
- private String version;
-
- /** A bunch of portlets. */
- private Map<String, PortletMetaData> portlets;
-
- /** The user attributes. */
- private Map<String, UserAttributeMetaData> userAttributes;
-
- /** The custom portlet mode. */
- private Map<String, CustomPortletModeMetaData> customPortletModes;
-
- /** The custom window states. */
- private Map<String, CustomWindowStateMetaData> customWindowStates;
-
- /** The security constraints */
- private List<SecurityConstraintMetaData> securityConstraints;
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "version")
- public String getVersion()
- {
- return version;
- }
-
- public void setVersion(String version)
- {
- this.version = version;
- }
-
- @XmlElement(name = "portlet")
- @XmlJavaTypeAdapter(PortletListAdapter.class)
- public Map<String, PortletMetaData> getPortlets()
- {
- return portlets;
- }
-
- public void setPortlets(Map<String, PortletMetaData> portlets)
- {
- // Adding reference to the portlet application metadata
- for( PortletMetaData p : portlets.values())
- {
- p.setPortletApplication(this);
- }
- this.portlets = portlets;
- }
-
- public Collection<PortletMetaData> getPortletCollection()
- {
- return portlets != null ? portlets.values() : null;
- }
-
- public PortletMetaData getPortlet(String portletName)
- {
- return portlets.get(portletName);
- }
-
- public void addPortlet(PortletMetaData portlet)
- {
- if(this.portlets == null)
- {
- this.portlets = new LinkedHashMap<String, PortletMetaData>();
- }
- // Adding reference to the portlet application metadata
- portlet.setPortletApplication(this);
- this.portlets.put(portlet.getPortletName(), portlet);
- }
-
- @XmlElement(name = "user-attribute")
- @XmlJavaTypeAdapter(UserAttributeAdapter.class)
- public Map<String, UserAttributeMetaData> getUserAttributes()
- {
- return userAttributes;
- }
-
- public void setUserAttributes(Map<String, UserAttributeMetaData>
userAttributes)
- {
- this.userAttributes = userAttributes;
- }
-
- public void addUserAttribute(UserAttributeMetaData userAttribute)
- {
- if( this.userAttributes == null )
- {
- this.userAttributes = new HashMap<String, UserAttributeMetaData>();
- }
- this.userAttributes.put(userAttribute.getName(), userAttribute);
- }
-
- @XmlElement(name = "custom-portlet-mode")
- @XmlJavaTypeAdapter(CustomPortletModeAdapter.class)
- public Map<String, CustomPortletModeMetaData> getCustomPortletModes()
- {
- return customPortletModes;
- }
-
- public void setCustomPortletModes(Map<String, CustomPortletModeMetaData>
customPortletMode)
- {
- this.customPortletModes = customPortletMode;
- }
-
- public void addCustomPortletMode(CustomPortletModeMetaData portletMode)
- {
- if ( this.customPortletModes == null)
- {
- this.customPortletModes = new HashMap<String,
CustomPortletModeMetaData>();
- }
- this.customPortletModes.put(portletMode.getPortletMode(), portletMode);
- }
-
- @XmlElement(name = "custom-window-state")
- @XmlJavaTypeAdapter(CustomWindowStateAdapter.class)
- public Map<String, CustomWindowStateMetaData> getCustomWindowStates()
- {
- return customWindowStates;
- }
-
- public void setCustomWindowStates(Map<String, CustomWindowStateMetaData>
customWindowState)
- {
- this.customWindowStates = customWindowState;
- }
-
- public void addCustomWindowState(CustomWindowStateMetaData windowState)
- {
- if( this.customWindowStates == null )
- {
- this.customWindowStates = new HashMap<String,
CustomWindowStateMetaData>();
- }
- this.customWindowStates.put(windowState.getWindowState(), windowState);
- }
-
- @XmlElement(name = "security-constraint")
- public List<SecurityConstraintMetaData> getSecurityConstraints()
- {
- return securityConstraints;
- }
-
- public void setSecurityConstraints(List<SecurityConstraintMetaData>
securityConstraints)
- {
- this.securityConstraints = securityConstraints;
- }
-
- public void addSecurityConstraint(SecurityConstraintMetaData securityConstraint)
- {
- if(this.securityConstraints == null)
- {
- this.securityConstraints = new ArrayList<SecurityConstraintMetaData>();
- }
- this.securityConstraints.add(securityConstraint);
- }
-}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication20MetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication20MetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletApplication20MetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,238 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import org.jboss.portal.metadata.portlet.common.ContainerRuntimeMetaData;
-import org.jboss.portal.metadata.portlet.event.EventDefinitionMetaData;
-import org.jboss.portal.metadata.portlet.filter.FilterMappingMetaData;
-import org.jboss.portal.metadata.portlet.filter.FilterMetaData;
-import org.jboss.portal.metadata.portlet.adapter.ContainerRuntimeAdapter;
-import org.jboss.portal.metadata.portlet.adapter.FilterAdapter;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-public class PortletApplication20MetaData extends PortletApplication10MetaData
-{
- /** The resource bundle (JSR 286) */
- private String resourceBundle;
-
- /** The default namespace URI (JSR 286) */
- private URI defaultNamespace;
-
- /** The filters (JSR 286) */
- private Map<String, FilterMetaData> filters;
-
- /** The filter mapping (JSR 286) */
- private List<FilterMappingMetaData> filterMapping;
-
- /** The events (JSR 286) */
- private List<EventDefinitionMetaData> events;
-
- /** The public render parameters */
- private List<PublicRenderParameterMetaData> publicRenderParameters;
-
- /** The url generation listener */
- private List<ListenerMetaData> listeners;
-
- /** The container runtime options */
- private Map<String, ContainerRuntimeMetaData> containerRuntimeOptions;
-
- @XmlElement(name = "resource-bundle", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public String getResourceBundle()
- {
- return resourceBundle;
- }
-
- public void setResourceBundle(String resourceBundle)
- {
- this.resourceBundle = resourceBundle;
- }
-
- @XmlElement(name = "default-namespace")
- public URI getDefaultNamespace()
- {
- return defaultNamespace;
- }
-
- public void setDefaultNamespace(URI defaultNamespace)
- {
- this.defaultNamespace = defaultNamespace;
- }
-
- @XmlElement(name = "filter", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- @XmlJavaTypeAdapter(FilterAdapter.class)
- public Map<String, FilterMetaData> getFilters()
- {
- return this.filters;
- }
-
- public void setFilters(Map<String, FilterMetaData> filters)
- {
- this.filters = filters;
- }
-
- public Collection<FilterMetaData> getFilterCollection()
- {
- return this.filters != null ? this.filters.values() : null;
- }
-
- public FilterMetaData getFilter(String filterName)
- {
- return this.filters.get(filterName);
- }
-
- public void addFilter(FilterMetaData filter)
- {
- if ( this.filters == null)
- {
- this.filters = new LinkedHashMap<String, FilterMetaData>();
- }
- this.filters.put(filter.getFilterName(), filter);
- }
-
- @XmlElement(name = "filter-mapping", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<FilterMappingMetaData> getFilterMapping()
- {
- return filterMapping;
- }
-
- public void setFilterMapping(List<FilterMappingMetaData> filterMapping)
- {
- this.filterMapping = filterMapping;
- }
-
- public void addFilterMapping(FilterMappingMetaData filterMapping)
- {
- if(this.filterMapping == null)
- {
- this.filterMapping = new ArrayList<FilterMappingMetaData>();
- }
- this.filterMapping.add(filterMapping);
- }
-
- @XmlElement(name = "event-definition", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<EventDefinitionMetaData> getEvents()
- {
- return events;
- }
-
- public void setEvents(List<EventDefinitionMetaData> events)
- {
- this.events = events;
- }
-
- public void addEventDefinition(EventDefinitionMetaData eventDefinition)
- {
- if(this.events == null)
- {
- this.events = new ArrayList<EventDefinitionMetaData>();
- }
- this.events.add(eventDefinition);
- }
-
- @XmlElement(name = "public-render-parameter", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<PublicRenderParameterMetaData> getPublicRenderParameters()
- {
- return publicRenderParameters;
- }
-
- public void setPublicRenderParameters(List<PublicRenderParameterMetaData>
publicRenderParameters)
- {
- this.publicRenderParameters = publicRenderParameters;
- }
-
- public void addPublicRenderParameter(PublicRenderParameterMetaData renderParameter)
- {
- if( this.publicRenderParameters == null)
- {
- this.publicRenderParameters = new
ArrayList<PublicRenderParameterMetaData>();
- }
- this.publicRenderParameters.add(renderParameter);
- }
-
- @XmlElement(name = "listener", namespace =
PortletMetaDataConstants.PORTLET_JSR_286_NS)
- public List<ListenerMetaData> getListeners()
- {
- return listeners;
- }
-
- public void setListeners(List<ListenerMetaData> listeners)
- {
- this.listeners = listeners;
- }
-
- public void addListener(ListenerMetaData listener)
- {
- if (this.listeners == null)
- {
- this.listeners = new ArrayList<ListenerMetaData>();
- }
- this.listeners.add(listener);
- }
-
- @XmlElement(name = "container-runtime-option",
- namespace = PortletMetaDataConstants.PORTLET_JSR_286_NS)
- @XmlJavaTypeAdapter(ContainerRuntimeAdapter.class)
- public Map<String, ContainerRuntimeMetaData> getContainerRuntimeOptions()
- {
- return containerRuntimeOptions;
- }
-
- public void setContainerRuntimeOptions(Map<String, ContainerRuntimeMetaData>
containerRuntimeOptions)
- {
- this.containerRuntimeOptions = containerRuntimeOptions;
- }
-
- public ContainerRuntimeMetaData getContainerRuntimeOption(String option)
- {
- return this.containerRuntimeOptions.get(option);
- }
-
- public Set<String> getContainerRuntimeOptionSet()
- {
- return this.containerRuntimeOptions != null ? this.containerRuntimeOptions.keySet()
: null;
- }
-
- public void addContainerRuntime(ContainerRuntimeMetaData option)
- {
- if (this.containerRuntimeOptions == null)
- {
- this.containerRuntimeOptions = new HashMap<String,
ContainerRuntimeMetaData>();
- }
- this.containerRuntimeOptions.put(option.getName(), option);
- }
-}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstanceMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstanceMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstanceMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,69 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.logging.Logger;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PortletDeploymentInstanceMetaData
+{
+ private static final Logger log =
Logger.getLogger(PortletDeploymentInstanceMetaData.class);
+
+ protected InstanceMetaData instance;
+
+ protected boolean overwrite;
+
+ public void setInstance(InstanceMetaData instance)
+ {
+ this.instance = instance;
+ }
+
+ public InstanceMetaData getInstance()
+ {
+ return this.instance;
+ }
+
+ @XmlElement(name = "if-exists")
+ public void setIfExists(String ifExists)
+ {
+ if (ifExists.equals("overwrite"))
+ {
+ this.overwrite = true;
+ }
+ else if (!ifExists.equals("keep"))
+ {
+ log.warn("Unknow value for if-exists, expecting overwrite or keep");
+ }
+ }
+
+ public boolean getOverwrite()
+ {
+ return this.overwrite;
+ }
+
+}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstancesMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstancesMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletDeploymentInstancesMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,53 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+@XmlRootElement(name = "deployments", namespace = "")
+public class PortletDeploymentInstancesMetaData extends
IdMetaDataImplWithDescriptionGroup
+{
+
+ protected List<PortletDeploymentInstanceMetaData> deploymentInstances;
+
+ public List<PortletDeploymentInstanceMetaData> getDeploymentInstances()
+ {
+ return deploymentInstances;
+ }
+
+ @XmlElement(name = "deployment")
+ public void setDeploymentInstances(List<PortletDeploymentInstanceMetaData>
deploymentInstances)
+ {
+ this.deploymentInstances = deploymentInstances;
+ }
+
+}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletMetaDataConstants.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletMetaDataConstants.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletMetaDataConstants.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,45 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import static javax.xml.XMLConstants.XML_NS_URI;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-public final class PortletMetaDataConstants
-{
-
- /** The portlet version 1.0 namespace */
- public final static String PORTLET_JSR_168_NS =
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
-
- /** The portlet version 2.0 namespace */
- public final static String PORTLET_JSR_286_NS =
"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd";
-
- /** The xml namespace */
- public final static String NS_XML_NAMESPACE = XML_NS_URI;
-
- /** The default locale */
- public final static String DEFAULT_LOCALE = "en";
-}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferenceMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferenceMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferenceMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,62 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PortletPreferenceMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+
+ protected String name;
+
+ protected String value;
+
+ @XmlElement
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ @XmlElement
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public String getValue()
+ {
+ return value;
+ }
+
+}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferencesMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferencesMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PortletPreferencesMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,51 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PortletPreferencesMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+
+ protected List<PortletPreferenceMetaData> preferences;
+
+ @XmlElement(name = "preference")
+ public void setPreference(List<PortletPreferenceMetaData> preferences)
+ {
+ this.preferences = preferences;
+ }
+
+ public List<PortletPreferenceMetaData> getPreferences()
+ {
+ return preferences;
+ }
+
+}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PublicRenderParameterMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PublicRenderParameterMetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/PublicRenderParameterMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,129 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.namespace.QName;
-
-import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "public-render-parameterType")
-public class PublicRenderParameterMetaData extends DescribableMetaData
-{
-
- /** The public render parameter id */
- private String id;
-
- /** The public render parameter identifier */
- private String identifier;
-
- /** The QName */
- private QName qname;
-
- /** The name */
- private String name;
-
- /** The public render parameter alias */
- private List<QName> alias;
-
- public PublicRenderParameterMetaData() {}
-
- public PublicRenderParameterMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "identifier")
- public String getIdentifier()
- {
- return identifier;
- }
-
- public void setIdentifier(String identifier)
- {
- this.identifier = identifier;
- }
-
- @XmlElement(name = "qname")
- public QName getQname()
- {
- return qname;
- }
-
- public void setQname(QName qname)
- {
- this.qname = qname;
- }
-
- @XmlElement(name = "name")
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- @XmlElement(name = "alias")
- public List<QName> getAlias()
- {
- return alias;
- }
-
- public void setAlias(List<QName> alias)
- {
- this.alias = alias;
- }
-
- public void addAlias(QName alias)
- {
- if(this.alias == null)
- {
- this.alias = new ArrayList<QName>();
- }
- this.alias.add(alias);
- }
-
-}
Added:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/SecurityConstrainMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/SecurityConstrainMetaData.java
(rev 0)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/SecurityConstrainMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -0,0 +1,50 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.metadata.portlet;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author <a href="mailto:mwringe@redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class SecurityConstrainMetaData extends IdMetaDataImplWithDescriptionGroup
+{
+
+ protected List<PolicyPermissionMetaData> policyPermission;
+
+ @XmlElement(name = "policy-permission")
+ public void setPolicyPermission(List<PolicyPermissionMetaData>
policyPermission)
+ {
+ this.policyPermission = policyPermission;
+ }
+
+ public List<PolicyPermissionMetaData> getPolicyPermission()
+ {
+ return policyPermission;
+ }
+}
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/UserAttributeMetaData.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/UserAttributeMetaData.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/UserAttributeMetaData.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,74 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.portal.metadata.portlet.common.DescribableMetaData;
-
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-@XmlType(name = "user-attributeType")
-public class UserAttributeMetaData extends DescribableMetaData
-{
-
- /** The id */
- private String id;
-
- /** The name */
- private String name;
-
- public UserAttributeMetaData() {}
-
- public UserAttributeMetaData(String id)
- {
- this.id = id;
- }
-
- @XmlAttribute(name = "id")
- public String getId()
- {
- return id;
- }
-
- public void setId(String id)
- {
- this.id = id;
- }
-
- @XmlElement(name = "name")
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-}
-
Deleted:
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ValidationErrorHandler.java
===================================================================
---
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ValidationErrorHandler.java 2008-12-16
03:21:29 UTC (rev 12386)
+++
modules/metadata/trunk/metadata/src/main/java/org/jboss/portal/metadata/portlet/ValidationErrorHandler.java 2008-12-16
04:17:25 UTC (rev 12387)
@@ -1,52 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2006, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.metadata.portlet;
-
-import org.xml.sax.ErrorHandler;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-/**
- * @author <a href="mailto:emuckenh@redhat.com">Emanuel
Muckenhuber</a>
- * @version $Revision$
- */
-public class ValidationErrorHandler implements ErrorHandler
-{
-
- public void error(SAXParseException e) throws SAXException
- {
- throw new SAXException("Syntax error on line: " + e.getLineNumber() +
", column: " + e.getColumnNumber() + "\n"
- + e.getMessage());
- }
-
- public void fatalError(SAXParseException e) throws SAXException
- {
- throw new SAXException("Fatal syntax error on line: " + e.getLineNumber()
+ ", column: " + e.getColumnNumber()
- + "\n" + e.getMessage());
- }
-
- public void warning(SAXParseException e) throws SAXException
- {
- // TODO - maybe logging or similar stuff
- }
-
-}
\ No newline at end of file