[portal-commits] JBoss Portal SVN: r13093 - in modules/metadata/trunk: theme and 11 other directories.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Fri Mar 27 15:51:30 EDT 2009
Author: mwringe
Date: 2009-03-27 15:51:30 -0400 (Fri, 27 Mar 2009)
New Revision: 13093
Added:
modules/metadata/trunk/theme/
modules/metadata/trunk/theme/pom.xml
modules/metadata/trunk/theme/src/
modules/metadata/trunk/theme/src/main/
modules/metadata/trunk/theme/src/main/java/
modules/metadata/trunk/theme/src/main/java/org/
modules/metadata/trunk/theme/src/main/java/org/jboss/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutsMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionsMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/URIMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/adapter/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/adapter/RegionAdapter.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/PortalRenderSetsMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/RenderSetMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/SetMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemeMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemesMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeLinkMetaData.java
modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeScriptMetaData.java
modules/metadata/trunk/theme/src/test/
Modified:
modules/metadata/trunk/.classpath
modules/metadata/trunk/pom.xml
Log:
Add theme metadata.
Modified: modules/metadata/trunk/.classpath
===================================================================
--- modules/metadata/trunk/.classpath 2009-03-27 07:36:47 UTC (rev 13092)
+++ modules/metadata/trunk/.classpath 2009-03-27 19:51:30 UTC (rev 13093)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target-eclipse/classes" path="metadata/src/main/java"/>
+ <classpathentry kind="src" path="theme/src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target-eclipse/classes"/>
Modified: modules/metadata/trunk/pom.xml
===================================================================
--- modules/metadata/trunk/pom.xml 2009-03-27 07:36:47 UTC (rev 13092)
+++ modules/metadata/trunk/pom.xml 2009-03-27 19:51:30 UTC (rev 13093)
@@ -25,6 +25,7 @@
<modules>
<module>build</module>
<module>metadata</module>
+ <module>theme</module>
</modules>
<reporting>
Property changes on: modules/metadata/trunk/theme
___________________________________________________________________
Name: svn:ignore
+ target
Added: modules/metadata/trunk/theme/pom.xml
===================================================================
--- modules/metadata/trunk/theme/pom.xml (rev 0)
+++ modules/metadata/trunk/theme/pom.xml 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,45 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>trunk-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>metadata-theme</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal Theme Metadata</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <encoding>iso-8859-1</encoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties/>
+</project>
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,94 @@
+/******************************************************************************
+ * 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.layout;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PortalLayoutMetaData
+{
+
+ protected String name;
+
+ protected String classname;
+
+ protected List<URIMetaData> uris;
+
+ protected RegionsMetaData regions;
+
+ public PortalLayoutMetaData()
+ {
+ classname = "org.jboss.portal.theme.impl.JSPLayout";
+ uris = new ArrayList<URIMetaData>();
+ }
+
+ @XmlElement(name = "name")
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ @XmlElement(name = "layout-implementation")
+ public String getClassName()
+ {
+ return classname;
+ }
+
+ public void setClassName(String classname)
+ {
+ this.classname = classname;
+ }
+
+ @XmlElement(name = "uri")
+ public List<URIMetaData> getUris()
+ {
+ return uris;
+ }
+
+ public void setUris(List<URIMetaData> uris)
+ {
+ this.uris = uris;
+ }
+
+ @XmlElement(name = "regions")
+ public RegionsMetaData getRegions()
+ {
+ return regions;
+ }
+
+ public void setRegions(RegionsMetaData regions)
+ {
+ this.regions = regions;
+ }
+}
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutsMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutsMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/PortalLayoutsMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,49 @@
+/******************************************************************************
+ * 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.layout;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+ at XmlRootElement(name = "layouts", namespace = "")
+public class PortalLayoutsMetaData
+{
+ protected List<PortalLayoutMetaData> layouts;
+
+ @XmlElement(name = "layout")
+ public List<PortalLayoutMetaData> getLayouts()
+ {
+ return layouts;
+ }
+
+ public void setLayouts(List<PortalLayoutMetaData> layouts)
+ {
+ this.layouts = layouts;
+ }
+}
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,47 @@
+/******************************************************************************
+ * 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.layout;
+
+import javax.xml.bind.annotation.XmlAttribute;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class RegionMetaData
+{
+
+ protected String name;
+
+ @XmlAttribute(name = "name")
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+}
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionsMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionsMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/RegionsMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,59 @@
+/******************************************************************************
+ * 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.layout;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.jboss.portal.metadata.layout.adapter.RegionAdapter;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class RegionsMetaData
+{
+
+ protected List<String> regions;
+
+ public RegionsMetaData()
+ {
+ this.regions = new ArrayList<String>();
+ }
+
+ @XmlElement(name = "region")
+ @XmlJavaTypeAdapter(RegionAdapter.class)
+ public List<String> getRegions()
+ {
+ return regions;
+ }
+
+ public void setRegions(List<String> regions)
+ {
+ this.regions = regions;
+ }
+
+}
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/URIMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/URIMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/URIMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,60 @@
+/******************************************************************************
+ * 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.layout;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlValue;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class URIMetaData
+{
+
+ protected String state;
+
+ protected String uri;
+
+ @XmlAttribute(name = "state")
+ public String getState()
+ {
+ return state;
+ }
+
+ public void setState(String state)
+ {
+ this.state = state;
+ }
+
+ @XmlValue
+ public String getUri()
+ {
+ return uri;
+ }
+
+ public void setUri(String uri)
+ {
+ this.uri = uri;
+ }
+}
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/adapter/RegionAdapter.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/adapter/RegionAdapter.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/layout/adapter/RegionAdapter.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,50 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2009, 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.layout.adapter;
+
+import javax.naming.OperationNotSupportedException;
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+import org.jboss.portal.metadata.layout.RegionMetaData;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class RegionAdapter extends XmlAdapter<RegionMetaData, String>
+{
+
+ @Override
+ public RegionMetaData marshal(String v) throws Exception
+ {
+ throw new OperationNotSupportedException();
+ }
+
+ @Override
+ public String unmarshal(RegionMetaData regionMetaData) throws Exception
+ {
+ return regionMetaData.getName();
+ }
+
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/PortalRenderSetsMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/PortalRenderSetsMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/PortalRenderSetsMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -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.renderset;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+ at XmlRootElement(name = "portal-renderSet", namespace = "")
+public class PortalRenderSetsMetaData
+{
+ protected List<RenderSetMetaData> renderSets;
+
+ @XmlElement (name = "renderSet")
+ public List<RenderSetMetaData> getRenderSets()
+ {
+ return renderSets;
+ }
+
+ public void setRenderSets(List<RenderSetMetaData> renderSets)
+ {
+ this.renderSets = renderSets;
+ }
+
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/RenderSetMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/RenderSetMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/RenderSetMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -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.renderset;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class RenderSetMetaData
+{
+
+ protected String name;
+
+ protected List<SetMetaData> set;
+
+ public RenderSetMetaData()
+ {
+ set = new ArrayList<SetMetaData>();
+ }
+
+ @XmlAttribute (name = "name")
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ @XmlElement (name = "set")
+ public List<SetMetaData> getSet()
+ {
+ return set;
+ }
+
+ public void setSet(List<SetMetaData> set)
+ {
+ this.set = set;
+ }
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/SetMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/SetMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/renderset/SetMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,113 @@
+/******************************************************************************
+ * 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.renderset;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class SetMetaData
+{
+
+ protected String contentType;
+
+ protected Boolean ajaxEnabled;
+
+ protected String regionRenderer;
+
+ protected String windowRenderer;
+
+ protected String portletRenderer;
+
+ protected String decorationRenderer;
+
+ @XmlAttribute (name = "content-type")
+ public String getContentType()
+ {
+ return contentType;
+ }
+
+ public void setContentType(String contentType)
+ {
+ this.contentType = contentType;
+ }
+
+ @XmlElement (name = "ajax-enabled")
+ public boolean getAjaxEnabled()
+ {
+ return ajaxEnabled;
+ }
+
+ public void setAjaxEnabled(boolean ajaxEnabled)
+ {
+ this.ajaxEnabled = ajaxEnabled;
+ }
+
+ @XmlElement (name = "region-renderer")
+ public String getRegionRenderer()
+ {
+ return regionRenderer;
+ }
+
+ public void setRegionRenderer(String regionRenderer)
+ {
+ this.regionRenderer = regionRenderer;
+ }
+
+ @XmlElement (name = "window-renderer")
+ public String getWindowRenderer()
+ {
+ return windowRenderer;
+ }
+
+ public void setWindowRenderer(String windowRenderer)
+ {
+ this.windowRenderer = windowRenderer;
+ }
+
+ @XmlElement (name = "portlet-renderer")
+ public String getPortletRenderer()
+ {
+ return portletRenderer;
+ }
+
+ public void setPortletRenderer(String portletRenderer)
+ {
+ this.portletRenderer = portletRenderer;
+ }
+
+ @XmlElement (name = "decoration-renderer")
+ public String getDecorationRenderer()
+ {
+ return decorationRenderer;
+ }
+
+ public void setDecorationRenderer(String decorationRenderer)
+ {
+ this.decorationRenderer = decorationRenderer;
+ }
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemeMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemeMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemeMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,93 @@
+/******************************************************************************
+ * 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.theme;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class PortalThemeMetaData
+{
+ protected String name;
+ protected String classname;
+ protected List<ThemeScriptMetaData> scripts;
+ protected List<ThemeLinkMetaData> links;
+
+ public PortalThemeMetaData()
+ {
+ this.classname = "org.jboss.portal.theme.impl.WARTheme";
+ }
+
+ @XmlElement (name = "name")
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ scripts = new ArrayList<ThemeScriptMetaData>();
+ links = new ArrayList<ThemeLinkMetaData>();
+ }
+
+ @XmlElement (name ="theme-implementation")
+ public String getClassName()
+ {
+ return classname;
+ }
+
+ public void setClassName(String themeImplementation)
+ {
+ this.classname = themeImplementation;
+ }
+
+ @XmlElement (name = "script")
+ public List<ThemeScriptMetaData> getScripts()
+ {
+ return scripts;
+ }
+
+ public void setScripts(List<ThemeScriptMetaData> scripts)
+ {
+ this.scripts = scripts;
+ }
+
+ @XmlElement (name = "link")
+ public List<ThemeLinkMetaData> getLinks()
+ {
+ return links;
+ }
+
+ public void setLinks(List<ThemeLinkMetaData> links)
+ {
+ this.links = links;
+ }
+
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemesMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemesMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/PortalThemesMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -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.theme;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+ at XmlRootElement(name = "themes", namespace = "")
+public class PortalThemesMetaData
+{
+
+ List<PortalThemeMetaData> themes;
+
+ @XmlElement (name = "theme")
+ public void setThemes (List<PortalThemeMetaData> themes)
+ {
+ this.themes = themes;
+ }
+
+ public List<PortalThemeMetaData> getThemes()
+ {
+ return themes;
+ }
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeLinkMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeLinkMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeLinkMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,107 @@
+/******************************************************************************
+ * 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.theme;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class ThemeLinkMetaData
+{
+ protected String id;
+ protected String title;
+ protected String type;
+ protected String href;
+ protected String media;
+ protected String rel;
+
+ @XmlAttribute (name = "id")
+ public String getId()
+ {
+ return id;
+ }
+
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+
+ @XmlAttribute (name = "title")
+ public String getTitle()
+ {
+ return title;
+ }
+
+ public void setTitle(String title)
+ {
+ this.title = title;
+ }
+
+ @XmlAttribute (name = "type")
+ public String getType()
+ {
+ return type;
+ }
+
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ @XmlAttribute (name = "href")
+ public String getHref()
+ {
+ return href;
+ }
+
+ public void setHref(String href)
+ {
+ this.href = href;
+ }
+
+ @XmlAttribute (name = "media")
+ public String getMedia()
+ {
+ return media;
+ }
+
+ public void setMedia(String media)
+ {
+ this.media = media;
+ }
+
+ @XmlAttribute (name = "rel")
+ public String getRel()
+ {
+ return rel;
+ }
+
+ public void setRel(String rel)
+ {
+ this.rel = rel;
+ }
+}
+
Added: modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeScriptMetaData.java
===================================================================
--- modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeScriptMetaData.java (rev 0)
+++ modules/metadata/trunk/theme/src/main/java/org/jboss/portal/metadata/theme/ThemeScriptMetaData.java 2009-03-27 19:51:30 UTC (rev 13093)
@@ -0,0 +1,95 @@
+/******************************************************************************
+ * 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.theme;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlValue;
+
+/**
+ * @author <a href="mailto:mwringe at redhat.com">Matt Wringe</a>
+ * @version $Revision$
+ */
+public class ThemeScriptMetaData
+{
+ protected String id;
+ protected String src;
+ protected String type;
+ protected String charset;
+ protected String bodyContent;
+
+ @XmlAttribute (name = "id")
+ public String getId()
+ {
+ return id;
+ }
+
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+
+ @XmlAttribute (name = "src")
+ public String getSrc()
+ {
+ return src;
+ }
+
+ public void setSrc(String src)
+ {
+ this.src = src;
+ }
+
+ @XmlAttribute (name = "type")
+ public String getType()
+ {
+ return type;
+ }
+
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ @XmlAttribute (name = "charset")
+ public String getCharset()
+ {
+ return charset;
+ }
+
+ public void setCharset(String charset)
+ {
+ this.charset = charset;
+ }
+
+ @XmlValue
+ public String getBodyContent()
+ {
+ return bodyContent;
+ }
+
+ public void setBodyContent(String script)
+ {
+ this.bodyContent = script;
+ }
+}
+
More information about the portal-commits
mailing list