You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
(14) |
May
(36) |
Jun
(148) |
Jul
(33) |
Aug
(2) |
Sep
(17) |
Oct
(42) |
Nov
(137) |
Dec
(88) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(89) |
Feb
(80) |
Mar
(217) |
Apr
(76) |
May
(5) |
Jun
(39) |
Jul
(35) |
Aug
(4) |
Sep
(7) |
Oct
(14) |
Nov
(12) |
Dec
(9) |
| 2011 |
Jan
(6) |
Feb
(4) |
Mar
(11) |
Apr
(55) |
May
(90) |
Jun
(39) |
Jul
(15) |
Aug
(15) |
Sep
(23) |
Oct
(12) |
Nov
(17) |
Dec
(20) |
| 2012 |
Jan
(22) |
Feb
(63) |
Mar
|
Apr
(1) |
May
(6) |
Jun
(3) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
(3) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <rv...@us...> - 2009-06-25 02:48:13
|
Revision: 111
http://treebase.svn.sourceforge.net/treebase/?rev=111&view=rev
Author: rvos
Date: 2009-06-25 02:48:12 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Refactored to use TreebaseIDString and NamespacedGUID classes as opposed to direct ID string manipulation
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java 2009-06-25 02:45:59 UTC (rev 110)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSController.java 2009-06-25 02:48:12 UTC (rev 111)
@@ -6,7 +6,10 @@
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
+import org.cipres.treebase.NamespacedGUID;
+import org.cipres.treebase.TreebaseIDString;
import org.cipres.treebase.TreebaseUtil;
+import org.cipres.treebase.TreebaseIDString.MalformedTreebaseIDString;
import org.cipres.treebase.domain.matrix.Matrix;
import org.cipres.treebase.domain.matrix.MatrixService;
import org.cipres.treebase.domain.study.Study;
@@ -20,31 +23,28 @@
private PhyloTreeService mPhyloTreeService;
private StudyService mStudyService;
- private String createUrl(String prefix, String objectId) throws Exception {
+ private String createUrl(String prefix, Long objectId) throws Exception {
String url = "";
String base = "/treebase-web/search/study";
- if ( prefix.equalsIgnoreCase("study") ) {
- Long studyId = Long.parseLong(objectId);
- Study study = getStudyService().findByID(studyId);
+ if ( prefix.equals(TreebaseIDString.getPrefixForClass(Study.class)) ) {
+ Study study = getStudyService().findByID(objectId);
if ( study == null ) {
- throw new ObjectNotFoundException("Can't find study " + studyId);
+ throw new ObjectNotFoundException("Can't find study " + objectId);
}
return base + "/summary.html?id=" + objectId;
}
- else if ( prefix.equalsIgnoreCase("matrix") ) {
- Long matrixId = Long.parseLong(objectId);
- Matrix matrix = getMatrixService().findByID(matrixId);
+ else if ( prefix.equals(TreebaseIDString.getPrefixForClass(Matrix.class)) ) {
+ Matrix matrix = getMatrixService().findByID(objectId);
if ( matrix == null ) {
- throw new ObjectNotFoundException("Can't find matrix " + matrixId);
+ throw new ObjectNotFoundException("Can't find matrix " + objectId);
}
Study study = matrix.getStudy();
return base + "/matrix.html?id=" + study.getId() + "&matrixid=" + objectId;
}
- else if ( prefix.equalsIgnoreCase("tree") ) {
- Long treeId = Long.parseLong(objectId);
- PhyloTree phyloTree = getPhyloTreeService().findByID(treeId);
+ else if ( prefix.equals(TreebaseIDString.getPrefixForClass(PhyloTree.class)) ) {
+ PhyloTree phyloTree = getPhyloTreeService().findByID(objectId);
if ( phyloTree == null ) {
- throw new ObjectNotFoundException("Can't find tree " + treeId);
+ throw new ObjectNotFoundException("Can't find tree " + objectId);
}
Study study = phyloTree.getStudy();
return base + "/tree.html?id=" + study.getId() + "&treeid=" + objectId;
@@ -62,25 +62,28 @@
throw new InvalidRequestException(
"Invalid request '"
+ pathInfo
- + "', should be /${class}/${id}");
+ + "', should be /${NamespacedGUID}");
}
String[] pathComponents = pathInfo.split("/");
- if ( pathComponents.length != 3 ) {
+ if ( pathComponents.length != 2 ) {
throw new InvalidRequestException(
"Invalid request '"
+ pathInfo
- + "', should be /${class}/${id}");
+ + "', should be /${NamespacedGUID}");
}
- String prefix = pathComponents[1];
- String fullyQualifiedId = pathComponents[2];
- String id = fullyQualifiedId.replaceAll(".*:[a-zA-Z]*","");
- if ( TreebaseUtil.isEmpty(req.getParameter("format")) ) {
- url = createUrl(prefix,id);
+ String[] idComponents = pathComponents[1].split("\\.");
+ NamespacedGUID namespacedGUID = new NamespacedGUID(idComponents[0]);
+ TreebaseIDString tbID = namespacedGUID.getTreebaseIDString();
+ if ( idComponents.length >= 2 && idComponents[1].equals("html") ) {
+ url = createUrl(tbID.getTypePrefix(),tbID.getId());
}
+ else if ( idComponents.length >= 2 ) {
+ url = createDownloadUrl(tbID.getTypePrefix(),tbID.getId(),idComponents[1]);
+ }
else {
- url = createDownloadUrl(prefix,id,req.getParameter("format"));
+ url = "/treebase-web/search/study/anyObjectAsRDF.html?namespacedGUID=" + namespacedGUID.toString();
}
- } catch ( NumberFormatException e ) {
+ } catch ( MalformedTreebaseIDString e ) {
res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Bad ID string: " + e.getMessage());
} catch ( ObjectNotFoundException e ) {
res.sendError(HttpServletResponse.SC_NOT_FOUND, e.getMessage());
@@ -93,32 +96,31 @@
}
return null;
}
-
- private String createDownloadUrl(String prefix, String objectId, String format) throws Exception {
+
+ private String createDownloadUrl(String prefix, Long objectId, String format) throws Exception {
+ if ( format.equals("xml") ) {
+ format = "nexml";
+ }
String url = "";
StringBuffer base = new StringBuffer("/treebase-web/search");
- if ( prefix.equalsIgnoreCase("study") ) {
- Long studyId = Long.parseLong(objectId);
- Study study = getStudyService().findByID(studyId);
+ if ( prefix.equals(TreebaseIDString.getPrefixForClass(Study.class)) ) {
+ Study study = getStudyService().findByID(objectId);
if ( study == null ) {
- throw new ObjectNotFoundException("Can't find study " + studyId);
+ throw new ObjectNotFoundException("Can't find study " + objectId);
}
- //return base + "/summary.html?id=" + objectId;
return base
.append("/downloadAStudy.html?id=")
.append(objectId)
.append("&format=")
.append(format)
- .toString();
+ .toString();
}
- else if ( prefix.equalsIgnoreCase("matrix") ) {
- Long matrixId = Long.parseLong(objectId);
- Matrix matrix = getMatrixService().findByID(matrixId);
+ else if ( prefix.equals(TreebaseIDString.getPrefixForClass(Matrix.class)) ) {
+ Matrix matrix = getMatrixService().findByID(objectId);
if ( matrix == null ) {
- throw new ObjectNotFoundException("Can't find matrix " + matrixId);
+ throw new ObjectNotFoundException("Can't find matrix " + objectId);
}
Study study = matrix.getStudy();
- //http://localhost:8080/treebase-web/search/downloadAMatrix.html?id=830&matrixid=263
return base
.append("/downloadAMatrix.html?id=")
.append(study.getId())
@@ -126,16 +128,14 @@
.append(objectId)
.append("&format=")
.append(format)
- .toString();
+ .toString();
}
- else if ( prefix.equalsIgnoreCase("tree") ) {
- Long treeId = Long.parseLong(objectId);
- PhyloTree phyloTree = getPhyloTreeService().findByID(treeId);
+ else if ( prefix.equals(TreebaseIDString.getPrefixForClass(PhyloTree.class)) ) {
+ PhyloTree phyloTree = getPhyloTreeService().findByID(objectId);
if ( phyloTree == null ) {
- throw new ObjectNotFoundException("Can't find tree " + treeId);
+ throw new ObjectNotFoundException("Can't find tree " + objectId);
}
Study study = phyloTree.getStudy();
- //http://localhost:8080/treebase-web/search/downloadATree.html?id=830&treeid=3983
return base
.append("/downloadATree.html?id=")
.append(study.getId())
@@ -143,7 +143,7 @@
.append(objectId)
.append("&format=")
.append(format)
- .toString();
+ .toString();
}
return url;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:46:00
|
Revision: 110
http://treebase.svn.sourceforge.net/treebase/?rev=110&view=rev
Author: rvos
Date: 2009-06-25 02:45:59 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added configuration for NexusServiceRDFa bean
Modified Paths:
--------------
trunk/treebase-core/src/main/resources/applicationContext-service.xml
Modified: trunk/treebase-core/src/main/resources/applicationContext-service.xml
===================================================================
--- trunk/treebase-core/src/main/resources/applicationContext-service.xml 2009-06-25 02:44:58 UTC (rev 109)
+++ trunk/treebase-core/src/main/resources/applicationContext-service.xml 2009-06-25 02:45:59 UTC (rev 110)
@@ -148,7 +148,12 @@
<bean id="nexmlService" class = "org.cipres.treebase.service.nexus.NexusServiceNexml">
<!-- property name="domainHome" ref="domainHome"/ -->
<property name="taxonLabelHome" ref="taxonLabelHome"/>
- </bean>
+ </bean>
+
+ <bean id="rdfaService" class = "org.cipres.treebase.service.nexus.NexusServiceRDFa">
+ <!-- property name="domainHome" ref="domainHome"/ -->
+ <property name="taxonLabelHome" ref="taxonLabelHome"/>
+ </bean>
<!-- package: org.cipres.treebase.domain.study -->
<bean id="analysisService" parent="baseTransactionProxy">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:45:00
|
Revision: 109
http://treebase.svn.sourceforge.net/treebase/?rev=109&view=rev
Author: rvos
Date: 2009-06-25 02:44:58 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added configuration for NeXML/RDFa->RDF/XML serialization
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/WEB-INF/treebase-servlet.xml
Modified: trunk/treebase-web/src/main/webapp/WEB-INF/treebase-servlet.xml
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/treebase-servlet.xml 2009-06-25 02:43:44 UTC (rev 108)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/treebase-servlet.xml 2009-06-25 02:44:58 UTC (rev 109)
@@ -15,6 +15,8 @@
<bean id="processUserController" class="org.cipres.treebase.web.controllers.ProcessUserController"/>
+ <bean id="anyObjectAsRDFController" class="org.cipres.treebase.web.controllers.AnyObjectAsRDFController"/>
+
<bean id="appletInteractionController" class="org.cipres.treebase.web.controllers.AppletInteractionController">
<property name="phyloTreeService"><ref bean="phyloTreeService"></ref></property>
@@ -107,25 +109,29 @@
<bean id="downloadAStudyController" class="org.cipres.treebase.web.controllers.DownloadAStudyController">
<property name="studyService"><ref bean="studyService"></ref></property>
<property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- Download A Tree -->
<bean id="downloadATreeController" class="org.cipres.treebase.web.controllers.DownloadATreeController">
<property name="studyService"><ref bean="studyService"></ref></property>
<property name="phyloTreeService"><ref bean="phyloTreeService"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<bean id="downloadATreeBlockController" class="org.cipres.treebase.web.controllers.DownloadATreeBlockController">
<property name="phyloTreeHome"><ref bean="phyloTreeHome"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- Download A Matrix -->
<bean id="downloadAMatrixController" class="org.cipres.treebase.web.controllers.DownloadAMatrixController">
<property name="matrixService"><ref bean="matrixService"></ref></property>
<property name="studyService"><ref bean="studyService"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- Download A NexusFile -->
@@ -133,7 +139,8 @@
<property name="phyloTreeService"><ref bean="phyloTreeService"></ref></property>
<property name="studyService"><ref bean="studyService"></ref></property>
<property name="matrixService"><ref bean="matrixService"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- Download An AnalysisStep's input and output as a NexusFile -->
@@ -141,13 +148,15 @@
<property name="phyloTreeService"><ref bean="phyloTreeService"></ref></property>
<property name="matrixService"><ref bean="matrixService"></ref></property>
<property name="analysisStepService"><ref bean="analysisStepService"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- Download A NexusFile -->
<bean id="downloadANexusRCTFileController" class="org.cipres.treebase.web.controllers.DownloadANexusRCTFileController">
<property name="studyService"><ref bean="studyService"></ref></property>
- <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="nexmlService"><ref bean="nexmlService"></ref></property>
+ <property name="rdfaService"><ref bean="rdfaService"></ref></property>
</bean>
<!-- View Taxa -->
@@ -920,6 +929,7 @@
<prop key="/search/study/analysis.html">searchSummaryController</prop>
<prop key="/search/study/taxa.html">searchSummaryController</prop>
<prop key="/search/study/rowSegments.html">searchSummaryController</prop>
+ <prop key="/search/study/anyObjectAsRDF.html">anyObjectAsRDFController</prop>
<prop key="/search/matrixRowList.html">listMatrixRowController</prop>
<prop key="/search/taxonList.html">listTaxaSearchController</prop>
<prop key="/search/downloadAStudy.html">downloadAStudyController</prop>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:43:45
|
Revision: 108
http://treebase.svn.sourceforge.net/treebase/?rev=108&view=rev
Author: rvos
Date: 2009-06-25 02:43:44 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added getTreebaseIDString() and getNamespacedGUID() transient methods
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java 2009-06-25 02:41:29 UTC (rev 107)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java 2009-06-25 02:43:44 UTC (rev 108)
@@ -28,8 +28,12 @@
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
+import javax.persistence.Transient;
import javax.persistence.Version;
+import org.cipres.treebase.NamespacedGUID;
+import org.cipres.treebase.TreebaseIDString;
+
/**
* The abstract super class for all persisted domain objects.
*
@@ -97,5 +101,15 @@
private void setVersion(int pNewVersion) {
mVersion = pNewVersion;
}
+
+ @Transient
+ public TreebaseIDString getTreebaseIDString () {
+ return new TreebaseIDString(this);
+ }
+
+ @Transient
+ public NamespacedGUID getNamespacedGUID () {
+ return getTreebaseIDString().getNamespacedGUID();
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:41:35
|
Revision: 107
http://treebase.svn.sourceforge.net/treebase/?rev=107&view=rev
Author: rvos
Date: 2009-06-25 02:41:29 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added NeXML->RDF serialization, removed old, commented out code.
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadANexusRCTFileController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadANexusRCTFileController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadANexusRCTFileController.java 2009-06-25 02:40:49 UTC (rev 106)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadANexusRCTFileController.java 2009-06-25 02:41:29 UTC (rev 107)
@@ -21,9 +21,6 @@
*/
package org.cipres.treebase.web.controllers;
-//import java.io.File;
-//import java.io.FileWriter;
-
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -36,7 +33,6 @@
import org.cipres.treebase.domain.study.StudyService;
import org.cipres.treebase.domain.study.Submission;
import org.cipres.treebase.web.util.ControllerUtil;
-//import org.cipres.treebase.web.util.WebUtil;
/**
* @author madhu
@@ -80,53 +76,6 @@
Submission submission = study.getSubmission();
generateAFileDynamically(pRequest, pResponse, submission.getId());
return null;
-
-// String fileName = pRequest.getParameter("nexusfile");
-// if (fileName == null) {
-// return null;
-// }
-//
-// String nexFileName = (fileName + "rct").replaceAll(TreebaseUtil.ANEMPTYSPACE, "_");
-//
-// if (LOGGER.isInfoEnabled()) {
-// LOGGER.info("Submission id: " + submission.getId() + ", FileName: " + nexFileName);
-// }
-
-// String downloadDir = pRequest.getSession().getServletContext().getRealPath(
-// TreebaseUtil.FILESEP + "NexusFileDownload")
-// + TreebaseUtil.FILESEP + pRequest.getRemoteUser();
-// String downloadDir = getDownloadDir(pRequest);
-//
-// long start = System.currentTimeMillis();
-//
-// File dirPath = new File(downloadDir);
-// if (!dirPath.exists()) {
-// dirPath.mkdirs();
-// }
-//
-// String pathName = downloadDir + TreebaseUtil.FILESEP + nexFileName;
-// File file = new File(pathName);
-//
-// if (LOGGER.isDebugEnabled()) {
-// LOGGER.debug("path=" + pathName);
-// }
-//
-// FileWriter fwriter = new FileWriter(file);
-// StringBuilder bldr = new StringBuilder("#NEXUS");
-// bldr.append(TreebaseUtil.getLineSeparators(2));
-// bldr
-// .append(getStudyService().generateReconstructedNexusFile(submission.getId(), fileName));
-//
-// fwriter.write(bldr.toString());
-// fwriter.close();
-// WebUtil.downloadFile(pResponse, downloadDir, nexFileName);
-//
-// if (LOGGER.isDebugEnabled()) {
-// long end = System.currentTimeMillis();
-// LOGGER.debug(" file download time=" + (end-start));
-// }
-//
-// return null;
}
@Override
@@ -151,6 +100,11 @@
Study study = mStudyService.findByID(study_id);
return getNexmlService().serialize(study);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ Long study_id = ControllerUtil.getStudyId(request);
+ Study study = mStudyService.findByID(study_id);
+ return getRdfaService().serialize(study);
+ }
else {
String fileName = request.getParameter("nexusfile");
if (fileName == null) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:40:50
|
Revision: 106
http://treebase.svn.sourceforge.net/treebase/?rev=106&view=rev
Author: rvos
Date: 2009-06-25 02:40:49 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added RDF handling
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java 2009-06-25 02:40:12 UTC (rev 105)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java 2009-06-25 02:40:49 UTC (rev 106)
@@ -41,6 +41,9 @@
if ( getFormat(request) == FORMAT_NEXML ) {
return getNexmlService().serialize(study);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ return getRdfaService().serialize(study);
+ }
else {
StringBuilder builder = new StringBuilder();
builder.append("#NEXUS\n\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:40:14
|
Revision: 105
http://treebase.svn.sourceforge.net/treebase/?rev=105&view=rev
Author: rvos
Date: 2009-06-25 02:40:12 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added NeXML->RDF serialization, removed old, commented out code.
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeBlockController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeBlockController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeBlockController.java 2009-06-25 02:39:28 UTC (rev 104)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeBlockController.java 2009-06-25 02:40:12 UTC (rev 105)
@@ -20,21 +20,15 @@
package org.cipres.treebase.web.controllers;
-//import java.io.File;
-//import java.io.FileWriter;
-
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-//import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
-//import org.cipres.treebase.TreebaseUtil;
import org.cipres.treebase.domain.nexus.NexusDataSet;
import org.cipres.treebase.domain.tree.PhyloTreeHome;
import org.cipres.treebase.domain.tree.TreeBlock;
-//import org.cipres.treebase.web.util.WebUtil;
/**
*
@@ -43,7 +37,6 @@
*/
public class DownloadATreeBlockController extends AbstractDownloadController implements Controller {
-// private static final Logger LOGGER = Logger.getLogger(DownloadATreeBlockController.class);
private PhyloTreeHome mPhyloTreeHome;
@@ -68,46 +61,12 @@
*/
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
throws Exception {
-
-// String sep = System.getProperty("file.separator");
if (request.getParameter("treeblockid") == null) {
return null;
}
long blockid = Long.parseLong(request.getParameter("treeblockid"));
generateAFileDynamically(request, response, blockid);
return null;
- //String fileName = getFileName(blockid,request);
-
-// String downloadDir = request.getSession().getServletContext().getRealPath(
-// "/NexusFileDownload")
-// + sep + request.getRemoteUser();
-// String downloadDir = getDownloadDir(request);
-//
-// long start = System.currentTimeMillis();
-//
-// TreeBlock treeBlock = getPhyloTreeHome().findTreeBlockById(blockid);
-//
-// File dirPath = new File(downloadDir);
-// if (!dirPath.exists()) {
-// dirPath.mkdirs();
-// }
-// File file = new File(downloadDir + System.getProperty("file.separator")
-// + getFileName(blockid,request));
-// FileWriter fwriter = new FileWriter(file);
-// StringBuilder bldr = new StringBuilder("#NEXUS\n\n");
-// treeBlock.generateAFileDynamically(bldr);
-// fwriter.write(bldr.toString());
-// fwriter.close();
-// generateAFileDynamically(request, blockid);
-// WebUtil.downloadFile(response, downloadDir, getFileName(blockid,request));
-//
-// long end = System.currentTimeMillis();
-//
-// if (LOGGER.isDebugEnabled()) {
-// LOGGER.debug("TIME DIFFERENCE FOR A SINGAL FILE: " + (end - start));
-// }
-//
-// return null;
}
@Override
@@ -124,6 +83,12 @@
nexusDataSet.getTreeBlocks().add(treeBlock);
return getNexmlService().serialize(nexusDataSet);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ NexusDataSet nexusDataSet = new NexusDataSet();
+ nexusDataSet.getTaxonLabelSets().add(treeBlock.getTaxonLabelSet());
+ nexusDataSet.getTreeBlocks().add(treeBlock);
+ return getRdfaService().serialize(nexusDataSet);
+ }
else {
StringBuilder bldr = new StringBuilder("#NEXUS\n\n");
treeBlock.generateAFileDynamically(bldr);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:39:29
|
Revision: 104
http://treebase.svn.sourceforge.net/treebase/?rev=104&view=rev
Author: rvos
Date: 2009-06-25 02:39:28 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added NeXML->RDF serialization, removed old, commented out code.
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeController.java 2009-06-25 02:38:58 UTC (rev 103)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadATreeController.java 2009-06-25 02:39:28 UTC (rev 104)
@@ -20,29 +20,21 @@
package org.cipres.treebase.web.controllers;
-//import java.io.File;
-//import java.io.FileWriter;
-//import java.io.IOException;
-
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-//import org.apache.log4j.Logger;
-import org.springframework.web.servlet.ModelAndView;
-import org.springframework.web.servlet.mvc.Controller;
-
import org.cipres.treebase.TreebaseUtil;
import org.cipres.treebase.domain.nexus.NexusDataSet;
import org.cipres.treebase.domain.study.Study;
import org.cipres.treebase.domain.study.StudyService;
+import org.cipres.treebase.domain.taxon.TaxonLabelSet;
import org.cipres.treebase.domain.tree.PhyloTree;
import org.cipres.treebase.domain.tree.PhyloTreeService;
import org.cipres.treebase.domain.tree.TreeBlock;
import org.cipres.treebase.web.util.ControllerUtil;
-//import org.cipres.treebase.web.util.WebUtil;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.servlet.mvc.Controller;
-import org.cipres.treebase.domain.taxon.TaxonLabelSet;
-
/**
* DownloadATreeController.java
*
@@ -56,7 +48,6 @@
*/
public class DownloadATreeController extends AbstractDownloadController implements Controller {
-// private static final Logger LOGGER = Logger.getLogger(DownloadATreeController.class);
private PhyloTreeService mPhyloTreeService;
private StudyService mStudyService;
@@ -95,90 +86,14 @@
*/
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
throws Exception {
-
-// String sep = System.getProperty("file.separator");
if (request.getParameter("treeid") == null) {
return null;
}
long treeid = Long.parseLong(request.getParameter("treeid"));
generateAFileDynamically(request, response, treeid);
return null;
-// String fileName = getFileName(treeid,request);
-//
-// String downloadDir = request.getSession().getServletContext().getRealPath(
-// "/NexusFileDownload")
-// + sep + request.getRemoteUser();
-// String downloadDir = getDownloadDir(request);
-//
-// long start = System.currentTimeMillis();
-//
-// generateAFileDynamically(request, treeid, downloadDir);
-// WebUtil.downloadFile(response, downloadDir, fileName);
-//
-// long end = System.currentTimeMillis();
-//
-// if (LOGGER.isDebugEnabled()) {
-// LOGGER.debug("TIME DIFFERENCE FOR A SINGAL FILE: " + (end - start));
-// }
-//
-// return null; // new ModelAndView("treeList", Constants.TREE_LIST, phyloTrees);
}
- /**
- *
- * @param request
- * @param pTreeId It is tree id.
- * @param downloadDirName download directory where files will be created
- */
-
- /*
- private void generateAFileDynamically(
- HttpServletRequest request,
- long pTreeId,
- String downloadDirName) {
-
- Study study = ControllerUtil.findStudy(request, mStudyService);
-
-// File dirPath = new File(downloadDirName);
-// if (!dirPath.exists()) {
-// dirPath.mkdirs();
-// }
-
- PhyloTree tree = getPhyloTreeService().findByID(pTreeId);
- TaxonLabelSet tbnlblSet = tree.getTreeBlock().getTaxonLabelSet();
-
-// String tmp = getFileName(pTreeId,request);
-
- StringBuilder builder = new StringBuilder();
-
- builder.append("#NEXUS\n\n");
-
- // header:
- TreebaseUtil.attachStudyHeader(study, builder);
-
- // taxa:
- // one taxon label per line, no line number.
- tbnlblSet.buildNexusBlockTaxa(builder, true, false);
-
- //tree block:
- tree.buildNexusBlock(builder);
-
- generateAFileDynamically(request, pTreeId);
-
-// try {
-//
-// File file = new File(downloadDirName + TreebaseUtil.FILESEP + tmp);
-// FileWriter out = new FileWriter(file);
-//
-// out.write(builder.toString());
-//
-// out.close();
-//
-// } catch (IOException e) {
-// e.printStackTrace();
-// }
- }
-*/
@Override
protected String getFileNamePrefix() {
return "T";
@@ -200,6 +115,15 @@
nds.getTreeBlocks().add(treeBlock);
return getNexmlService().serialize(nds);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ NexusDataSet nds = new NexusDataSet();
+ nds.getTaxonLabelSets().add(tls);
+ TreeBlock treeBlock = new TreeBlock();
+ treeBlock.setTaxonLabelSet(tls);
+ treeBlock.addPhyloTree(tree);
+ nds.getTreeBlocks().add(treeBlock);
+ return getRdfaService().serialize(nds);
+ }
else {
StringBuilder builder = new StringBuilder();
builder.append("#NEXUS\n\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:38:59
|
Revision: 103
http://treebase.svn.sourceforge.net/treebase/?rev=103&view=rev
Author: rvos
Date: 2009-06-25 02:38:58 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added NeXML->RDF serialization, removed old, commented out code.
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAMatrixController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAMatrixController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAMatrixController.java 2009-06-25 02:33:04 UTC (rev 102)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAMatrixController.java 2009-06-25 02:38:58 UTC (rev 103)
@@ -20,14 +20,9 @@
package org.cipres.treebase.web.controllers;
-//import java.io.File;
-//import java.io.FileWriter;
-//import java.io.IOException;
-
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-//import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
@@ -39,7 +34,6 @@
import org.cipres.treebase.domain.study.StudyService;
import org.cipres.treebase.domain.taxon.TaxonLabelSet;
import org.cipres.treebase.web.util.ControllerUtil;
-//import org.cipres.treebase.web.util.WebUtil;
/**
* DownloadAMatrixController.java
@@ -54,7 +48,6 @@
*/
public class DownloadAMatrixController extends AbstractDownloadController implements Controller {
- //private static final Logger LOGGER = Logger.getLogger(DownloadAMatrixController.class);
private MatrixService mMatrixService;
private StudyService mStudyService;
@@ -98,102 +91,14 @@
*/
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
throws Exception {
- //
- // System.out.println("CONTEXT PATH IS: " + request.getContextPath());
- // System.out.println("REAL PATH IS: "
- // + request.getSession().getServletContext().getRealPath("/NexusFileDownload"));
- // System.out.println("PATH INFO: " + request.getPathInfo());
- //
-
if (request.getParameter("matrixid") == null) {
return null;
}
-
- //Long studyId = ControllerUtil.getStudyId(request);
- //Study s = getStudyService().findByID(studyId);
-
long matrixId = Long.parseLong(request.getParameter("matrixid"));
-// String fileName = getFileName(matrixId,request);
-
-// String downloadDir = request.getSession().getServletContext().getRealPath(
-// TreebaseUtil.FILESEP + "NexusFileDownload")
-// + TreebaseUtil.FILESEP + request.getRemoteUser();
-// String downloadDir = getDownloadDir(request);
-
-// long start = System.currentTimeMillis();
-
generateAFileDynamically(request, response, matrixId);
-// WebUtil.downloadFile(response, downloadDir, fileName);
-
-// long end = System.currentTimeMillis();
-//
-// if (LOGGER.isDebugEnabled()) {
-// LOGGER.debug("TIME DIFFERENCE FOR A SINGAL FILE IN DOWNLOAD A MATRIX CONTROLLER: "
-// + (end - start));
-// }
-
- return null; // new ModelAndView("treeList", Constants.TREE_LIST, phyloTrees);
+ return null;
}
- /**
- * This method is responsible for generating a Matrix file in a particular down load directory.
- * But first It should get All the Taxa associated with a Matrix id and get the max length of
- * the Taxon Labels and put Taxa and remaining matrix information in a separate ArrayLists
- *
- * @param request
- * @param pMatrixId It is Matrix id.
- * @param downloadDirName down load directory where files will be created
- */
- /*
- private void generateAFileDynamically(HttpServletRequest request, long pMatrixId, String downloadDirName) {
-
- Study pStudy = ControllerUtil.findStudy(request, mStudyService);
-
- Matrix matrix = mMatrixService.findByID(pMatrixId);
-
- File dirPath = new File(downloadDirName);
- if (!dirPath.exists()) {
- dirPath.mkdirs();
- }
-
- StringBuilder matrixContent = new StringBuilder();
- matrixContent.append("#NEXUS\n");
-
- //header:
- TreebaseUtil.attachStudyHeader(pStudy, matrixContent);
-
- // taxa:
- TaxonLabelSet taxa = matrix.getTaxa();
- if (taxa != null) {
- //one taxon per line, no line number:
- taxa.buildNexusBlockTaxa(matrixContent, true, false);
- }
-
- matrix.generateNexusBlock(matrixContent);
- // matrixContent.append("END;\n"); // Not Needed
-
- String tmp = getFileName(pMatrixId,request);
-
- try {
-
- File file = new File(downloadDirName + TreebaseUtil.FILESEP + tmp);
- FileWriter out = new FileWriter(file);
-
- out.write(matrixContent.toString());
-
- out.close();
- // File did not exist and was created
- // } else {
- // File already exists
- // }
-
- } catch (IOException e) {
- e.printStackTrace();
- }
-
- }
- */
-
@Override
protected String getFileNamePrefix() {
return "M";
@@ -203,14 +108,19 @@
protected String getFileContent(long objectId, HttpServletRequest request) {
Study pStudy = ControllerUtil.findStudy(request, getStudyService());
Matrix matrix = getMatrixService().findByID(objectId);
- TaxonLabelSet taxa = matrix.getTaxa();
-
+ TaxonLabelSet taxa = matrix.getTaxa();
if ( getFormat(request) == FORMAT_NEXML ) {
NexusDataSet pNexusDataSet = new NexusDataSet();
pNexusDataSet.getTaxonLabelSets().add(taxa);
pNexusDataSet.getMatrices().add(matrix);
return getNexmlService().serialize(pNexusDataSet);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ NexusDataSet pNexusDataSet = new NexusDataSet();
+ pNexusDataSet.getTaxonLabelSets().add(taxa);
+ pNexusDataSet.getMatrices().add(matrix);
+ return getRdfaService().serialize(pNexusDataSet);
+ }
else { // FORMAT_NEXUS or none
StringBuilder matrixContent = new StringBuilder();
matrixContent.append("#NEXUS\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:33:05
|
Revision: 102
http://treebase.svn.sourceforge.net/treebase/?rev=102&view=rev
Author: rvos
Date: 2009-06-25 02:33:04 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Adding anyObjectAsRDF.jsp, a template to generate a simple RDF representation of a treebase resource (i.e. any persistable treebase object)
Added Paths:
-----------
trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp
Added: trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp (rev 0)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2009-06-25 02:33:04 UTC (rev 102)
@@ -0,0 +1,35 @@
+<%@ include file="/common/taglibs.jsp"%>
+<% response.setContentType("application/rdf+xml"); %>
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}">
+ <dc:identifier>${namespacedGUID}</dc:identifier>
+ <c:if test="${hasWebPage}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.html"/></c:if>
+ <c:if test="${hasNeXML}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.xml"/></c:if>
+ <c:if test="${hasNexus}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.nex"/></c:if>
+ <c:if test="${hasRdf}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.rdf"/></c:if>
+ </rdf:Description><c:if test="${hasWebPage}">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.html">
+ <dcterms:format>text/html</dcterms:format>
+ <dc:language>EN-US</dc:language>
+ <dc:description>A Web page</dc:description>
+ </rdf:Description></c:if><c:if test="${hasNeXML}">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.xml">
+ <dcterms:format>application/xml</dcterms:format>
+ <dc:description>A NeXML serialization</dc:description>
+ </rdf:Description></c:if><c:if test="${hasNexus}">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.nex">
+ <dcterms:format>text/plain</dcterms:format>
+ <dc:description>A Nexus serialization</dc:description>
+ </rdf:Description></c:if><c:if test="${hasRdf}">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.rdf">
+ <dcterms:format>application/rdf+xml</dcterms:format>
+ <dc:description>RDF/XML metadata about the resource</dc:description>
+ </rdf:Description></c:if><%--c:if test="${hasJSON}">
+ <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.js">
+ <dcterms:format>text/javascript</dcterms:format>
+ <dc:description>A JSON mapping of a NeXML serialization</dc:description>
+ </rdf:Description></c:if--%>
+</rdf:RDF>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:31:20
|
Revision: 101
http://treebase.svn.sourceforge.net/treebase/?rev=101&view=rev
Author: rvos
Date: 2009-06-25 02:31:19 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Removed unused import
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java 2009-06-25 02:30:51 UTC (rev 100)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java 2009-06-25 02:31:19 UTC (rev 101)
@@ -19,7 +19,6 @@
import org.cipres.treebase.domain.tree.PhyloTree;
import org.cipres.treebase.domain.tree.PhyloTreeNode;
import org.cipres.treebase.domain.tree.TreeBlock;
-import org.nexml.model.Annotatable;
public class TreebaseIDString {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:30:52
|
Revision: 100
http://treebase.svn.sourceforge.net/treebase/?rev=100&view=rev
Author: rvos
Date: 2009-06-25 02:30:51 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added toString() method, which returns the ID string (i.e. prefix + long), changed the getPrefixForClass method to also return a prefix if the supplied parameter Class<?> is a subclass of one of the known class->prefix mappings
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java 2009-06-25 02:28:46 UTC (rev 99)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/TreebaseIDString.java 2009-06-25 02:30:51 UTC (rev 100)
@@ -135,6 +135,10 @@
}
}
+ public String toString() {
+ return mTypePrefix + mId;
+ }
+
public TreebaseIDString(String string, Class<?> class1) throws MalformedTreebaseIDString {
this(string, class1, false);
}
@@ -244,7 +248,17 @@
* @return
*/
public static String getPrefixForClass(Class<?> cl) {
- return prefixFor.get(cl);
+ if ( prefixFor.containsKey(cl) ) {
+ return prefixFor.get(cl);
+ }
+ else {
+ for ( Class<?> knownClass : prefixFor.keySet() ) {
+ if ( knownClass.isAssignableFrom(cl) ) {
+ return prefixFor.get(knownClass);
+ }
+ }
+ return null;
+ }
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:28:47
|
Revision: 99
http://treebase.svn.sourceforge.net/treebase/?rev=99&view=rev
Author: rvos
Date: 2009-06-25 02:28:46 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Adding AnyObjectAsRDFController, which creates request attributes for populating the anyObjectAsRDF.jsp template.
Added Paths:
-----------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AnyObjectAsRDFController.java
Added: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AnyObjectAsRDFController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AnyObjectAsRDFController.java (rev 0)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AnyObjectAsRDFController.java 2009-06-25 02:28:46 UTC (rev 99)
@@ -0,0 +1,63 @@
+/**
+ *
+ */
+package org.cipres.treebase.web.controllers;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.cipres.treebase.NamespacedGUID;
+import org.cipres.treebase.TreebaseIDString;
+import org.cipres.treebase.domain.matrix.Matrix;
+import org.cipres.treebase.domain.study.Study;
+import org.cipres.treebase.domain.tree.PhyloTree;
+import org.springframework.web.servlet.ModelAndView;
+import org.springframework.web.servlet.mvc.Controller;
+
+/**
+ * @author rvosa
+ *
+ */
+public class AnyObjectAsRDFController implements Controller {
+
+ public ModelAndView handleRequest(HttpServletRequest request,
+ HttpServletResponse response) throws Exception {
+ NamespacedGUID namespacedGUID = new NamespacedGUID(request.getParameter("namespacedGUID"));
+ TreebaseIDString treebaseIDString = null;
+ request.setAttribute("hasWebPage", false);
+ request.setAttribute("hasNexus", false);
+ request.setAttribute("hasNeXML", false);
+ request.setAttribute("hasRdf", false);
+ try {
+ treebaseIDString = namespacedGUID.getTreebaseIDString();
+ } catch ( Exception e ) {
+ e.printStackTrace();
+ }
+ if ( null != treebaseIDString ) {
+ if ( null != treebaseIDString.getTypePrefix() ) {
+ Class<?> theClass = TreebaseIDString.getClassForPrefix(treebaseIDString.getTypePrefix());
+ if ( null != theClass ) {
+ if ( theClass.isAssignableFrom(PhyloTree.class)
+ || theClass.isAssignableFrom(Matrix.class)
+ || theClass.isAssignableFrom(Study.class) ) {
+ request.setAttribute("hasWebPage", true);
+ request.setAttribute("hasNexus", true);
+ request.setAttribute("hasNeXML", true);
+ request.setAttribute("hasRdf", true);
+ }
+ }
+ }
+ }
+ request.getSession().setAttribute("namespacedGUID", namespacedGUID.toString());
+ // <c:set var="baseURL" value="http://localhost:8080/treebase-web/PhyloWS"/>
+ StringBuffer url = new StringBuffer("http://");
+ url
+ .append(request.getServerName())
+ .append(':')
+ .append(request.getServerPort())
+ .append("/treebase-web/PhyloWS");
+ request.getSession().setAttribute("baseURL", url.toString());
+ return new ModelAndView("anyObjectAsRDF");
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-25 02:26:46
|
Revision: 98
http://treebase.svn.sourceforge.net/treebase/?rev=98&view=rev
Author: rvos
Date: 2009-06-25 02:26:45 +0000 (Thu, 25 Jun 2009)
Log Message:
-----------
Added NeXML->RDF serialization
Modified Paths:
--------------
trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AbstractDownloadController.java
Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AbstractDownloadController.java
===================================================================
--- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AbstractDownloadController.java 2009-06-24 04:50:43 UTC (rev 97)
+++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/AbstractDownloadController.java 2009-06-25 02:26:45 UTC (rev 98)
@@ -15,8 +15,11 @@
protected String mFormatParameter = "format";
protected static final int FORMAT_NEXUS = 1;
protected static final int FORMAT_NEXML = 2;
+ protected static final int FORMAT_RDF = 3;
private NexusService mNexmlService;
+ private NexusService mRdfaService;
private static String mNexmlContentType = "application/xml";
+ private static String mRdfContentType = "application/rdf+xml";
/**
*
@@ -29,6 +32,9 @@
if ( requestedFormat.equalsIgnoreCase("nexml") ) {
return FORMAT_NEXML;
}
+ else if ( requestedFormat.equalsIgnoreCase("rdf") ) {
+ return FORMAT_RDF;
+ }
else {
return FORMAT_NEXUS; // default
}
@@ -92,6 +98,9 @@
if ( getFormat(request) == FORMAT_NEXML ) {
WebUtil.downloadFile(response, downloadDirName, fileName, mNexmlContentType);
}
+ else if ( getFormat(request) == FORMAT_RDF ) {
+ WebUtil.downloadFile(response, downloadDirName, fileName, mRdfContentType);
+ }
else {
WebUtil.downloadFile(response, downloadDirName, fileName);
}
@@ -116,4 +125,12 @@
mNexmlService = nexmlService;
}
+ public NexusService getRdfaService() {
+ return mRdfaService;
+ }
+
+ public void setRdfaService(NexusService rdfaService) {
+ mRdfaService = rdfaService;
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 22:18:29
|
Revision: 92
http://treebase.svn.sourceforge.net/treebase/?rev=92&view=rev
Author: rvos
Date: 2009-06-24 01:59:11 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Added nexml maven repository (http://nexml-dev.nescent.org/.m2/repository/) and dependency on nexml.jar to treebase-core pom.xml
Modified Paths:
--------------
trunk/treebase-web/pom.xml
Modified: trunk/treebase-web/pom.xml
===================================================================
--- trunk/treebase-web/pom.xml 2009-06-24 01:57:37 UTC (rev 91)
+++ trunk/treebase-web/pom.xml 2009-06-24 01:59:11 UTC (rev 92)
@@ -112,7 +112,12 @@
</plugins>
</build>
<!-- already defined in parent pom.xml -->
- <repositories>
+ <repositories>
+ <repository>
+ <id>m2.nexml.repos</id>
+ <name>NeXML Remote Repository</name>
+ <url>http://nexml-dev.nescent.org/.m2/repository/</url>
+ </repository>
<repository>
<id>m2.remote.repos</id>
<name>Maven 2 Remote Repository</name>
@@ -135,6 +140,12 @@
</pluginRepositories>
<dependencies>
+
+ <dependency>
+ <groupId>org.nexml.model</groupId>
+ <artifactId>nexml</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.cipres.treebase</groupId>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 04:51:41
|
Revision: 97
http://treebase.svn.sourceforge.net/treebase/?rev=97&view=rev
Author: rvos
Date: 2009-06-24 04:50:43 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Re-arranged download icons to match ordering in other tabs
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/study/matrices.jsp
Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/study/matrices.jsp
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/study/matrices.jsp 2009-06-24 03:23:49 UTC (rev 96)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/search/study/matrices.jsp 2009-06-24 04:50:43 UTC (rev 97)
@@ -64,38 +64,38 @@
</c:url>
<a href="${taxaURL}">View Taxa</a>
</display:column>
-
+
<display:column
sortable="false"
class="iconColumn"
headerClass="iconColumn">
- <c:url value="/search/downloadANexusFile.html" var="originalMatrixURL">
+ <c:url value="/search/downloadAMatrix.html" var="newMatrixURL">
<c:param name="id">${study.id}</c:param>
- <c:param name="matrixid">${matrix.id}</c:param>
+ <c:param name="matrixid">${matrix.id}</c:param>
</c:url>
- <a href="${originalMatrixURL}">
+ <a href="${newMatrixURL}">
<img
class="iconButton"
- src="<fmt:message key="icons.download.original"/>"
- title="<fmt:message key="download.original"/>"
- alt="<fmt:message key="download.original"/>"/>
+ src="<fmt:message key="icons.download.reconstructed"/>"
+ title="<fmt:message key="download.reconstructedfile"/>"
+ alt="<fmt:message key="download.reconstructedfile"/>"/>
</a>
- </display:column>
-
+ </display:column>
+
<display:column
sortable="false"
class="iconColumn"
headerClass="iconColumn">
- <c:url value="/search/downloadAMatrix.html" var="newMatrixURL">
+ <c:url value="/search/downloadANexusFile.html" var="originalMatrixURL">
<c:param name="id">${study.id}</c:param>
- <c:param name="matrixid">${matrix.id}</c:param>
+ <c:param name="matrixid">${matrix.id}</c:param>
</c:url>
- <a href="${newMatrixURL}">
+ <a href="${originalMatrixURL}">
<img
class="iconButton"
- src="<fmt:message key="icons.download.reconstructed"/>"
- title="<fmt:message key="download.reconstructedfile"/>"
- alt="<fmt:message key="download.reconstructedfile"/>"/>
+ src="<fmt:message key="icons.download.original"/>"
+ title="<fmt:message key="download.original"/>"
+ alt="<fmt:message key="download.original"/>"/>
</a>
</display:column>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 03:23:50
|
Revision: 96
http://treebase.svn.sourceforge.net/treebase/?rev=96&view=rev
Author: rvos
Date: 2009-06-24 03:23:49 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Added nexml jar as runtime tomcat dependency
Modified Paths:
--------------
trunk/treebase-web/.classpath
Modified: trunk/treebase-web/.classpath
===================================================================
--- trunk/treebase-web/.classpath 2009-06-24 03:23:01 UTC (rev 95)
+++ trunk/treebase-web/.classpath 2009-06-24 03:23:49 UTC (rev 96)
@@ -1,108 +1,113 @@
-<classpath>
- <classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
- <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
- <classpathentry kind="output" path="target/classes"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="var" path="M2_REPO/org/acegisecurity/acegi-security/1.0.1/acegi-security-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/>
- <classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/apple/apple-java-extensions/1.2/apple-java-extensions-1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/c3p0/c3p0/0.9.1.2/c3p0-0.9.1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.5/commons-digester-1.5.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.3/commons-io-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-api/2.1.1/cxf-api-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-common-schemas/2.1.1/cxf-common-schemas-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-common-utilities/2.1.1/cxf-common-utilities-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-soap/2.1.1/cxf-rt-bindings-soap-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-xml/2.1.1/cxf-rt-bindings-xml-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-core/2.1.1/cxf-rt-core-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-databinding-jaxb/2.1.1/cxf-rt-databinding-jaxb-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-jaxws/2.1.1/cxf-rt-frontend-jaxws-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-simple/2.1.1/cxf-rt-frontend-simple-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http/2.1.1/cxf-rt-transports-http-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http-jetty/2.1.1/cxf-rt-transports-http-jetty-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-addr/2.1.1/cxf-rt-ws-addr-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-tools-common/2.1.1/cxf-tools-common-2.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/ibm/db2jcc/2.6.80/db2jcc-2.6.80.jar"/>
- <classpathentry kind="var" path="M2_REPO/ibm/db2jcc_license_cu/2.6.80/db2jcc_license_cu-2.6.80.jar"/>
- <classpathentry kind="var" path="M2_REPO/displaytag/displaytag/1.1.1/displaytag-1.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/directwebremoting/dwr/2.0.rc2/dwr-2.0.rc2.jar"/>
- <classpathentry kind="var" path="M2_REPO/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.1.GA/ejb3-persistence-1.0.1.GA.jar"/>
- <classpathentry kind="var" path="M2_REPO/com/sun/xml/fastinfoset/FastInfoset/1.2.2/FastInfoset-1.2.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/cipres/framework/1.0.1/framework-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.3/geronimo-javamail_1.4_spec-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jaxws_2.1_spec/1.0/geronimo-jaxws_2.1_spec-1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/geronimo-servlet_2.5_spec-1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.3.1.GA/hibernate-annotations-3.3.1.GA.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar"/>
- <classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.7.1/hsqldb-1.7.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/com/lowagie/itext/1.3/itext-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/jama/jama/1.0.1/jama-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar"/>
- <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-xjc/2.1.6/jaxb-xjc-2.1.6.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/jcl104-over-slf4j/1.4.2/jcl104-over-slf4j-1.4.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/jdom/jdom/1.1/jdom-1.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.jar"/>
- <classpathentry kind="var" path="M2_REPO/jmock/jmock/1.0.1/jmock-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/jsci/jsci/mesquite/jsci-mesquite.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
- <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar"/>
- <classpathentry kind="var" path="M2_REPO/logkit/logkit/1.0.1/logkit-1.0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4/mail-1.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/mesquite/mesquite/2.01.tb/mesquite-2.01.tb.jar"/>
- <classpathentry kind="var" path="M2_REPO/mrj/MRJToolkitStubs/1.0/MRJToolkitStubs-1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/pal/pal/mesquite-201/pal-mesquite-201.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/com/sun/xml/messaging/saaj/saaj-impl/1.3/saaj-impl-1.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/opensymphony/sitemesh/2.3/sitemesh-2.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.4.2/slf4j-log4j12-1.4.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring/2.0.7/spring-2.0.7.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring-beans/2.0.8/spring-beans-2.0.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring-context/2.0.8/spring-context-2.0.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring-core/2.0.8/spring-core-2.0.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring-mock/2.0.7/spring-mock-2.0.7.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/springframework/spring-web/2.0.8/spring-web-2.0.8.jar"/>
- <classpathentry kind="var" path="M2_REPO/springmodules/springmodules-validator/0.1/springmodules-validator-0.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/taglibs/standard/1.1.2/standard-1.1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/taglibs/string/1.1.0/string-1.1.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/struts/struts/1.2.9/struts-1.2.9.jar"/>
- <classpathentry kind="var" path="M2_REPO/struts-menu/struts-menu/2.3/struts-menu-2.3.jar"/>
- <classpathentry kind="var" path="M2_REPO/tolbaseclasses/tolbaseclasses/mesquite/tolbaseclasses-mesquite.jar"/>
- <classpathentry kind="src" path="/treebase-core"/>
- <classpathentry kind="var" path="M2_REPO/velocity/velocity/1.4/velocity-1.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/velocity/velocity-dep/1.4/velocity-dep-1.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar"/>
- <classpathentry kind="var" path="M2_REPO/xalan/xalan/2.7.0/xalan-2.7.0.jar"/>
- <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
- <classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/nexml/model/nexml/1.0-SNAPSHOT/nexml-1.0-SNAPSHOT.jar"/>
-</classpath>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry excluding="**/*.java" kind="src" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/org/acegisecurity/acegi-security/1.0.1/acegi-security-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/apple/apple-java-extensions/1.2/apple-java-extensions-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/avalon-framework/avalon-framework/4.1.3/avalon-framework-4.1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/c3p0/c3p0/0.9.1.2/c3p0-0.9.1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/1.5/commons-digester-1.5.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.3/commons-io-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.3/commons-lang-2.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1/commons-logging-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-api/2.1.1/cxf-api-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-common-schemas/2.1.1/cxf-common-schemas-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-common-utilities/2.1.1/cxf-common-utilities-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-soap/2.1.1/cxf-rt-bindings-soap-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-xml/2.1.1/cxf-rt-bindings-xml-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-core/2.1.1/cxf-rt-core-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-databinding-jaxb/2.1.1/cxf-rt-databinding-jaxb-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-jaxws/2.1.1/cxf-rt-frontend-jaxws-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-simple/2.1.1/cxf-rt-frontend-simple-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http/2.1.1/cxf-rt-transports-http-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http-jetty/2.1.1/cxf-rt-transports-http-jetty-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-addr/2.1.1/cxf-rt-ws-addr-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-tools-common/2.1.1/cxf-tools-common-2.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/ibm/db2jcc/2.6.80/db2jcc-2.6.80.jar"/>
+ <classpathentry kind="var" path="M2_REPO/ibm/db2jcc_license_cu/2.6.80/db2jcc_license_cu-2.6.80.jar"/>
+ <classpathentry kind="var" path="M2_REPO/displaytag/displaytag/1.1.1/displaytag-1.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/directwebremoting/dwr/2.0.rc2/dwr-2.0.rc2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.1.GA/ejb3-persistence-1.0.1.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/fastinfoset/FastInfoset/1.2.2/FastInfoset-1.2.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/cipres/framework/1.0.1/framework-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.3/geronimo-javamail_1.4_spec-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-jaxws_2.1_spec/1.0/geronimo-jaxws_2.1_spec-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/geronimo-servlet_2.5_spec-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.3.1.GA/hibernate-annotations-3.3.1.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar"/>
+ <classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.7.1/hsqldb-1.7.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/lowagie/itext/1.3/itext-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jama/jama/1.0.1/jama-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-xjc/2.1.6/jaxb-xjc-2.1.6.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/jcl104-over-slf4j/1.4.2/jcl104-over-slf4j-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jdom/jdom/1.1/jdom-1.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jmock/jmock/1.0.1/jmock-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jsci/jsci/mesquite/jsci-mesquite.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar"/>
+ <classpathentry kind="var" path="M2_REPO/logkit/logkit/1.0.1/logkit-1.0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4/mail-1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/mesquite/mesquite/2.01.tb/mesquite-2.01.tb.jar"/>
+ <classpathentry kind="var" path="M2_REPO/mrj/MRJToolkitStubs/1.0/MRJToolkitStubs-1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/pal/pal/mesquite-201/pal-mesquite-201.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/com/sun/xml/messaging/saaj/saaj-impl/1.3/saaj-impl-1.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/opensymphony/sitemesh/2.3/sitemesh-2.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.4.2/slf4j-log4j12-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring/2.0.7/spring-2.0.7.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-beans/2.0.8/spring-beans-2.0.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-context/2.0.8/spring-context-2.0.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-core/2.0.8/spring-core-2.0.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-mock/2.0.7/spring-mock-2.0.7.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-web/2.0.8/spring-web-2.0.8.jar"/>
+ <classpathentry kind="var" path="M2_REPO/springmodules/springmodules-validator/0.1/springmodules-validator-0.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/taglibs/standard/1.1.2/standard-1.1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/taglibs/string/1.1.0/string-1.1.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/struts/struts/1.2.9/struts-1.2.9.jar"/>
+ <classpathentry kind="var" path="M2_REPO/struts-menu/struts-menu/2.3/struts-menu-2.3.jar"/>
+ <classpathentry kind="var" path="M2_REPO/tolbaseclasses/tolbaseclasses/mesquite/tolbaseclasses-mesquite.jar"/>
+ <classpathentry kind="src" path="/treebase-core"/>
+ <classpathentry kind="var" path="M2_REPO/velocity/velocity/1.4/velocity-1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/velocity/velocity-dep/1.4/velocity-dep-1.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xalan/xalan/2.7.0/xalan-2.7.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/nexml/model/nexml/1.0-SNAPSHOT/nexml-1.0-SNAPSHOT.jar">
+ <attributes>
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 03:23:01
|
Revision: 95
http://treebase.svn.sourceforge.net/treebase/?rev=95&view=rev
Author: rvos
Date: 2009-06-24 03:23:01 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Removing nexml.jar: now stored in maven repository.
Removed Paths:
-------------
trunk/treebase-core/lib/nexml.jar
Deleted: trunk/treebase-core/lib/nexml.jar
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 03:22:32
|
Revision: 94
http://treebase.svn.sourceforge.net/treebase/?rev=94&view=rev
Author: rvos
Date: 2009-06-24 03:22:30 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Retrieving (and throwing away) created Annotation (this in an empty to localize a NoSuchMethod exception)
Modified Paths:
--------------
trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java
Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java
===================================================================
--- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-24 02:47:09 UTC (rev 93)
+++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-24 03:22:30 UTC (rev 94)
@@ -15,6 +15,7 @@
import org.cipres.treebase.domain.study.Study;
import org.cipres.treebase.domain.taxon.TaxonLabelHome;
import org.nexml.model.Annotatable;
+import org.nexml.model.Annotation;
import org.nexml.model.Document;
import org.nexml.model.OTU;
import org.nexml.model.OTUs;
@@ -74,7 +75,7 @@
* @param annotatable
*/
protected void attachAnnotation(String key,String value,URI namespace,Annotatable annotatable) {
- annotatable.addAnnotationValue(key, namespace, value); // FIXME! Attaches meta element as last child
+ Annotation annotation = annotatable.addAnnotationValue(key, namespace, value); // FIXME! Attaches meta element as last child
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 02:50:30
|
Revision: 89
http://treebase.svn.sourceforge.net/treebase/?rev=89&view=rev
Author: rvos
Date: 2009-06-24 01:52:49 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Added maven repo path to nexml jar
Modified Paths:
--------------
trunk/treebase-core/.classpath
Modified: trunk/treebase-core/.classpath
===================================================================
--- trunk/treebase-core/.classpath 2009-06-23 20:07:19 UTC (rev 88)
+++ trunk/treebase-core/.classpath 2009-06-24 01:52:49 UTC (rev 89)
@@ -77,5 +77,6 @@
<classpathentry kind="var" path="M2_REPO/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar"/>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar"/>
<classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar"/>
- <classpathentry kind="var" path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/nexml/model/nexml/1.0-SNAPSHOT/nexml-1.0-SNAPSHOT.jar"/>
</classpath>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 02:50:28
|
Revision: 90
http://treebase.svn.sourceforge.net/treebase/?rev=90&view=rev
Author: rvos
Date: 2009-06-24 01:54:04 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Added nexml maven repository (http://nexml-dev.nescent.org/.m2/repository/) and dependency on nexml.jar to treebase-core pom.xml
Modified Paths:
--------------
trunk/treebase-core/pom.xml
Modified: trunk/treebase-core/pom.xml
===================================================================
--- trunk/treebase-core/pom.xml 2009-06-24 01:52:49 UTC (rev 89)
+++ trunk/treebase-core/pom.xml 2009-06-24 01:54:04 UTC (rev 90)
@@ -61,8 +61,13 @@
</build>
<!-- already defined in parent pom.xml -->
- <repositories>
- <repository>
+ <repositories>
+ <repository>
+ <id>m2.nexml.repos</id>
+ <name>NeXML Remote Repository</name>
+ <url>http://nexml-dev.nescent.org/.m2/repository/</url>
+ </repository>
+ <repository>
<id>m2.remote.repos</id>
<name>Maven 2 Remote Repository</name>
<url>http://8ball.sdsc.edu:9999/maven2</url>
@@ -114,6 +119,12 @@
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nexml.model</groupId>
+ <artifactId>nexml</artifactId>
+ <version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 02:47:10
|
Revision: 93
http://treebase.svn.sourceforge.net/treebase/?rev=93&view=rev
Author: rvos
Date: 2009-06-24 02:47:09 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Refactored to work around spurious eclipse errors.
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/WEB-INF/pages/analysisList.jsp
Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/analysisList.jsp
===================================================================
--- trunk/treebase-web/src/main/webapp/WEB-INF/pages/analysisList.jsp 2009-06-24 01:59:11 UTC (rev 92)
+++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/analysisList.jsp 2009-06-24 02:47:09 UTC (rev 93)
@@ -28,7 +28,9 @@
</a>
Analysis ${status_analysis.count}
</h2>
- <fieldset
+
+ <%-- the block below worked, but gave spurious error messages in eclipse --%>
+ <%--fieldset
style="padding-left:20px;padding-right:20px;background-color:#E5E5E5;border:none"
id="analysis<c:out value="${analysisCommand.id}"/>">
<c:if test="${editable}">
@@ -125,7 +127,137 @@
<c:if test="${editable}">
</fieldset>
</form>
+ </c:if--%>
+
+ <fieldset
+ style="padding-left:20px;padding-right:20px;background-color:#E5E5E5;border:none"
+ id="analysis<c:out value="${analysisCommand.id}"/>">
+
+ <!-- EDITABLE -->
+ <c:if test="${editable}">
+ <form
+ onsubmit="return TreeBASE.analysisEditor.submitIfNotReady('${publicationState}')"
+ method="post"
+ action="/treebase-web/user/analysisForm.html?id=<c:out value="${analysisCommand.id}"/>">
+ <fieldset style="background-color:white">
+ <legend>
+ Analysis details
+ <a
+ href="#"
+ class="openHelp"
+ onclick="openHelp('analysisDetailsViewEdit')">
+ <img class="iconButton" alt="help" src="<fmt:message key="icons.help"/>" />
+ </a>
+ </legend>
+ <table width="100%" cellpadding="2px" cellspacing="0">
+ <tr>
+ <td>
+ <label class="software" for="analysis${status_analysis.count}name">Name</label>
+ </td>
+ <td style="width:100%">
+ <input
+ readonly="readonly"
+ type="text"
+ class="disabled software textCell"
+ style="width:100%"
+ name="name"
+ id="analysis${status_analysis.count}name"
+ value="<c:out value="${analysisCommand.name}"/>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label class="software" for="analysis${status_analysis.count}notes">Notes</label>
+ </td>
+ <td>
+ <input
+ readonly="readonly"
+ type="text"
+ class="disabled software textCell"
+ style="width:100%"
+ name="notes"
+ id="analysis${status_analysis.count}notes"
+ value="<c:out value="${analysisCommand.notes}"/>"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align:right">
+ <input type="hidden" name="redirect" value="${redirect}"/>
+ <input type="submit" name="Update" value="Update" style="display:none" />
+ <input type="submit" name="Delete" value="Delete" style="display:none" />
+ <c:if test="${empty analysisCommand.notes && empty analysisCommand.name}">
+ Edit analysis details by clicking this button ->
+ </c:if>
+ <a
+ href="#"
+ onclick="return TreeBASE.analysisEditor.editAnalysis(this,${status_analysis.count})"
+ title="Edit analysis details">
+ <img
+ src="<fmt:message
+ key="icons.edit"/>"
+ class="iconButton"
+ width="16"
+ height="16"
+ alt="Edit"
+ style="vertical-align:middle"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </form>
</c:if>
+ <!-- EO EDITABLE -->
+
+ <!-- NOT EDITABLE -->
+ <c:if test="${!editable}">
+ <fieldset
+ style="padding-left:20px;padding-right:20px;background-color:#E5E5E5;border:none"
+ id="analysis<c:out value="${analysisCommand.id}"/>">
+ <legend>
+ Analysis details
+ </legend>
+ <c:if test="${not empty analysisCommand.name || not empty analysisCommand.notes}">
+ <table width="100%" cellpadding="2px" cellspacing="0">
+ <c:if test="${not empty analysisCommand.name}">
+ <tr>
+ <td>
+ <label class="software" for="analysis${status_analysis.count}name">Name</label>
+ </td>
+ <td style="width:100%">
+ <input
+ readonly="readonly"
+ type="text"
+ class="disabled software textCell"
+ style="width:100%;background-color:#E5E5E5"
+ name="name"
+ id="analysis${status_analysis.count}name"
+ value="<c:out value="${analysisCommand.name}"/>"/>
+ </td>
+ </tr>
+ </c:if>
+ <c:if test="${not empty analysisCommand.notes}">
+ <tr>
+ <td>
+ <label class="software" for="analysis${status_analysis.count}notes">Notes</label>
+ </td>
+ <td>
+ <input
+ readonly="readonly"
+ type="text"
+ class="disabled software textCell"
+ style="width:100%;background-color:#E5E5E5"
+ name="notes"
+ id="analysis${status_analysis.count}notes"
+ value="<c:out value="${analysisCommand.notes}"/>"/>
+ </td>
+ </tr>
+ </c:if>
+ </table>
+ </c:if>
+ </fieldset>
+ </c:if>
+ <!-- EO NOT EDITABLE -->
<div id="${AnalysisId}" style="display:block">
@@ -170,9 +302,7 @@
</form>
</div>
</c:if>
-
</fieldset>
-
</c:forEach>
<c:if test="${editable}">
@@ -200,4 +330,3 @@
</form>
</div>
</c:if>
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <rv...@us...> - 2009-06-24 02:17:55
|
Revision: 91
http://treebase.svn.sourceforge.net/treebase/?rev=91&view=rev
Author: rvos
Date: 2009-06-24 01:57:37 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Added maven repo path to nexml jar
Modified Paths:
--------------
trunk/treebase-web/.classpath
Modified: trunk/treebase-web/.classpath
===================================================================
--- trunk/treebase-web/.classpath 2009-06-24 01:54:04 UTC (rev 90)
+++ trunk/treebase-web/.classpath 2009-06-24 01:57:37 UTC (rev 91)
@@ -104,4 +104,5 @@
<classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
<classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/nexml/model/nexml/1.0-SNAPSHOT/nexml-1.0-SNAPSHOT.jar"/>
</classpath>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mjd...@us...> - 2009-06-23 20:08:11
|
Revision: 88
http://treebase.svn.sourceforge.net/treebase/?rev=88&view=rev
Author: mjdominus
Date: 2009-06-23 20:07:19 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
improved progress meter reports percentage done
Modified Paths:
--------------
trunk/treebase-core/src/main/perl/dump/sqldump
Modified: trunk/treebase-core/src/main/perl/dump/sqldump
===================================================================
--- trunk/treebase-core/src/main/perl/dump/sqldump 2009-06-23 19:54:51 UTC (rev 87)
+++ trunk/treebase-core/src/main/perl/dump/sqldump 2009-06-23 20:07:19 UTC (rev 88)
@@ -74,11 +74,10 @@
$dbh->{LongReadLen} = $maxlen; # Handle LOBs up to $maxlen bytes
for my $table ( @tables ) {
- # only using these two functions once, so for clarity as to where they
- # originate let's use the fully qualified names.
+
my @names = CIPRES::TreeBase::DBIUtil::get_colnames($dbh, $table);
my @types = CIPRES::TreeBase::DBIUtil::get_coltypes($dbh, $table);
-
+
# instantiate a RecDumper object, which will format a row-as-array
# into an insert statement
my $dumper = CIPRES::TreeBase::RecDumper->new(
@@ -168,11 +167,17 @@
# if --progress is provided, print out progress counter
if ($with_progress_meter) {
+ my ($total_records) = @{$dbh->selectcol_arrayref(qq{select count(*) from $table})};
+ $total_records = $nrecs if defined($nrecs) && $nrecs < $total_records;
my $count = 0;
+ my $old_percent = "";
while ( $row = $sth->fetchrow_arrayref ) {
++$count;
$dumper->rec(@$row);
- print STDERR "\r$count" if $count % 1000 == 0;
+ my $percent = int(0.5 + $count / $total_records * 100);
+ print STDERR "\r$percent%" if $percent ne $old_percent;
+ $old_percent = $percent;
+ last if defined($nrecs) && (--$nrecs == 0);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mjd...@us...> - 2009-06-23 19:55:02
|
Revision: 87
http://treebase.svn.sourceforge.net/treebase/?rev=87&view=rev
Author: mjdominus
Date: 2009-06-23 19:54:51 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
add --maxlen option and increase size of dumpable records to default to 5MB
Modified Paths:
--------------
trunk/treebase-core/src/main/perl/dump/sqldump
Modified: trunk/treebase-core/src/main/perl/dump/sqldump
===================================================================
--- trunk/treebase-core/src/main/perl/dump/sqldump 2009-06-23 19:46:27 UTC (rev 86)
+++ trunk/treebase-core/src/main/perl/dump/sqldump 2009-06-23 19:54:51 UTC (rev 87)
@@ -17,6 +17,8 @@
my $test = 0; # test run: delete produced files
my $nrecs; # max number of recs per table
my $where = ""; # WHERE clause to select dumped records
+my $maxlen = 5 * 1024 * 1024; # Maximum field length: 5 MB by default
+
# get command line options, see Getopt::Long
GetOptions(
'name-after-table' => \$name_file_after_table,
@@ -28,6 +30,7 @@
'dsn=s' => \$ENV{'TREEBASE_DB_DSN'},
'table=s' => \@tables,
'zip' => \$zip,
+ 'maxlen=i' => \$maxlen,
'test' => \$test,
'nrecs=i' => \$nrecs,
'where=s' => \$where,
@@ -68,6 +71,7 @@
{
# create database handle
my $dbh = get_handle();
+ $dbh->{LongReadLen} = $maxlen; # Handle LOBs up to $maxlen bytes
for my $table ( @tables ) {
# only using these two functions once, so for clarity as to where they
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|