[jboss-svn-commits] JBL Code SVN: r9764 - in labs/jbosslabs/trunk/portal-extensions: forge-common/src/java/org/jboss/forge/common/projects and 5 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Feb 26 10:05:43 EST 2007
Author: wrzep
Date: 2007-02-26 10:05:42 -0500 (Mon, 26 Feb 2007)
New Revision: 9764
Added:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Button.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Counters.java
Removed:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/ObjectFactory.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/package-info.java
Modified:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectPagesService.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectsService.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectsDescriptor.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildResult.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Categories.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Category.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Developers.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Documentation.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/DocumentationType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Downloads.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/File.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Files.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTracker.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTrackerType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/MonitorType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Page.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Pages.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Poll.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Polls.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Portlet.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Preference.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoMonitor.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Sorting.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildResultRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildTypeRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoriesRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoryRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DevelopersRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationTypeRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DownloadsRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FileRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FilesRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerTypeRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/MonitorTypeRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PageRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PagesRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollsRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PortletRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PreferenceRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoMonitorRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoTypeRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/SortingRW.java
labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projectpages/ProjectPagesServiceBean.java
labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projects/ProjectsServiceImpl.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoBean.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoConstants.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoEditBean.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTools.java
labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTypesBean.java
Log:
JBLAB-840
Interfaces for project.xml JAXB classes.
-Pawel
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectPagesService.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectPagesService.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectPagesService.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -18,7 +18,7 @@
* of the given projects, will be removed.
* @param projects Projects, for which to update the pages.
*/
- public void updatePages(Collection<Project> projects);
+ public void updatePages(Collection<? extends Project> projects);
/**
* Creates name of a portal window for the given portlet.
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectsService.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectsService.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/ejb3/ProjectsService.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -72,7 +72,7 @@
public IssueTracker getProjectIssueTracker (String projectId);
- public List<BuildResult> getProjectBuildresults (String projectId);
+ public List<? extends BuildResult> getProjectBuildresults (String projectId);
public String getProjectSupport (String projectId);
@@ -82,7 +82,7 @@
public String getProjectDevForum (String projectId);
- public List<Documentation> getProjectDocumentation (String projectId);
+ public List<? extends Documentation> getProjectDocumentation (String projectId);
public long getOverallDownloadsForProject(String projectId);
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectsDescriptor.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectsDescriptor.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectsDescriptor.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -166,7 +166,7 @@
}
try {
- LabsServices.getProjectPagesService().updatePages(getNewProjects().values());
+ LabsServices.getProjectPagesService().updatePages(getNewProjectsRW().values());
} catch (ServiceRetrievalException e) {
log.error("Error getting labs project pages service.", e);
}
@@ -322,10 +322,10 @@
}
try {
- projectJC = JAXBContext.newInstance("org.jboss.forge.common.projects.project");
+ //projectJC = JAXBContext.newInstance("org.jboss.forge.common.projects.project");
projectRWJC = JAXBContext.newInstance("org.jboss.forge.common.projects.project.rw");
} catch (JAXBException e) {
- log.warn("I could not create JAXBContext."+e.getCause());
+ log.warn("I could not create JAXBContext.", e);
}
for (int i = 0; i < nodes.getLength(); i++) {
@@ -338,7 +338,7 @@
String projectId = XmlTools.unmarshallText(n);
- unmarshallProject(projectId, isf, xht, portalName, adminProperties, projectJC);
+ //unmarshallProject(projectId, isf, xht, portalName, adminProperties, projectJC);
unmarshallProjectRW(projectId, isf, xht, portalName, adminProperties, projectRWJC);
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildResult.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildResult.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildResult.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,105 +1,45 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
+public interface BuildResult {
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getValue();
-/**
- *
- * Class for keeping information about project's build results.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "build-result", propOrder = {
- "value"
-})
-public class BuildResult
- implements Serializable
-{
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setValue(String value);
- private final static long serialVersionUID = 1L;
- @XmlValue
- protected String value;
- @XmlAttribute(required = true)
- protected BuildType type;
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link BuildType }
+ *
+ */
+ public abstract BuildType getType();
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValue() {
- return value;
- }
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BuildType }
+ *
+ */
+ public abstract void setType(BuildType value);
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValue(String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link BuildType }
- *
- */
- public BuildType getType() {
- return type;
- }
-
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link BuildType }
- *
- */
- public void setType(BuildType value) {
- this.type = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildType.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/BuildType.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,76 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface BuildType {
+ public abstract String value();
-/**
- *
- * Enum describing types of possbile builder applications.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for BuildType.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="BuildType">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="CruiseControl"/>
- * <enumeration value="Continuum"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum BuildType {
-
- @XmlEnumValue("CruiseControl")
- CRUISE_CONTROL("CruiseControl"),
- @XmlEnumValue("Continuum")
- CONTINUUM("Continuum");
- private final String value;
-
- BuildType(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static BuildType fromValue(String v) {
- for (BuildType c: BuildType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Button.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Button.java (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Button.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -0,0 +1,65 @@
+package org.jboss.forge.common.projects.project;
+
+public interface Button {
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getId();
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setId(String value);
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
+
+ /**
+ * Gets the value of the freezone property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public abstract Boolean isFreezone();
+
+ /**
+ * Sets the value of the freezone property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public abstract void setFreezone(Boolean value);
+
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Categories.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Categories.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Categories.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,83 +1,31 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
+public interface Categories {
-/**
- *
- * Class for keeping information about download categories.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "categories", propOrder = {
- "category"
-})
-public class Categories
- implements Serializable
-{
+ /**
+ * Gets the value of the category property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the category property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getCategory().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Category }
+ *
+ *
+ */
+ public abstract List<? extends Category> getCategory();
- private final static long serialVersionUID = 1L;
- protected List<Category> category = new Vector<Category>();
-
- /**
- * Gets the value of the category property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the category property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getCategory().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Category }
- *
- *
- */
- public List<Category> getCategory() {
- if (category == null) {
- category = new Vector<Category>();
- }
- return this.category;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Category.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Category.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Category.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,178 +1,105 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Category {
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getId();
-/**
- *
- * Class for keeping information about download category.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "category", propOrder = {
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setId(String value);
-})
-public class Category
- implements Serializable
-{
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- private final static long serialVersionUID = 1L;
- @XmlElement(required = true)
- protected String id;
- protected String name;
- protected String description;
- protected Files files;
- protected Categories categories;
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getDescription();
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setDescription(String value);
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Gets the value of the files property.
+ *
+ * @return
+ * possible object is
+ * {@link Files }
+ *
+ */
+ public abstract Files getFiles();
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
+ /**
+ * Sets the value of the files property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Files }
+ *
+ */
+ public abstract void setFiles(Files value);
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDescription() {
- return description;
- }
+ /**
+ * Gets the value of the categories property.
+ *
+ * @return
+ * possible object is
+ * {@link Categories }
+ *
+ */
+ public abstract Categories getCategories();
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
+ /**
+ * Sets the value of the categories property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Categories }
+ *
+ */
+ public abstract void setCategories(Categories value);
- /**
- * Gets the value of the files property.
- *
- * @return
- * possible object is
- * {@link Files }
- *
- */
- public Files getFiles() {
- return files;
- }
-
- /**
- * Sets the value of the files property.
- *
- * @param value
- * allowed object is
- * {@link Files }
- *
- */
- public void setFiles(Files value) {
- this.files = value;
- }
-
- /**
- * Gets the value of the categories property.
- *
- * @return
- * possible object is
- * {@link Categories }
- *
- */
- public Categories getCategories() {
- return categories;
- }
-
- /**
- * Sets the value of the categories property.
- *
- * @param value
- * allowed object is
- * {@link Categories }
- *
- */
- public void setCategories(Categories value) {
- this.categories = value;
- }
-
-}
+}
\ No newline at end of file
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Counters.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Counters.java (rev 0)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Counters.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -0,0 +1,47 @@
+package org.jboss.forge.common.projects.project;
+
+import org.jboss.forge.common.projects.project.rw.SortingRW;
+
+public interface Counters {
+
+ /**
+ * Gets the value of the sorting property.
+ *
+ * @return
+ * possible object is
+ * {@link SortingRW }
+ *
+ */
+ public abstract SortingRW getSorting();
+
+ /**
+ * Sets the value of the sorting property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SortingRW }
+ *
+ */
+ public abstract void setSorting(Sorting value);
+
+ /**
+ * Gets the value of the visible property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public abstract Boolean isVisible();
+
+ /**
+ * Sets the value of the visible property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public abstract void setVisible(Boolean value);
+
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Developers.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Developers.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Developers.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,112 +1,51 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Developers {
-/**
- *
- * This class will collect project developers.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "developers", propOrder = {
- "leadDeveloper",
- "developers"
-})
-public class Developers
- implements Serializable
-{
+ /**
+ * Gets the value of the leadDeveloper property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getLeadDeveloper();
- private final static long serialVersionUID = 1L;
- @XmlElement(name = "lead-developer")
- protected String leadDeveloper;
- @XmlElement(name = "developer")
- protected List<String> developers = new Vector<String>();
+ /**
+ * Sets the value of the leadDeveloper property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setLeadDeveloper(String value);
- /**
- * Gets the value of the leadDeveloper property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getLeadDeveloper() {
- return leadDeveloper;
- }
+ /**
+ * Gets the value of the developers property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the developers property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDevelopers().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public abstract List<String> getDevelopers();
- /**
- * Sets the value of the leadDeveloper property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setLeadDeveloper(String value) {
- this.leadDeveloper = value;
- }
-
- /**
- * Gets the value of the developers property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the developers property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getDevelopers().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getDevelopers() {
- if (developers == null) {
- developers = new Vector<String>();
- }
- return this.developers;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Documentation.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Documentation.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Documentation.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,105 +1,45 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
+public interface Documentation {
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getValue();
-/**
- *
- * Class for keeping links to project's documentation.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "documentation", propOrder = {
- "value"
-})
-public class Documentation
- implements Serializable
-{
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setValue(String value);
- private final static long serialVersionUID = 1L;
- @XmlValue
- protected String value;
- @XmlAttribute(required = true)
- protected DocumentationType type;
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link DocumentationType }
+ *
+ */
+ public abstract DocumentationType getType();
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValue() {
- return value;
- }
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DocumentationType }
+ *
+ */
+ public abstract void setType(DocumentationType value);
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValue(String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link DocumentationType }
- *
- */
- public DocumentationType getType() {
- return type;
- }
-
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link DocumentationType }
- *
- */
- public void setType(DocumentationType value) {
- this.type = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/DocumentationType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/DocumentationType.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/DocumentationType.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,87 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface DocumentationType {
+ public abstract String value();
-/**
- *
- * Enum describing types of documentation.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for DocumentationType.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="DocumentationType">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="manual"/>
- * <enumeration value="FAQ"/>
- * <enumeration value="quickStart"/>
- * <enumeration value="wiki"/>
- * <enumeration value="installation"/>
- * <enumeration value="javadoc"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum DocumentationType {
-
- @XmlEnumValue("manual")
- MANUAL("manual"),
- FAQ("FAQ"),
- @XmlEnumValue("quickStart")
- QUICK_START("quickStart"),
- @XmlEnumValue("wiki")
- WIKI("wiki"),
- @XmlEnumValue("installation")
- INSTALLATION("installation"),
- @XmlEnumValue("javadoc")
- JAVADOC("javadoc");
- private final String value;
-
- DocumentationType(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static DocumentationType fromValue(String v) {
- for (DocumentationType c: DocumentationType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Downloads.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Downloads.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Downloads.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,264 +1,107 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
+public interface Downloads {
+ /**
+ * Gets the value of the categories property.
+ *
+ * @return
+ * possible object is
+ * {@link Categories }
+ *
+ */
+ public abstract Categories getCategories();
-/**
- *
- * Class for keeping information about project's downloads.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "downloads", propOrder = {
- "categories",
- "name",
- "description",
- "counters",
- "files"
-})
-public class Downloads
- implements Serializable
-{
+ /**
+ * Sets the value of the categories property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Categories }
+ *
+ */
+ public abstract void setCategories(Categories value);
- private final static long serialVersionUID = 1L;
- protected Categories categories;
- protected String name;
- protected String description;
- protected Downloads.Counters counters;
- protected Files files;
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- /**
- * Gets the value of the categories property.
- *
- * @return
- * possible object is
- * {@link Categories }
- *
- */
- public Categories getCategories() {
- return categories;
- }
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Sets the value of the categories property.
- *
- * @param value
- * allowed object is
- * {@link Categories }
- *
- */
- public void setCategories(Categories value) {
- this.categories = value;
- }
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getDescription();
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setDescription(String value);
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
+ /**
+ * Gets the value of the counters property.
+ *
+ * @return
+ * possible object is
+ * {@link Downloads.Counters }
+ *
+ */
+ public abstract Counters getCounters();
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDescription() {
- return description;
- }
+ /**
+ * Sets the value of the counters property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Downloads.Counters }
+ *
+ */
+ public abstract void setCounters(Counters value);
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
+ /**
+ * Gets the value of the files property.
+ *
+ * @return
+ * possible object is
+ * {@link Files }
+ *
+ */
+ public abstract Files getFiles();
- /**
- * Gets the value of the counters property.
- *
- * @return
- * possible object is
- * {@link Downloads.Counters }
- *
- */
- public Downloads.Counters getCounters() {
- return counters;
- }
+ /**
+ * Sets the value of the files property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Files }
+ *
+ */
+ public abstract void setFiles(Files value);
+
+
- /**
- * Sets the value of the counters property.
- *
- * @param value
- * allowed object is
- * {@link Downloads.Counters }
- *
- */
- public void setCounters(Downloads.Counters value) {
- this.counters = value;
- }
-
- /**
- * Gets the value of the files property.
- *
- * @return
- * possible object is
- * {@link Files }
- *
- */
- public Files getFiles() {
- return files;
- }
-
- /**
- * Sets the value of the files property.
- *
- * @param value
- * allowed object is
- * {@link Files }
- *
- */
- public void setFiles(Files value) {
- this.files = value;
- }
-
-
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="sorting" type="{http://jboss.org}sorting" minOccurs="0"/>
- * <element name="visible" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "sorting",
- "visible"
- })
- public static class Counters
- implements Serializable
- {
-
- private final static long serialVersionUID = 1L;
- protected Sorting sorting;
- protected Boolean visible;
-
- /**
- * Gets the value of the sorting property.
- *
- * @return
- * possible object is
- * {@link Sorting }
- *
- */
- public Sorting getSorting() {
- return sorting;
- }
-
- /**
- * Sets the value of the sorting property.
- *
- * @param value
- * allowed object is
- * {@link Sorting }
- *
- */
- public void setSorting(Sorting value) {
- this.sorting = value;
- }
-
- /**
- * Gets the value of the visible property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public Boolean isVisible() {
- return visible;
- }
-
- /**
- * Sets the value of the visible property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setVisible(Boolean value) {
- this.visible = value;
- }
-
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/File.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/File.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/File.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,410 +1,191 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface File {
-/**
- *
- * Class for keeping information about one file available for download.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "file", propOrder = {
- "id",
- "name",
- "description",
- "size",
- "license",
- "release",
- "type",
- "button"
-})
-public class File
- implements Serializable
-{
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getId();
- private final static long serialVersionUID = 1L;
- @XmlElement(required = true)
- protected String id;
- protected String name;
- protected String description;
- protected String size;
- protected String license;
- protected String release;
- protected String type;
- protected List<File.Button> button = new Vector<File.Button>();
- @XmlAttribute
- protected Boolean visible;
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setId(String value);
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getDescription();
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setDescription(String value);
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDescription() {
- return description;
- }
+ /**
+ * Gets the value of the size property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getSize();
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
+ /**
+ * Sets the value of the size property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setSize(String value);
- /**
- * Gets the value of the size property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getSize() {
- return size;
- }
+ /**
+ * Gets the value of the license property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getLicense();
- /**
- * Sets the value of the size property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSize(String value) {
- this.size = value;
- }
+ /**
+ * Sets the value of the license property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setLicense(String value);
- /**
- * Gets the value of the license property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getLicense() {
- return license;
- }
+ /**
+ * Gets the value of the release property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getRelease();
- /**
- * Sets the value of the license property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setLicense(String value) {
- this.license = value;
- }
+ /**
+ * Sets the value of the release property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setRelease(String value);
- /**
- * Gets the value of the release property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRelease() {
- return release;
- }
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getType();
- /**
- * Sets the value of the release property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRelease(String value) {
- this.release = value;
- }
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setType(String value);
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getType() {
- return type;
- }
+ /**
+ * Gets the value of the button property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the button property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getButton().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link File.Button }
+ *
+ *
+ */
+ public abstract List<? extends Button> getButton();
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setType(String value) {
- this.type = value;
- }
+ /**
+ * Gets the value of the visible property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public abstract boolean isVisible();
- /**
- * Gets the value of the button property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the button property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getButton().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link File.Button }
- *
- *
- */
- public List<File.Button> getButton() {
- if (button == null) {
- button = new Vector<File.Button>();
- }
- return this.button;
- }
+ /**
+ * Sets the value of the visible property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public abstract void setVisible(Boolean value);
- /**
- * Gets the value of the visible property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isVisible() {
- if (visible == null) {
- return true;
- } else {
- return visible;
- }
- }
-
- /**
- * Sets the value of the visible property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setVisible(Boolean value) {
- this.visible = value;
- }
-
-
- /**
- * <p>Java class for anonymous complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="freezone" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "", propOrder = {
- "id",
- "name",
- "freezone"
- })
- public static class Button
- implements Serializable
- {
-
- private final static long serialVersionUID = 1L;
- @XmlElement(required = true)
- protected String id;
- protected String name;
- protected Boolean freezone;
-
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
-
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the freezone property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public Boolean isFreezone() {
- return freezone;
- }
-
- /**
- * Sets the value of the freezone property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setFreezone(Boolean value) {
- this.freezone = value;
- }
-
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Files.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Files.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Files.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,144 +1,71 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
+public interface Files {
-/**
- *
- * Class for keeping information about files available to download.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "files", propOrder = {
- "file"
-})
-public class Files
- implements Serializable
-{
+ /**
+ * Gets the value of the file property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the file property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getFile().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link File }
+ *
+ *
+ */
+ public abstract List<? extends File> getFile();
- private final static long serialVersionUID = 1L;
- protected List<File> file = new Vector<File>();
- @XmlAttribute
- protected Boolean visible;
- @XmlAttribute
- protected Sorting sorting;
+ /**
+ * Gets the value of the visible property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public abstract boolean isVisible();
- /**
- * Gets the value of the file property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the file property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getFile().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link File }
- *
- *
- */
- public List<File> getFile() {
- if (file == null) {
- file = new Vector<File>();
- }
- return this.file;
- }
+ /**
+ * Sets the value of the visible property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public abstract void setVisible(Boolean value);
- /**
- * Gets the value of the visible property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isVisible() {
- if (visible == null) {
- return true;
- } else {
- return visible;
- }
- }
+ /**
+ * Gets the value of the sorting property.
+ *
+ * @return
+ * possible object is
+ * {@link Sorting }
+ *
+ */
+ public abstract Sorting getSorting();
- /**
- * Sets the value of the visible property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setVisible(Boolean value) {
- this.visible = value;
- }
+ /**
+ * Sets the value of the sorting property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Sorting }
+ *
+ */
+ public abstract void setSorting(Sorting value);
- /**
- * Gets the value of the sorting property.
- *
- * @return
- * possible object is
- * {@link Sorting }
- *
- */
- public Sorting getSorting() {
- if (sorting == null) {
- return Sorting.RANDOM;
- } else {
- return sorting;
- }
- }
-
- /**
- * Sets the value of the sorting property.
- *
- * @param value
- * allowed object is
- * {@link Sorting }
- *
- */
- public void setSorting(Sorting value) {
- this.sorting = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTracker.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTracker.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTracker.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,109 +1,45 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
+public interface IssueTracker {
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getValue();
-/**
- *
- * Class for keeping information about project's issue tracker.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "issue-tracker", propOrder = {
- "value"
-})
-public class IssueTracker
- implements Serializable
-{
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setValue(String value);
- private final static long serialVersionUID = 1L;
- @XmlValue
- protected String value;
- @XmlAttribute
- protected IssueTrackerType type;
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link IssueTrackerType }
+ *
+ */
+ public abstract IssueTrackerType getType();
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValue() {
- return value;
- }
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link IssueTrackerType }
+ *
+ */
+ public abstract void setType(IssueTrackerType value);
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValue(String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link IssueTrackerType }
- *
- */
- public IssueTrackerType getType() {
- if (type == null) {
- return IssueTrackerType.JIRA;
- } else {
- return type;
- }
- }
-
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link IssueTrackerType }
- *
- */
- public void setType(IssueTrackerType value) {
- this.type = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTrackerType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTrackerType.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/IssueTrackerType.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,76 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface IssueTrackerType {
+ public abstract String value();
-/**
- *
- * Enum describing types of possbile issue trackers.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for IssueTrackerType.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="IssueTrackerType">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="jira"/>
- * <enumeration value="bugzilla"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum IssueTrackerType {
-
- @XmlEnumValue("jira")
- JIRA("jira"),
- @XmlEnumValue("bugzilla")
- BUGZILLA("bugzilla");
- private final String value;
-
- IssueTrackerType(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static IssueTrackerType fromValue(String v) {
- for (IssueTrackerType c: IssueTrackerType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/MonitorType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/MonitorType.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/MonitorType.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,76 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface MonitorType {
+ public abstract String value();
-/**
- *
- * Enum describing types of possbile repository-monitors.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for MonitorType.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="MonitorType">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="fisheye"/>
- * <enumeration value="viewvc"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum MonitorType {
-
- @XmlEnumValue("fisheye")
- FISHEYE("fisheye"),
- @XmlEnumValue("viewvc")
- VIEWVC("viewvc");
- private final String value;
-
- MonitorType(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static MonitorType fromValue(String v) {
- for (MonitorType c: MonitorType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Deleted: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/ObjectFactory.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/ObjectFactory.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/ObjectFactory.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,205 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-
-import javax.xml.bind.annotation.XmlRegistry;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.jboss.forge.common.projects.project package.
- * <p>An ObjectFactory allows you to programatically
- * construct new instances of the Java representation
- * for XML content. The Java representation of XML
- * content can consist of schema derived interfaces
- * and classes representing the binding of schema
- * type definitions, element declarations and model
- * groups. Factory methods for each of these are
- * provided in this class.
- *
- */
- at XmlRegistry
-public class ObjectFactory {
-
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.forge.common.projects.project
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link RepoMonitor }
- *
- */
- public RepoMonitor createRepoMonitor() {
- return new RepoMonitor();
- }
-
- /**
- * Create an instance of {@link Pages }
- *
- */
- public Pages createPages() {
- return new Pages();
- }
-
- /**
- * Create an instance of {@link Category }
- *
- */
- public Category createCategory() {
- return new Category();
- }
-
- /**
- * Create an instance of {@link Page }
- *
- */
- public Page createPage() {
- return new Page();
- }
-
- /**
- * Create an instance of {@link Portlet }
- *
- */
- public Portlet createPortlet() {
- return new Portlet();
- }
-
- /**
- * Create an instance of {@link Documentation }
- *
- */
- public Documentation createDocumentation() {
- return new Documentation();
- }
-
- /**
- * Create an instance of {@link Poll }
- *
- */
- public Poll createPoll() {
- return new Poll();
- }
-
- /**
- * Create an instance of {@link Downloads }
- *
- */
- public Downloads createDownloads() {
- return new Downloads();
- }
-
- /**
- * Create an instance of {@link Project }
- *
- */
- public Project createProject() {
- return new Project();
- }
-
- /**
- * Create an instance of {@link Polls }
- *
- */
- public Polls createPolls() {
- return new Polls();
- }
-
- /**
- * Create an instance of {@link Categories }
- *
- */
- public Categories createCategories() {
- return new Categories();
- }
-
- /**
- * Create an instance of {@link File.Button }
- *
- */
- public File.Button createFileButton() {
- return new File.Button();
- }
-
- /**
- * Create an instance of {@link IssueTracker }
- *
- */
- public IssueTracker createIssueTracker() {
- return new IssueTracker();
- }
-
- /**
- * Create an instance of {@link Downloads.Counters }
- *
- */
- public Downloads.Counters createDownloadsCounters() {
- return new Downloads.Counters();
- }
-
- /**
- * Create an instance of {@link Developers }
- *
- */
- public Developers createDevelopers() {
- return new Developers();
- }
-
- /**
- * Create an instance of {@link Files }
- *
- */
- public Files createFiles() {
- return new Files();
- }
-
- /**
- * Create an instance of {@link File }
- *
- */
- public File createFile() {
- return new File();
- }
-
- /**
- * Create an instance of {@link BuildResult }
- *
- */
- public BuildResult createBuildResult() {
- return new BuildResult();
- }
-
- /**
- * Create an instance of {@link Preference }
- *
- */
- public Preference createPreference() {
- return new Preference();
- }
-
-}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Page.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Page.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Page.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,112 +1,51 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Page {
-/**
- *
- * Class for keeping information about one of pages for project's navigation menu.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "page", propOrder = {
- "portlets"
-})
-public class Page
- implements Serializable
-{
+ /**
+ * Gets the value of the portlets property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the portlets property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPortlets().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Portlet }
+ *
+ *
+ */
+ public abstract List<? extends Portlet> getPortlets();
- private final static long serialVersionUID = 1L;
- @XmlElement(name = "portlet")
- protected List<Portlet> portlets = new Vector<Portlet>();
- @XmlAttribute(required = true)
- protected String name;
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- /**
- * Gets the value of the portlets property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the portlets property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getPortlets().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Portlet }
- *
- *
- */
- public List<Portlet> getPortlets() {
- if (portlets == null) {
- portlets = new Vector<Portlet>();
- }
- return this.portlets;
- }
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Pages.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Pages.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Pages.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,85 +1,31 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Pages {
-/**
- *
- * Class for keeping information about project's menu pages.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "pages", propOrder = {
- "pages"
-})
-public class Pages
- implements Serializable
-{
+ /**
+ * Gets the value of the pages property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the pages property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPages().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Page }
+ *
+ *
+ */
+ public abstract List<? extends Page> getPages();
- private final static long serialVersionUID = 1L;
- @XmlElement(name = "page")
- protected List<Page> pages = new Vector<Page>();
-
- /**
- * Gets the value of the pages property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the pages property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getPages().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Page }
- *
- *
- */
- public List<Page> getPages() {
- if (pages == null) {
- pages = new Vector<Page>();
- }
- return this.pages;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Poll.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Poll.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Poll.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,112 +1,51 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Poll {
-/**
- *
- * Class for keeping information about one poll.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "poll", propOrder = {
- "question",
- "answer"
-})
-public class Poll
- implements Serializable
-{
+ /**
+ * Gets the value of the question property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getQuestion();
- private final static long serialVersionUID = 1L;
- @XmlElement(required = true)
- protected String question;
- @XmlElement(required = true)
- protected List<String> answer = new Vector<String>();
+ /**
+ * Sets the value of the question property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setQuestion(String value);
- /**
- * Gets the value of the question property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getQuestion() {
- return question;
- }
+ /**
+ * Gets the value of the answer property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the answer property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAnswer().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public abstract List<String> getAnswer();
- /**
- * Sets the value of the question property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setQuestion(String value) {
- this.question = value;
- }
-
- /**
- * Gets the value of the answer property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the answer property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAnswer().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getAnswer() {
- if (answer == null) {
- answer = new Vector<String>();
- }
- return this.answer;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Polls.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Polls.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Polls.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,85 +1,31 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Polls {
-/**
- *
- * Class for keeping information about polls.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "polls", propOrder = {
- "polls"
-})
-public class Polls
- implements Serializable
-{
+ /**
+ * Gets the value of the polls property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the polls property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPolls().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Poll }
+ *
+ *
+ */
+ public abstract List<? extends Poll> getPolls();
- private final static long serialVersionUID = 1L;
- @XmlElement(name = "poll")
- protected List<Poll> polls = new Vector<Poll>();
-
- /**
- * Gets the value of the polls property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the polls property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getPolls().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Poll }
- *
- *
- */
- public List<Poll> getPolls() {
- if (polls == null) {
- polls = new Vector<Poll>();
- }
- return this.polls;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Portlet.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Portlet.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Portlet.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,164 +1,91 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
import java.util.List;
-import java.util.Vector;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Portlet {
-/**
- *
- * Class for keeping information about one of projects' portlets.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "portlet", propOrder = {
- "preferences"
-})
-public class Portlet
- implements Serializable
-{
+ /**
+ * Gets the value of the preferences property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the preferences property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPreferences().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Preference }
+ *
+ *
+ */
+ public abstract List<? extends Preference> getPreferences();
- private final static long serialVersionUID = 1L;
- @XmlElement(name = "preference")
- protected List<Preference> preferences = new Vector<Preference>();
- @XmlAttribute(required = true)
- protected String name;
- @XmlAttribute(required = true)
- protected String region;
- @XmlAttribute(required = true)
- protected String height;
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- /**
- * Gets the value of the preferences property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the preferences property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getPreferences().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Preference }
- *
- *
- */
- public List<Preference> getPreferences() {
- if (preferences == null) {
- preferences = new Vector<Preference>();
- }
- return this.preferences;
- }
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Gets the value of the region property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getRegion();
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
+ /**
+ * Sets the value of the region property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setRegion(String value);
- /**
- * Gets the value of the region property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRegion() {
- return region;
- }
+ /**
+ * Gets the value of the height property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getHeight();
- /**
- * Sets the value of the region property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRegion(String value) {
- this.region = value;
- }
+ /**
+ * Sets the value of the height property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setHeight(String value);
- /**
- * Gets the value of the height property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getHeight() {
- return height;
- }
-
- /**
- * Sets the value of the height property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setHeight(String value) {
- this.height = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Preference.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Preference.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Preference.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,105 +1,45 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Preference {
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
-/**
- *
- * Class for keeping information about one of portlets' preferences.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "preference", propOrder = {
- "name",
- "value"
-})
-public class Preference
- implements Serializable
-{
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- private final static long serialVersionUID = 1L;
- @XmlElement(required = true)
- protected String name;
- @XmlElement(required = true)
- protected String value;
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getValue();
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setValue(String value);
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValue(String value) {
- this.value = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,669 +1,471 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.util.ArrayList;
import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+public interface Project {
-/**
- *
- * Root class describing whole project.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "", propOrder = {
- "id",
- "name",
- "companyName",
- "logo",
- "description",
- "info",
- "developers",
- "jems",
- "repoType",
- "anonRepo",
- "commiterRepo",
- "repoMonitor",
- "issueTracker",
- "buildResults",
- "support",
- "training",
- "packagedForDownload",
- "userForum",
- "devForum",
- "documentation",
- "pages",
- "downloads",
- "polls"
-})
- at XmlRootElement(name = "project")
-public class Project {
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getId();
- @XmlElement(required = true)
- protected String id;
- @XmlElement(required = true)
- protected String name;
- @XmlElement(name = "company-name")
- protected String companyName;
- protected String logo;
- protected String description;
- protected String info;
- protected Developers developers;
- protected List<String> jems;
- @XmlElement(name = "repo-type")
- protected RepoType repoType;
- @XmlElement(name = "anon-repo")
- protected String anonRepo;
- @XmlElement(name = "commiter-repo")
- protected String commiterRepo;
- @XmlElement(name = "repo-monitor")
- protected RepoMonitor repoMonitor;
- @XmlElement(name = "issue-tracker")
- protected IssueTracker issueTracker;
- @XmlElement(name = "build-results")
- protected List<BuildResult> buildResults;
- protected String support;
- protected String training;
- @XmlElement(name = "packaged-for-download", defaultValue = "false")
- protected boolean packagedForDownload;
- @XmlElement(name = "user-forum")
- protected String userForum;
- @XmlElement(name = "dev-forum")
- protected String devForum;
- protected List<Documentation> documentation;
- @XmlElement(required = true)
- protected Pages pages;
- protected Downloads downloads;
- protected Polls polls;
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setId(String value);
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getName();
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setName(String value);
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
+ /**
+ * Gets the value of the companyName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getCompanyName();
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
+ /**
+ * Sets the value of the companyName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setCompanyName(String value);
- /**
- * Gets the value of the companyName property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCompanyName() {
- return companyName;
- }
+ /**
+ * Gets the value of the logo property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getLogo();
- /**
- * Sets the value of the companyName property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCompanyName(String value) {
- this.companyName = value;
- }
+ /**
+ * Sets the value of the logo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setLogo(String value);
- /**
- * Gets the value of the logo property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getLogo() {
- return logo;
- }
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getDescription();
- /**
- * Sets the value of the logo property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setLogo(String value) {
- this.logo = value;
- }
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setDescription(String value);
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDescription() {
- return description;
- }
+ /**
+ * Gets the value of the info property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getInfo();
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDescription(String value) {
- this.description = value;
- }
+ /**
+ * Sets the value of the info property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setInfo(String value);
- /**
- * Gets the value of the info property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getInfo() {
- return info;
- }
+ /**
+ * Gets the value of the developers property.
+ *
+ * @return
+ * possible object is
+ * {@link Developers }
+ *
+ */
+ public abstract Developers getDevelopers();
- /**
- * Sets the value of the info property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setInfo(String value) {
- this.info = value;
- }
+ /**
+ * Sets the value of the developers property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Developers }
+ *
+ */
+ public abstract void setDevelopers(Developers value);
- /**
- * Gets the value of the developers property.
- *
- * @return
- * possible object is
- * {@link Developers }
- *
- */
- public Developers getDevelopers() {
- return developers;
- }
+ /**
+ * Gets the value of the jems property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the jems property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getJems().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public abstract List<String> getJems();
- /**
- * Sets the value of the developers property.
- *
- * @param value
- * allowed object is
- * {@link Developers }
- *
- */
- public void setDevelopers(Developers value) {
- this.developers = value;
- }
+ /**
+ * Gets the value of the repoType property.
+ *
+ * @return
+ * possible object is
+ * {@link RepoType }
+ *
+ */
+ public abstract RepoType getRepoType();
- /**
- * Gets the value of the jems property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the jems property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getJems().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getJems() {
- if (jems == null) {
- jems = new ArrayList<String>();
- }
- return this.jems;
- }
+ /**
+ * Sets the value of the repoType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link RepoType }
+ *
+ */
+ public abstract void setRepoType(RepoType value);
- /**
- * Gets the value of the repoType property.
- *
- * @return
- * possible object is
- * {@link RepoType }
- *
- */
- public RepoType getRepoType() {
- return repoType;
- }
+ /**
+ * Gets the value of the anonRepo property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getAnonRepo();
- /**
- * Sets the value of the repoType property.
- *
- * @param value
- * allowed object is
- * {@link RepoType }
- *
- */
- public void setRepoType(RepoType value) {
- this.repoType = value;
- }
+ /**
+ * Sets the value of the anonRepo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setAnonRepo(String value);
- /**
- * Gets the value of the anonRepo property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getAnonRepo() {
- return anonRepo;
- }
+ /**
+ * Gets the value of the commiterRepo property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getCommiterRepo();
- /**
- * Sets the value of the anonRepo property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setAnonRepo(String value) {
- this.anonRepo = value;
- }
+ /**
+ * Sets the value of the commiterRepo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setCommiterRepo(String value);
- /**
- * Gets the value of the commiterRepo property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCommiterRepo() {
- return commiterRepo;
- }
+ /**
+ * Gets the value of the repoMonitor property.
+ *
+ * @return
+ * possible object is
+ * {@link RepoMonitor }
+ *
+ */
+ public abstract RepoMonitor getRepoMonitor();
- /**
- * Sets the value of the commiterRepo property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCommiterRepo(String value) {
- this.commiterRepo = value;
- }
+ /**
+ * Sets the value of the repoMonitor property.
+ *
+ * @param value
+ * allowed object is
+ * {@link RepoMonitor }
+ *
+ */
+ public abstract void setRepoMonitor(RepoMonitor value);
- /**
- * Gets the value of the repoMonitor property.
- *
- * @return
- * possible object is
- * {@link RepoMonitor }
- *
- */
- public RepoMonitor getRepoMonitor() {
- return repoMonitor;
- }
+ /**
+ * Gets the value of the issueTracker property.
+ *
+ * @return
+ * possible object is
+ * {@link IssueTracker }
+ *
+ */
+ public abstract IssueTracker getIssueTracker();
- /**
- * Sets the value of the repoMonitor property.
- *
- * @param value
- * allowed object is
- * {@link RepoMonitor }
- *
- */
- public void setRepoMonitor(RepoMonitor value) {
- this.repoMonitor = value;
- }
+ /**
+ * Sets the value of the issueTracker property.
+ *
+ * @param value
+ * allowed object is
+ * {@link IssueTracker }
+ *
+ */
+ public abstract void setIssueTracker(IssueTracker value);
- /**
- * Gets the value of the issueTracker property.
- *
- * @return
- * possible object is
- * {@link IssueTracker }
- *
- */
- public IssueTracker getIssueTracker() {
- return issueTracker;
- }
+ /**
+ * Gets the value of the buildResults property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the buildResults property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBuildResults().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link BuildResult }
+ *
+ *
+ */
+ public abstract List<? extends BuildResult> getBuildResults();
- /**
- * Sets the value of the issueTracker property.
- *
- * @param value
- * allowed object is
- * {@link IssueTracker }
- *
- */
- public void setIssueTracker(IssueTracker value) {
- this.issueTracker = value;
- }
+ /**
+ * Gets the value of the support property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getSupport();
- /**
- * Gets the value of the buildResults property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the buildResults property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getBuildResults().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link BuildResult }
- *
- *
- */
- public List<BuildResult> getBuildResults() {
- if (buildResults == null) {
- buildResults = new ArrayList<BuildResult>();
- }
- return this.buildResults;
- }
+ /**
+ * Sets the value of the support property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setSupport(String value);
- /**
- * Gets the value of the support property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getSupport() {
- return support;
- }
+ /**
+ * Gets the value of the training property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getTraining();
- /**
- * Sets the value of the support property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSupport(String value) {
- this.support = value;
- }
+ /**
+ * Sets the value of the training property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setTraining(String value);
- /**
- * Gets the value of the training property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getTraining() {
- return training;
- }
+ /**
+ * Gets the value of the packagedForDownload property.
+ *
+ */
+ public abstract boolean isPackagedForDownload();
- /**
- * Sets the value of the training property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTraining(String value) {
- this.training = value;
- }
+ /**
+ * Sets the value of the packagedForDownload property.
+ *
+ */
+ public abstract void setPackagedForDownload(boolean value);
- /**
- * Gets the value of the packagedForDownload property.
- *
- */
- public boolean isPackagedForDownload() {
- return packagedForDownload;
- }
+ /**
+ * Gets the value of the userForum property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getUserForum();
- /**
- * Sets the value of the packagedForDownload property.
- *
- */
- public void setPackagedForDownload(boolean value) {
- this.packagedForDownload = value;
- }
+ /**
+ * Sets the value of the userForum property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setUserForum(String value);
- /**
- * Gets the value of the userForum property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getUserForum() {
- return userForum;
- }
+ /**
+ * Gets the value of the devForum property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getDevForum();
- /**
- * Sets the value of the userForum property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setUserForum(String value) {
- this.userForum = value;
- }
+ /**
+ * Sets the value of the devForum property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setDevForum(String value);
- /**
- * Gets the value of the devForum property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDevForum() {
- return devForum;
- }
+ /**
+ * Gets the value of the documentation property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the documentation property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDocumentation().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Documentation }
+ *
+ *
+ */
+ public abstract List<? extends Documentation> getDocumentation();
- /**
- * Sets the value of the devForum property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDevForum(String value) {
- this.devForum = value;
- }
+ /**
+ * Gets the value of the pages property.
+ *
+ * @return
+ * possible object is
+ * {@link Pages }
+ *
+ */
+ public abstract Pages getPages();
- /**
- * Gets the value of the documentation property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the documentation property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getDocumentation().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Documentation }
- *
- *
- */
- public List<Documentation> getDocumentation() {
- if (documentation == null) {
- documentation = new ArrayList<Documentation>();
- }
- return this.documentation;
- }
+ /**
+ * Sets the value of the pages property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Pages }
+ *
+ */
+ public abstract void setPages(Pages value);
- /**
- * Gets the value of the pages property.
- *
- * @return
- * possible object is
- * {@link Pages }
- *
- */
- public Pages getPages() {
- return pages;
- }
+ /**
+ * Gets the value of the downloads property.
+ *
+ * @return
+ * possible object is
+ * {@link Downloads }
+ *
+ */
+ public abstract Downloads getDownloads();
- /**
- * Sets the value of the pages property.
- *
- * @param value
- * allowed object is
- * {@link Pages }
- *
- */
- public void setPages(Pages value) {
- this.pages = value;
- }
+ /**
+ * Sets the value of the downloads property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Downloads }
+ *
+ */
+ public abstract void setDownloads(Downloads value);
- /**
- * Gets the value of the downloads property.
- *
- * @return
- * possible object is
- * {@link Downloads }
- *
- */
- public Downloads getDownloads() {
- return downloads;
- }
+ /**
+ * Gets the value of the polls property.
+ *
+ * @return
+ * possible object is
+ * {@link Polls }
+ *
+ */
+ public abstract Polls getPolls();
- /**
- * Sets the value of the downloads property.
- *
- * @param value
- * allowed object is
- * {@link Downloads }
- *
- */
- public void setDownloads(Downloads value) {
- this.downloads = value;
- }
+ /**
+ * Sets the value of the polls property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Polls }
+ *
+ */
+ public abstract void setPolls(Polls value);
- /**
- * Gets the value of the polls property.
- *
- * @return
- * possible object is
- * {@link Polls }
- *
- */
- public Polls getPolls() {
- return polls;
- }
-
- /**
- * Sets the value of the polls property.
- *
- * @param value
- * allowed object is
- * {@link Polls }
- *
- */
- public void setPolls(Polls value) {
- this.polls = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoMonitor.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoMonitor.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoMonitor.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,105 +1,45 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
+public interface RepoMonitor {
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public abstract String getValue();
-/**
- *
- * Class for keeping information about project's repository monitor.
- * PLEASE, DO NOT MODIFY THIS CLASS UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- *
- *
- */
- at XmlAccessorType(XmlAccessType.FIELD)
- at XmlType(name = "repo-monitor", propOrder = {
- "value"
-})
-public class RepoMonitor
- implements Serializable
-{
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public abstract void setValue(String value);
- private final static long serialVersionUID = 1L;
- @XmlValue
- protected String value;
- @XmlAttribute(required = true)
- protected MonitorType type;
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link MonitorType }
+ *
+ */
+ public abstract MonitorType getType();
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValue() {
- return value;
- }
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link MonitorType }
+ *
+ */
+ public abstract void setType(MonitorType value);
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValue(String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link MonitorType }
- *
- */
- public MonitorType getType() {
- return type;
- }
-
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link MonitorType }
- *
- */
- public void setType(MonitorType value) {
- this.type = value;
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoType.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/RepoType.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,76 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface RepoType {
+ public abstract String value();
-/**
- *
- * Enum describing types of possbile repositories.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for RepoType.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="RepoType">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="svn"/>
- * <enumeration value="cvs"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum RepoType {
-
- @XmlEnumValue("svn")
- SVN("svn"),
- @XmlEnumValue("cvs")
- CVS("cvs");
- private final String value;
-
- RepoType(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static RepoType fromValue(String v) {
- for (RepoType c: RepoType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Sorting.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Sorting.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Sorting.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,85 +1,7 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.forge.common.projects.project;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
+public interface Sorting {
+ public abstract String value();
-/**
- *
- * Enum describing types of possbile sorting orders for downloads showing purposes.
- * PLEASE, DO NOT MODIFY THIS ENUM UNLESS YOU KNOW JAXB.
- * @author Ryszard Kozmik
- *
- *
- * <p>Java class for sorting.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="sorting">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="asc"/>
- * <enumeration value="desc"/>
- * <enumeration value="random"/>
- * <enumeration value="ascending"/>
- * <enumeration value="descending"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
- at XmlEnum
-public enum Sorting {
-
- @XmlEnumValue("asc")
- ASC("asc"),
- @XmlEnumValue("desc")
- DESC("desc"),
- @XmlEnumValue("random")
- RANDOM("random"),
- @XmlEnumValue("ascending")
- ASCENDING("ascending"),
- @XmlEnumValue("descending")
- DESCENDING("descending");
- private final String value;
-
- Sorting(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static Sorting fromValue(String v) {
- for (Sorting c: Sorting.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
+}
\ No newline at end of file
Deleted: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/package-info.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/package-info.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/package-info.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -1,24 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., 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.
- */
-
- at javax.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
-package org.jboss.forge.common.projects.project;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildResultRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildResultRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildResultRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -29,7 +29,10 @@
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
+import org.jboss.forge.common.projects.project.BuildResult;
+import org.jboss.forge.common.projects.project.BuildType;
+
/**
*
* Class for keeping information about project's build results.
@@ -45,7 +48,7 @@
"value"
})
public class BuildResultRW
- implements Serializable
+ implements BuildResult, Serializable
{
private final static long serialVersionUID = 1L;
@@ -98,8 +101,8 @@
* {@link BuildTypeRW }
*
*/
- public synchronized void setType(BuildTypeRW value) {
- this.type = value;
+ public synchronized void setType(BuildType value) {
+ this.type = (BuildTypeRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildTypeRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildTypeRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/BuildTypeRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -26,7 +26,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.BuildType;
+
/**
*
* Enum describing types of possbile builder applications.
@@ -49,7 +51,7 @@
*
*/
@XmlEnum
-public enum BuildTypeRW {
+public enum BuildTypeRW implements BuildType {
@XmlEnumValue("CruiseControl")
CRUISE_CONTROL("CruiseControl"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoriesRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoriesRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoriesRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -29,7 +29,9 @@
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Categories;
+
/**
*
* Class for keeping information about download categories.
@@ -45,7 +47,7 @@
"category"
})
public class CategoriesRW
- implements Serializable
+ implements Categories, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoryRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoryRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/CategoryRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -28,7 +28,11 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Categories;
+import org.jboss.forge.common.projects.project.Category;
+import org.jboss.forge.common.projects.project.Files;
+
/**
*
* Class for keeping information about download category.
@@ -44,7 +48,7 @@
})
public class CategoryRW
- implements Serializable
+ implements Category, Serializable
{
private final static long serialVersionUID = 1L;
@@ -147,8 +151,8 @@
* {@link FilesRW }
*
*/
- public synchronized void setFiles(FilesRW value) {
- this.files = value;
+ public synchronized void setFiles(Files value) {
+ this.files = (FilesRW) value;
}
/**
@@ -171,8 +175,8 @@
* {@link CategoriesRW }
*
*/
- public synchronized void setCategories(CategoriesRW value) {
- this.categories = value;
+ public synchronized void setCategories(Categories value) {
+ this.categories = (CategoriesRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DevelopersRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DevelopersRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DevelopersRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -30,7 +30,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Developers;
+
/**
*
* This class will collect project developers.
@@ -47,7 +49,7 @@
"developers"
})
public class DevelopersRW
- implements Serializable
+ implements Developers, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -29,7 +29,10 @@
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
+import org.jboss.forge.common.projects.project.Documentation;
+import org.jboss.forge.common.projects.project.DocumentationType;
+
/**
*
* Class for keeping links to project's documentation.
@@ -45,7 +48,7 @@
"value"
})
public class DocumentationRW
- implements Serializable
+ implements Documentation, Serializable
{
private final static long serialVersionUID = 1L;
@@ -98,8 +101,8 @@
* {@link DocumentationTypeRW }
*
*/
- public synchronized void setType(DocumentationTypeRW value) {
- this.type = value;
+ public synchronized void setType(DocumentationType value) {
+ this.type = (DocumentationTypeRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationTypeRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationTypeRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DocumentationTypeRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -25,7 +25,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.DocumentationType;
+
/**
*
* Enum describing types of documentation.
@@ -52,7 +54,7 @@
*
*/
@XmlEnum
-public enum DocumentationTypeRW {
+public enum DocumentationTypeRW implements DocumentationType {
@XmlEnumValue("manual")
MANUAL("manual"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DownloadsRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DownloadsRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/DownloadsRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -27,7 +27,12 @@
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Categories;
+import org.jboss.forge.common.projects.project.Downloads;
+import org.jboss.forge.common.projects.project.Files;
+import org.jboss.forge.common.projects.project.Sorting;
+
/**
*
* Class for keeping information about project's downloads.
@@ -47,7 +52,7 @@
"files"
})
public class DownloadsRW
- implements Serializable
+ implements Downloads, Serializable
{
private final static long serialVersionUID = 1L;
@@ -77,8 +82,8 @@
* {@link CategoriesRW }
*
*/
- public synchronized void setCategories(CategoriesRW value) {
- this.categories = value;
+ public synchronized void setCategories(Categories value) {
+ this.categories = (CategoriesRW) value;
}
/**
@@ -149,8 +154,8 @@
* {@link DownloadsRW.Counters }
*
*/
- public synchronized void setCounters(DownloadsRW.Counters value) {
- this.counters = value;
+ public synchronized void setCounters(org.jboss.forge.common.projects.project.Counters value) {
+ this.counters = (Counters) value;
}
/**
@@ -173,8 +178,8 @@
* {@link FilesRW }
*
*/
- public synchronized void setFiles(FilesRW value) {
- this.files = value;
+ public synchronized void setFiles(Files value) {
+ this.files = (FilesRW) value;
}
@@ -204,7 +209,7 @@
"visible"
})
public static class Counters
- implements Serializable
+ implements org.jboss.forge.common.projects.project.Counters, Serializable
{
private final static long serialVersionUID = 1L;
@@ -231,8 +236,8 @@
* {@link SortingRW }
*
*/
- public synchronized void setSorting(SortingRW value) {
- this.sorting = value;
+ public synchronized void setSorting(Sorting value) {
+ this.sorting = (SortingRW) value;
}
/**
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FileRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FileRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FileRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -31,7 +31,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.File;
+
/**
*
* Class for keeping information about one file available for download.
@@ -54,7 +56,7 @@
"button"
})
public class FileRW
- implements Serializable
+ implements File, Serializable
{
private final static long serialVersionUID = 1L;
@@ -324,7 +326,7 @@
"freezone"
})
public static class Button
- implements Serializable
+ implements org.jboss.forge.common.projects.project.Button, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FilesRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FilesRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/FilesRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -30,7 +30,10 @@
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Files;
+import org.jboss.forge.common.projects.project.Sorting;
+
/**
*
* Class for keeping information about files available to download.
@@ -46,7 +49,7 @@
"file"
})
public class FilesRW
- implements Serializable
+ implements Files, Serializable
{
private final static long serialVersionUID = 1L;
@@ -137,8 +140,8 @@
* {@link SortingRW }
*
*/
- public synchronized void setSorting(SortingRW value) {
- this.sorting = value;
+ public synchronized void setSorting(Sorting value) {
+ this.sorting = (SortingRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -29,7 +29,10 @@
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
+import org.jboss.forge.common.projects.project.IssueTracker;
+import org.jboss.forge.common.projects.project.IssueTrackerType;
+
/**
*
* Class for keeping information about project's issue tracker.
@@ -45,7 +48,7 @@
"value"
})
public class IssueTrackerRW
- implements Serializable
+ implements IssueTracker, Serializable
{
private final static long serialVersionUID = 1L;
@@ -102,8 +105,8 @@
* {@link IssueTrackerTypeRW }
*
*/
- public synchronized void setType(IssueTrackerTypeRW value) {
- this.type = value;
+ public synchronized void setType(IssueTrackerType value) {
+ this.type = (IssueTrackerTypeRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerTypeRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerTypeRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/IssueTrackerTypeRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -25,7 +25,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.IssueTrackerType;
+
/**
*
* Enum describing types of possbile issue trackers.
@@ -48,7 +50,7 @@
*
*/
@XmlEnum
-public enum IssueTrackerTypeRW {
+public enum IssueTrackerTypeRW implements IssueTrackerType {
@XmlEnumValue("jira")
JIRA("jira"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/MonitorTypeRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/MonitorTypeRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/MonitorTypeRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -25,7 +25,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.MonitorType;
+
/**
*
* Enum describing types of possbile repository-monitors.
@@ -48,7 +50,7 @@
*
*/
@XmlEnum
-public enum MonitorTypeRW {
+public enum MonitorTypeRW implements MonitorType {
@XmlEnumValue("fisheye")
FISHEYE("fisheye"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PageRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PageRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PageRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -31,7 +31,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Page;
+
/**
*
* Class for keeping information about one of pages for project's navigation menu.
@@ -47,7 +49,7 @@
"portlets"
})
public class PageRW
- implements Serializable
+ implements Page, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PagesRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PagesRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PagesRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -30,7 +30,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Pages;
+
/**
*
* Class for keeping information about project's menu pages.
@@ -46,7 +48,7 @@
"pages"
})
public class PagesRW
- implements Serializable
+ implements Pages, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -30,7 +30,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Poll;
+
/**
*
* Class for keeping information about one poll.
@@ -47,7 +49,7 @@
"answer"
})
public class PollRW
- implements Serializable
+ implements Poll, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollsRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollsRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PollsRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -30,7 +30,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Polls;
+
/**
*
* Class for keeping information about polls.
@@ -46,7 +48,7 @@
"polls"
})
public class PollsRW
- implements Serializable
+ implements Polls, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PortletRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PortletRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PortletRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -31,7 +31,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Portlet;
+
/**
*
* Class for keeping information about one of projects' portlets.
@@ -47,7 +49,7 @@
"preferences"
})
public class PortletRW
- implements Serializable
+ implements Portlet, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PreferenceRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PreferenceRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/PreferenceRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -28,7 +28,9 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Preference;
+
/**
*
* Class for keeping information about one of portlets' preferences.
@@ -45,7 +47,7 @@
"value"
})
public class PreferenceRW
- implements Serializable
+ implements Preference, Serializable
{
private final static long serialVersionUID = 1L;
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -31,7 +31,16 @@
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
+import org.jboss.forge.common.projects.project.Developers;
+import org.jboss.forge.common.projects.project.Downloads;
+import org.jboss.forge.common.projects.project.IssueTracker;
+import org.jboss.forge.common.projects.project.Pages;
+import org.jboss.forge.common.projects.project.Polls;
+import org.jboss.forge.common.projects.project.Project;
+import org.jboss.forge.common.projects.project.RepoMonitor;
+import org.jboss.forge.common.projects.project.RepoType;
+
/**
*
* Root class describing whole project.
@@ -70,7 +79,7 @@
})
@XmlRootElement(name = "project")
public class ProjectRW
- implements Serializable
+ implements Project, Serializable
{
private final static long serialVersionUID = 1L;
@@ -275,8 +284,8 @@
* {@link DevelopersRW }
*
*/
- public void setDevelopers(DevelopersRW value) {
- this.developers = value;
+ public void setDevelopers(Developers value) {
+ this.developers = (DevelopersRW) value;
}
/**
@@ -328,8 +337,8 @@
* {@link RepoTypeRW }
*
*/
- public void setRepoType(RepoTypeRW value) {
- this.repoType = value;
+ public void setRepoType(RepoType value) {
+ this.repoType = (RepoTypeRW) value;
}
/**
@@ -400,8 +409,8 @@
* {@link RepoMonitorRW }
*
*/
- public void setRepoMonitor(RepoMonitorRW value) {
- this.repoMonitor = value;
+ public void setRepoMonitor(RepoMonitor value) {
+ this.repoMonitor = (RepoMonitorRW) value;
}
/**
@@ -424,8 +433,8 @@
* {@link IssueTrackerRW }
*
*/
- public void setIssueTracker(IssueTrackerRW value) {
- this.issueTracker = value;
+ public void setIssueTracker(IssueTracker value) {
+ this.issueTracker = (IssueTrackerRW) value;
}
/**
@@ -618,8 +627,8 @@
* {@link PagesRW }
*
*/
- public void setPages(PagesRW value) {
- this.pages = value;
+ public void setPages(Pages value) {
+ this.pages = (PagesRW) value;
}
/**
@@ -642,8 +651,8 @@
* {@link DownloadsRW }
*
*/
- public void setDownloads(DownloadsRW value) {
- this.downloads = value;
+ public void setDownloads(Downloads value) {
+ this.downloads = (DownloadsRW) value;
}
/**
@@ -666,8 +675,8 @@
* {@link PollsRW }
*
*/
- public void setPolls(PollsRW value) {
- this.polls = value;
+ public void setPolls(Polls value) {
+ this.polls = (PollsRW) value;
}
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoMonitorRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoMonitorRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoMonitorRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -29,7 +29,10 @@
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
+import org.jboss.forge.common.projects.project.MonitorType;
+import org.jboss.forge.common.projects.project.RepoMonitor;
+
/**
*
* Class for keeping information about project's repository monitor.
@@ -45,7 +48,7 @@
"value"
})
public class RepoMonitorRW
- implements Serializable
+ implements RepoMonitor, Serializable
{
private final static long serialVersionUID = 1L;
@@ -98,8 +101,9 @@
* {@link MonitorTypeRW }
*
*/
- public synchronized void setType(MonitorTypeRW value) {
- this.type = value;
+ public synchronized void setType(MonitorType value) {
+ this.type = (MonitorTypeRW) value;
}
+
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoTypeRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoTypeRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/RepoTypeRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -25,7 +25,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.RepoType;
+
/**
*
* Enum describing types of possbile repositories.
@@ -48,7 +50,7 @@
*
*/
@XmlEnum
-public enum RepoTypeRW {
+public enum RepoTypeRW implements RepoType {
@XmlEnumValue("svn")
SVN("svn"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/SortingRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/SortingRW.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/SortingRW.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -25,7 +25,9 @@
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
+import org.jboss.forge.common.projects.project.Sorting;
+
/**
*
* Enum describing types of possbile sorting orders for downloads showing purposes.
@@ -51,7 +53,7 @@
*
*/
@XmlEnum
-public enum SortingRW {
+public enum SortingRW implements Sorting {
@XmlEnumValue("asc")
ASC("asc"),
Modified: labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projectpages/ProjectPagesServiceBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projectpages/ProjectPagesServiceBean.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projectpages/ProjectPagesServiceBean.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -520,7 +520,7 @@
}
}
- public void updatePages(Collection<Project> projects) {
+ public void updatePages(Collection<? extends Project> projects) {
String ejbContextID = PolicyContext.getContextID();
try {
PolicyContext.setContextID("portal-server.war");
Modified: labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projects/ProjectsServiceImpl.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projects/ProjectsServiceImpl.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-ejb3/src/java/org/jboss/forge/ejb3/projects/ProjectsServiceImpl.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -94,7 +94,7 @@
public Project getProjectByName(String projectId) {
Projects projectsClass = ProjectsHelper.getProjects(Constants.LABS_PORTAL);
- Map<String,Project> projects = projectsClass.getProjectsDescriptor().getNewProjects();
+ Map<String,? extends Project> projects = projectsClass.getProjectsDescriptor().getNewProjectsRW();
return projects.get(projectId);
}
@@ -158,7 +158,7 @@
return project.getIssueTracker();
}
- public List<BuildResult> getProjectBuildresults(String projectId) {
+ public List<? extends BuildResult> getProjectBuildresults(String projectId) {
Project project = getProjectByName(projectId);
if (project==null) return null;
return project.getBuildResults();
@@ -188,7 +188,7 @@
return project.getDevForum();
}
- public List<Documentation> getProjectDocumentation(String projectId) {
+ public List<? extends Documentation> getProjectDocumentation(String projectId) {
Project project = getProjectByName(projectId);
if (project==null) return null;
return project.getDocumentation();
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoBean.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoBean.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -60,8 +60,14 @@
JBossRenderRequest req = (JBossRenderRequest) request;
String projectId = ProjectsHelper.getSelectedProjectId(req);
+ projectId = "shotoku"; //DEBUG
+
project = getProjectById(projectId);
portalName = ForgeHelper.getPortalName(req);
+
+ System.out.println("PROJECT ID " + ProjectsHelper.getSelectedProjectId(req)
+ + " object: " + getProjectById(ProjectsHelper.getSelectedProjectId(req)));
+
projectURL = "/portal/" + project.getId();
if (req.getUser() != null) {
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoConstants.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoConstants.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoConstants.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -26,6 +26,11 @@
import org.jboss.forge.common.projects.project.IssueTrackerType;
import org.jboss.forge.common.projects.project.MonitorType;
import org.jboss.forge.common.projects.project.RepoType;
+import org.jboss.forge.common.projects.project.rw.BuildTypeRW;
+import org.jboss.forge.common.projects.project.rw.DocumentationTypeRW;
+import org.jboss.forge.common.projects.project.rw.IssueTrackerTypeRW;
+import org.jboss.forge.common.projects.project.rw.MonitorTypeRW;
+import org.jboss.forge.common.projects.project.rw.RepoTypeRW;
/**
* @author Pawel Wrzeszcz (pawel . wrzeszcz [at] jboss . com)
@@ -39,14 +44,14 @@
public static final String ERR_ACTION = "";
public static final String ADD_REMOVE_ACTION = "";
- public static final RepoType DEFAULT_REPO_TYPE = RepoType.SVN;
+ public static final RepoType DEFAULT_REPO_TYPE = RepoTypeRW.SVN;
public static final MonitorType DEFAULT_REPO_MONITOR_TYPE
- = MonitorType.FISHEYE;
+ = MonitorTypeRW.FISHEYE;
public static final IssueTrackerType DEFAULT_ISSUE_TRACKER_TYPE
- = IssueTrackerType.JIRA;
- public static final BuildType DEFAULT_BUILD_TYPE = BuildType.CRUISE_CONTROL;
+ = IssueTrackerTypeRW.JIRA;
+ public static final BuildType DEFAULT_BUILD_TYPE = BuildTypeRW.CRUISE_CONTROL;
public static final DocumentationType DEFAULT_DOCUMENTATION_TYPE
- = DocumentationType.MANUAL;
+ = DocumentationTypeRW.MANUAL;
public static final String DEL_REPO_PARAM = "delRepoId";
public static final String DEL_REPO_MONITOR_PARAM = "delRepoMonitorId";
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoEditBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoEditBean.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoEditBean.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -95,7 +95,7 @@
FacesTools.addMessage("Please provide Continuous Integration Tool URL.");
return ProjectInfoConstants.ERR_ACTION;
}
-
+ /*
BuildResult rm = new BuildResult();
rm.setType(newBuildResultsType);
rm.setValue(newBuildResultsURL);
@@ -103,7 +103,7 @@
project.getBuildResults().add(rm);
newBuildResultsURL = "";
newBuildResultsType = ProjectInfoConstants.DEFAULT_BUILD_TYPE;
-
+ */
return ProjectInfoConstants.ADD_REMOVE_ACTION;
}
@@ -112,7 +112,7 @@
String delBuildResultId = FacesTools.getRequestParameter(
ProjectInfoConstants.DEL_BUILD_RESULTS_PARAM);
- List<BuildResult> buildResults = project.getBuildResults();
+ List<? extends BuildResult> buildResults = project.getBuildResults();
for (BuildResult br : buildResults) {
if (delBuildResultId.equals(br.getValue())) {
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTools.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTools.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTools.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -82,7 +82,7 @@
Map<DocumentationType,Documentation> docMap = getDocumentationMap(prj);
List<Documentation> ret = new ArrayList<Documentation>();
-
+ /*
for (DocumentationType dt : DocumentationType.values()) {
Documentation d = docMap.get(dt);
@@ -94,12 +94,15 @@
ret.add(d);
}
}
-
+ */
return ret;
}
public static Map<DocumentationType, Documentation> getDocumentationMap(Project project) {
+ return null;
+
+ /*
Map<DocumentationType, Documentation> map =
new EnumMap<DocumentationType, Documentation>(DocumentationType.class);
@@ -108,7 +111,7 @@
map.put(d.getType(), d);
}
- return map;
+ return map; */
}
private ProjectInfoTools() { }
Modified: labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTypesBean.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTypesBean.java 2007-02-26 14:57:40 UTC (rev 9763)
+++ labs/jbosslabs/trunk/portal-extensions/forge-portlets/src/java/org/jboss/forge/projects/info/ProjectInfoTypesBean.java 2007-02-26 15:05:42 UTC (rev 9764)
@@ -44,38 +44,46 @@
public List<SelectItem> getIssueTrackerTypes() {
+ return null;
+ /*
List<SelectItem> list = new ArrayList<SelectItem>();
for (IssueTrackerType itt : IssueTrackerType.values()) {
list.add(new SelectItem(itt, itt.value()));
}
- return list;
+ return list;*/
}
public List<SelectItem> getRepoTypes() {
-
+
+ return null;
+ /*
List<SelectItem> list = new ArrayList<SelectItem>();
for(RepoType repoType : RepoType.values()) {
list.add(new SelectItem(repoType, repoType.value()));
}
- return list;
+ return list;*/
}
public List<SelectItem> getRepoMonitorTypes() {
+ return null;
+ /*
List<SelectItem> list = new ArrayList<SelectItem>();
for (MonitorType mt : MonitorType.values()) {
list.add(new SelectItem(mt, mt.value()));
}
- return list;
+ return list;*/
}
public List<SelectItem> getBuildResultsTypes() {
+ return null;
+ /*
List<SelectItem> list = new ArrayList<SelectItem>();
for (BuildType brt : BuildType.values()) {
list.add(new SelectItem(brt, brt.value()));
}
- return list;
+ return list;*/
}
/*
More information about the jboss-svn-commits
mailing list