[jboss-svn-commits] JBoss PortletSwap SVN: r209 - in server/trunk/server-service/server-model: src and 17 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jan 21 15:03:25 EST 2008
Author: thomas.heute at jboss.com
Date: 2008-01-21 15:03:25 -0500 (Mon, 21 Jan 2008)
New Revision: 209
Added:
server/trunk/server-service/server-model/.classpath
server/trunk/server-service/server-model/.project
server/trunk/server-service/server-model/pom.xml
server/trunk/server-service/server-model/src/
server/trunk/server-service/server-model/src/main/
server/trunk/server-service/server-model/src/main/java/
server/trunk/server-service/server-model/src/main/java/org/
server/trunk/server-service/server-model/src/main/java/org/jboss/
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Artifact.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ArtifactType.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Author.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Category.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/CompatibilityList.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/FileArtifact.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/License.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Module.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ReferencedArtifact.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Type.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/AbstractArtifactImpl.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/CategoryImpl.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/FileArtifactImpl.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/LicenseImpl.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ModuleImpl.java
server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ReferencedArtifact.java
server/trunk/server-service/server-model/src/main/resources/
server/trunk/server-service/server-model/src/test/
server/trunk/server-service/server-model/src/test/java/
server/trunk/server-service/server-model/src/test/resources/
server/trunk/server-service/server-model/src/test/resources/jboss-unit.xml
server/trunk/server-service/server-model/target/
server/trunk/server-service/server-model/target/classes/
server/trunk/server-service/server-model/target/classes/org/
server/trunk/server-service/server-model/target/classes/org/jboss/
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Artifact.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ArtifactType.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Author.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Category.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/CompatibilityList.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/FileArtifact.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/License.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Module.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ReferencedArtifact.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Type.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/AbstractArtifactImpl.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/CategoryImpl.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/FileArtifactImpl.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/LicenseImpl.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ModuleImpl.class
server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ReferencedArtifact.class
server/trunk/server-service/server-model/target/server-model-1.0-CR1-sources.jar
server/trunk/server-service/server-model/target/server-model-1.0-CR1.jar
server/trunk/server-service/server-model/target/test-classes/
server/trunk/server-service/server-model/target/test-classes/jboss-unit.xml
Log:
Initial import.
Added: server/trunk/server-service/server-model/.classpath
===================================================================
--- server/trunk/server-service/server-model/.classpath (rev 0)
+++ server/trunk/server-service/server-model/.classpath 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/test/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/test-classes"/>
+</classpath>
Added: server/trunk/server-service/server-model/.project
===================================================================
--- server/trunk/server-service/server-model/.project (rev 0)
+++ server/trunk/server-service/server-model/.project 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>server-lib</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: server/trunk/server-service/server-model/pom.xml
===================================================================
--- server/trunk/server-service/server-model/pom.xml (rev 0)
+++ server/trunk/server-service/server-model/pom.xml 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,155 @@
+<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.portletswap</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>1.0-CR1</version>
+ <relativePath>../../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>server-model</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss PortletSwap Server Model Lib</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.portal.common</groupId>
+ <artifactId>jboss-portal-modules-common</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </dependency>
+
+ <!--TEST SCOPE-->
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!--Example of JBoss Unit tests with maven2 plugin-->
+ <plugin>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-maven2</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <testsuites>
+ <testsuite>
+ <config>jboss-unit.xml</config>
+ </testsuite>
+ </testsuites>
+ <reports>
+ <xml>target/tests/reports/xml</xml>
+ <html>target/tests/reports/html</html>
+ </reports>
+ </configuration>
+ </plugin>
+
+ <!--If tests require to start AS with cargo and do more complex stuff you should consider using antrun-->
+ <plugin>
+ <!--<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>-->
+
+ <!--A temporary fork of orginal extended plugin until they update to newer ant version-->
+ <groupId>
+ org.jvnet.maven-antrun-extended-plugin
+ </groupId>
+
+ <artifactId>maven-antrun-extended-plugin</artifactId>
+ <version>1.13</version>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.unit</groupId>
+ <artifactId>jboss-unit-tooling-ant</artifactId>
+ <version>${version.jboss.unit}</version>
+ </dependency>
+
+
+ </dependencies>
+ <executions>
+ <execution>
+ <id>test</id>
+ <!-- Can be used in test phase instead -->
+ <phase>integration-test</phase>
+ <configuration>
+ <tasks>
+
+ <!--Get access to maven classpath-->
+ <property name="compile_classpath"
+ refid="maven.compile.classpath" />
+ <property name="runtime_classpath"
+ refid="maven.runtime.classpath" />
+ <property name="test_classpath"
+ refid="maven.test.classpath" />
+ <property name="plugin_classpath"
+ refid="maven.plugin.classpath" />
+
+ <property name="project.version"
+ value="${project.version}" />
+
+ <!--This way you can get access to direct path of jars in maven classpath-->
+ <property
+ name="dependency.jboss-unit.jar"
+ value="${maven.dependency.org.jboss.unit.jboss-unit.jar.path}" />
+ <echo
+ message="Direct path to JBoss Unit jar: ${dependency.jboss-unit.jar}" />
+
+ <!-- You can redirect ant call to separate build.xml file -->
+ <!--<ant antfile="${basedir}/src/test/build.xml">-->
+ <!--<target name="tests"/>-->
+ <!--</ant>-->
+
+ <taskdef name="jboss-unit"
+ classname="org.jboss.unit.tooling.ant.JBossUnitTask"
+ classpath="${plugin_classpath}" />
+
+ <!--Use of JBoss Unit ant plugin-->
+ <jboss-unit>
+
+ <tests config="jboss-unit.xml">
+
+ </tests>
+
+ <reports>
+ <xml
+ toDir="target/tests/reports/xml/local" />
+ <html
+ toDir="target/tests/reports/html/local" />
+ </reports>
+
+ <classpath>
+ <pathelement
+ location="target/classes" />
+ <pathelement
+ location="target/test-classes" />
+ <pathelement
+ path="${test_classpath}" />
+ </classpath>
+
+ </jboss-unit>
+
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+
+ </build>
+
+
+</project>
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Artifact.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Artifact.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Artifact.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,59 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface Artifact
+{
+
+ public Object getId();
+
+ public String getName();
+
+ public ArtifactType getArtifactType();
+
+ public Type getType();
+
+ public LocalizedString getDescription();
+
+ public void setDescription(LocalizedString description);
+
+ public LocalizedString getDisplayName();
+
+ public void setDisplayName(LocalizedString displayName);
+
+ public CompatibilityList getCompatibilityList();
+
+ public void setCompatibilityList(CompatibilityList compatibilityList);
+
+ public License getLicense();
+
+ public void setLicense(License license);
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ArtifactType.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ArtifactType.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ArtifactType.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,34 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public enum ArtifactType {
+
+ FILE_ARTIFACT_TYPE
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Author.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Author.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Author.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,75 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class Author
+{
+ private String username;
+
+ private String firstname;
+
+ private String lastname;
+
+ public Author(String username, String firstname, String lastname)
+ {
+ this.username = username;
+ this.firstname = firstname;
+ this.lastname = lastname;
+ }
+
+ public String getUsername()
+ {
+ return username;
+ }
+
+ public void setUsername(String username)
+ {
+ this.username = username;
+ }
+
+ public String getFirstname()
+ {
+ return firstname;
+ }
+
+ public void setFirstname(String firstname)
+ {
+ this.firstname = firstname;
+ }
+
+ public String getLastname()
+ {
+ return lastname;
+ }
+
+ public void setLastname(String lastname)
+ {
+ this.lastname = lastname;
+ }
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Category.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Category.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Category.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,54 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+import java.util.List;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface Category
+{
+
+ public static final String ROOT_CATEGORY_NAME = "org.jboss.portletswap.RootCategoryNode";
+
+ public Category getParent();
+
+ public void addChild(Category category);
+
+ public List<Category> getChildren();
+
+ public Object getId();
+
+ public String getName();
+
+ public LocalizedString getDisplayName();
+
+ public void setDisplayName(LocalizedString displayName);
+
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/CompatibilityList.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/CompatibilityList.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/CompatibilityList.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class CompatibilityList
+{
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/FileArtifact.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/FileArtifact.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/FileArtifact.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,40 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+import java.io.File;
+import java.io.InputStream;
+
+import org.jboss.portletswap.model.Artifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface FileArtifact extends Artifact
+{
+ public InputStream getInputStream();
+
+ public File getFile();
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/License.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/License.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/License.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,35 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface License
+{
+ public String getName();
+
+ public String getText();
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Module.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Module.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Module.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,65 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+import java.util.List;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.common.util.Version;
+import org.jboss.portletswap.model.Type;
+import org.jboss.portletswap.model.Author;
+import org.jboss.portletswap.model.Artifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface Module
+{
+
+ public void setId(Object id);
+
+ public Object getId();
+
+ public String getName();
+
+ public Type getType();
+
+ public Version getVersion();
+
+ public LocalizedString getDescription();
+
+ public List<Author> getAuthors();
+
+ public void setDescription(LocalizedString localizedString);
+
+ public List<Artifact> getArtifacts();
+
+ public void addArtifact(Artifact artifact);
+
+ public List<Category> getCategories();
+
+ public void addCategory(Category category);
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ReferencedArtifact.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ReferencedArtifact.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/ReferencedArtifact.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,37 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+import java.net.URL;
+
+import org.jboss.portletswap.model.Artifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface ReferencedArtifact extends Artifact
+{
+ public URL getUrl();
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Type.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Type.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/Type.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,34 @@
+/******************************************************************************
+ * 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.portletswap.model;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public enum Type {
+
+ JSR168PORTLET, JSR286PORTLET, THEME, MIXED, OTHER
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/AbstractArtifactImpl.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/AbstractArtifactImpl.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/AbstractArtifactImpl.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,136 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portletswap.model.ArtifactType;
+import org.jboss.portletswap.model.Type;
+import org.jboss.portletswap.model.CompatibilityList;
+import org.jboss.portletswap.model.License;
+import org.jboss.portletswap.model.Artifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public abstract class AbstractArtifactImpl implements Artifact
+{
+ private Object id;
+
+ private String name;
+
+ private ArtifactType artifactType;
+
+ private Type type;
+
+ private LocalizedString description;
+
+ private LocalizedString displayName;
+
+ private CompatibilityList compatibilityList;
+
+ private License license;
+
+ public ArtifactType getArtifactType()
+ {
+ return artifactType;
+ }
+
+ public void setArtifactType(ArtifactType artifactType)
+ {
+ this.artifactType = artifactType;
+ }
+
+ public Type getType()
+ {
+ return type;
+ }
+
+ public void setType(Type type)
+ {
+ this.type = type;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ public void setDisplayName(LocalizedString displayName)
+ {
+ this.displayName = displayName;
+ }
+
+ public CompatibilityList getCompatibilityList()
+ {
+ return compatibilityList;
+ }
+
+ public void setCompatibilityList(CompatibilityList compatibilityList)
+ {
+ this.compatibilityList = compatibilityList;
+ }
+
+ public License getLicense()
+ {
+ return license;
+ }
+
+ public void setLicense(License license)
+ {
+ this.license = license;
+ }
+
+ public Object getId()
+ {
+ return id;
+ }
+
+ public void setId(Object id)
+ {
+ this.id = id;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/CategoryImpl.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/CategoryImpl.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/CategoryImpl.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,122 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import java.util.List;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portletswap.model.Category;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class CategoryImpl implements Category
+{
+
+ private Object id;
+
+ private LocalizedString displayName;
+
+ private String name;
+
+ private List<Category> children;
+
+ private Category parent;
+
+ protected CategoryImpl(String name)
+ {
+
+ }
+
+ public CategoryImpl(String name, Category parent)
+ {
+ this.name = name;
+ this.parent = parent;
+ }
+
+ public Category getParent()
+ {
+ return parent;
+ }
+
+ protected void getParent(Category parent)
+ {
+ this.parent = parent;
+ }
+
+ public void addChild(Category category)
+ {
+ children.add(category);
+ }
+
+ public List<Category> getChildren()
+ {
+ return children;
+ }
+
+ public Object getId()
+ {
+ return id;
+ }
+
+ public void setId(Object id)
+ {
+ if (this.id == null)
+ {
+ this.id = id;
+ }
+ else
+ {
+ throw new IllegalStateException("Not allowed to change the id");
+ }
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ if (this.name == null)
+ {
+ this.name = name;
+ }
+ else
+ {
+ throw new IllegalStateException("Not allowed to change the name");
+ }
+ }
+
+ public LocalizedString getDisplayName()
+ {
+ return displayName;
+ }
+
+ public void setDisplayName(LocalizedString displayName)
+ {
+ this.displayName = displayName;
+ }
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/FileArtifactImpl.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/FileArtifactImpl.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/FileArtifactImpl.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,71 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import java.io.File;
+import java.io.InputStream;
+
+import org.jboss.portletswap.model.ArtifactType;
+import org.jboss.portletswap.model.Type;
+import org.jboss.portletswap.model.FileArtifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class FileArtifactImpl extends AbstractArtifactImpl implements FileArtifact
+{
+
+ private InputStream inputStream;
+
+ private File file;
+
+ protected FileArtifactImpl()
+ {
+
+ }
+
+ public FileArtifactImpl(Type type, File file, InputStream inputStream)
+ {
+ setType(type);
+ this.inputStream = inputStream;
+ this.file = file;
+ }
+
+ public InputStream getInputStream()
+ {
+ return inputStream;
+ }
+
+ public File getFile()
+ {
+ return file;
+ }
+
+ public ArtifactType getArtifactType()
+ {
+ return ArtifactType.FILE_ARTIFACT_TYPE;
+ }
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/LicenseImpl.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/LicenseImpl.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/LicenseImpl.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,72 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import org.jboss.portletswap.model.License;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class LicenseImpl implements License
+{
+ private String id;
+
+ private String name;
+
+ private String text;
+
+ protected LicenseImpl()
+ {
+
+ }
+
+ public LicenseImpl(String name, String text)
+ {
+ this.name = name;
+ this.text = text;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public String getText()
+ {
+ return text;
+ }
+
+ public String getId()
+ {
+ return id;
+ }
+
+ public void setId(String id)
+ {
+ this.id = id;
+
+ }
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ModuleImpl.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ModuleImpl.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ModuleImpl.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,181 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.portal.common.i18n.LocalizedString;
+import org.jboss.portal.common.util.Version;
+import org.jboss.portletswap.model.Type;
+import org.jboss.portletswap.model.Author;
+import org.jboss.portletswap.model.Artifact;
+import org.jboss.portletswap.model.Category;
+import org.jboss.portletswap.model.Module;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public class ModuleImpl implements Module
+{
+ private List<Artifact> artifacts;
+
+ private Object id;
+
+ private String name;
+
+ private Version version;
+
+ private LocalizedString description;
+
+ private List<Author> authors;
+
+ private List<Category> categories = new ArrayList<Category>();
+
+ public ModuleImpl(String name, Version version)
+ {
+ this.version = version;
+ this.name = name;
+ this.artifacts = new ArrayList<Artifact>();
+ }
+
+ public ModuleImpl(String name)
+ {
+ this.name = name;
+ this.artifacts = new ArrayList<Artifact>();
+ }
+
+ public ModuleImpl()
+ {
+ this.artifacts = new ArrayList<Artifact>();
+ }
+
+ public Object getId()
+ {
+ return id;
+ }
+
+ public Version getVersion()
+ {
+ return version;
+ }
+
+ public Type getType()
+ {
+ Type type = null;
+ for (Artifact artifact: artifacts)
+ {
+ if (type == null)
+ {
+ type = artifact.getType();
+ }
+ else if (type != artifact.getType())
+ {
+ type = Type.MIXED;
+ }
+ }
+ return type;
+ }
+
+ public List<Artifact> getArtifacts()
+ {
+ return artifacts;
+ }
+
+ public void setId(Object id)
+ {
+ if (this.id == null)
+ {
+ this.id = id;
+ }
+ else
+ {
+ throw new IllegalStateException("Not allowed to change the id");
+ }
+ }
+
+ public void setName(String name)
+ {
+ if (this.name == null)
+ {
+ this.name = name;
+ }
+ else
+ {
+ throw new IllegalStateException("Not allowed to change the name");
+ }
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setVersion(Version version)
+ {
+ this.version = version;
+ }
+
+ public LocalizedString getDescription()
+ {
+ return description;
+ }
+
+ public void setDescription(LocalizedString description)
+ {
+ this.description = description;
+ }
+
+ public List<Author> getAuthors()
+ {
+ return authors;
+ }
+
+ public void setAuthors(List<Author> authors)
+ {
+ this.authors = authors;
+ }
+
+ public List<Category> getCategories()
+ {
+ return categories;
+ }
+
+ public void setCategories(List<Category> categories)
+ {
+ this.categories = categories;
+ }
+
+ public void addCategory(Category category)
+ {
+ categories.add(category);
+ }
+
+ public void addArtifact(Artifact artifact)
+ {
+ artifacts.add(artifact);
+ }
+
+}
+
Added: server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ReferencedArtifact.java
===================================================================
--- server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ReferencedArtifact.java (rev 0)
+++ server/trunk/server-service/server-model/src/main/java/org/jboss/portletswap/model/impl/ReferencedArtifact.java 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,37 @@
+/******************************************************************************
+ * 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.portletswap.model.impl;
+
+import java.net.URL;
+
+import org.jboss.portletswap.model.Artifact;
+
+/**
+ * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
+ * @version $Revision$
+ */
+public interface ReferencedArtifact extends Artifact
+{
+ public URL getUrl();
+}
+
Added: server/trunk/server-service/server-model/src/test/resources/jboss-unit.xml
===================================================================
--- server/trunk/server-service/server-model/src/test/resources/jboss-unit.xml (rev 0)
+++ server/trunk/server-service/server-model/src/test/resources/jboss-unit.xml 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-unit
+ xmlns="urn:jboss:jboss-unit:1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:jboss-unit:1.0 jboss-unit_1_0.xsd">
+ <!--
+ <pojo>
+ <test>
+ <class name="org.jboss.portletswap.directory.impl.jcr.DirectoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.directory.impl.memory.DirectoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.jcr.JCRServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.repository.impl.jcr.RepositoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.repository.impl.memory.RepositoryServiceTestCase"/>
+ </test>
+ </pojo>
+ -->
+</jboss-unit>
\ No newline at end of file
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Artifact.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Artifact.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ArtifactType.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ArtifactType.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Author.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Author.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Category.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Category.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/CompatibilityList.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/CompatibilityList.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/FileArtifact.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/FileArtifact.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/License.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/License.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Module.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Module.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ReferencedArtifact.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/ReferencedArtifact.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Type.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/Type.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/AbstractArtifactImpl.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/AbstractArtifactImpl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/CategoryImpl.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/CategoryImpl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/FileArtifactImpl.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/FileArtifactImpl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/LicenseImpl.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/LicenseImpl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ModuleImpl.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ModuleImpl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ReferencedArtifact.class
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/classes/org/jboss/portletswap/model/impl/ReferencedArtifact.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/server-model-1.0-CR1-sources.jar
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/server-model-1.0-CR1-sources.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/server-model-1.0-CR1.jar
===================================================================
(Binary files differ)
Property changes on: server/trunk/server-service/server-model/target/server-model-1.0-CR1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: server/trunk/server-service/server-model/target/test-classes/jboss-unit.xml
===================================================================
--- server/trunk/server-service/server-model/target/test-classes/jboss-unit.xml (rev 0)
+++ server/trunk/server-service/server-model/target/test-classes/jboss-unit.xml 2008-01-21 20:03:25 UTC (rev 209)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-unit
+ xmlns="urn:jboss:jboss-unit:1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:jboss-unit:1.0 jboss-unit_1_0.xsd">
+ <!--
+ <pojo>
+ <test>
+ <class name="org.jboss.portletswap.directory.impl.jcr.DirectoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.directory.impl.memory.DirectoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.jcr.JCRServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.repository.impl.jcr.RepositoryServiceTestCase"/>
+ </test>
+ <test>
+ <class name="org.jboss.portletswap.repository.impl.memory.RepositoryServiceTestCase"/>
+ </test>
+ </pojo>
+ -->
+</jboss-unit>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list