diff --git a/target/VOSpaceBackend-0.0.war b/target/VOSpaceBackend-0.0.war new file mode 100644 index 0000000000000000000000000000000000000000..77ad3ac45a482f971da253ccd47045c2edf7c2e3 Binary files /dev/null and b/target/VOSpaceBackend-0.0.war differ diff --git a/target/VOSpaceBackend-0.0/META-INF/context.xml b/target/VOSpaceBackend-0.0/META-INF/context.xml new file mode 100644 index 0000000000000000000000000000000000000000..63add891fa224dec619ec4b794f866c1ab43d52e --- /dev/null +++ b/target/VOSpaceBackend-0.0/META-INF/context.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ +--> + + <Context path="/vospaceBackend" docBase="vospace" + crossContext="true" reloadable="true" debug="1"> + + <Resource name="jdbc/vosbackend" + auth="Container" + type="javax.sql.DataSource" + username="vosbackadmin" password="Peper0ne" + driverClassName="com.mysql.jdbc.Driver" + url="jdbc:mysql://localhost/vosbackend" + maxActive="10" + maxWait="-1" + maxIdle="4" /> + </Context> diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..774a784e3ea00cfd6a93772cae449520975dc299 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class new file mode 100644 index 0000000000000000000000000000000000000000..9140df06707e06f3e36adea97f933ae90140c590 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class new file mode 100644 index 0000000000000000000000000000000000000000..d4a29ed0e453af14d7947a9fa1ed219adad92554 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class new file mode 100644 index 0000000000000000000000000000000000000000..41a3883e9e1f5c4637aad21d7a0c52b248b0ec0a Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties new file mode 100644 index 0000000000000000000000000000000000000000..b78f712f68c07feee6c2726a84db4e3e2020c528 --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties @@ -0,0 +1,39 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ + + +# his properties file contains the messages related to error +# cases specific to the vospace backend application. + +NO_VOSPACE_BACKEND_IMPLEMENTATION_SPECIFIED="VOSpace Backend Implementation NOT configured" +CLASS_NOT_FOUND="Required class {0} not found" +UNABLE_TO_INSTANTIATE="Unable to create an instance of class {0}" +UNABLE_TO_ACCESS="Unable to access class {0}" +DATABASE_DRIVER_NOT_FOUND="Unable to get Database data source. Check context.xml" +UNABLE_TO_GET_DB_CONNECTION="Unable to get the database connection" +ERROR_DISABLING_DB_AUTOCOMMIT="There was an error disabling the database autocommit" +DB_OPERATION_NOT_RECOGNIZED="File metadata database operation not recognized. Admitted only SET, GET, DELETE" +UNABLE_TO_READ_PROPERTIES="Unable to read properties file {0}" +PROPERTY_NOT_FOUND="Property {0} not found in file {1}" diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class new file mode 100644 index 0000000000000000000000000000000000000000..65caca49d275df576c977e9ea4a4456049e00c16 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class new file mode 100644 index 0000000000000000000000000000000000000000..92fd2511384fa23302418ccb9a2de49b879e0686 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..7848559ee3d76ccbc51dd866a3c010d7b3d2488f Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..938ad8f906e60d816b211aed9d82e10136e17b53 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class new file mode 100644 index 0000000000000000000000000000000000000000..808688224292deb777d2d96d24967dc042367e22 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class new file mode 100644 index 0000000000000000000000000000000000000000..ac20f90701a90b0458c618dc745a09ade5c13849 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class new file mode 100644 index 0000000000000000000000000000000000000000..3781bb45204605f680a2d7dc39662cca4adec482 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class new file mode 100644 index 0000000000000000000000000000000000000000..2b36c1467b999d029bcb9c436a2f0e5f127151a2 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class new file mode 100644 index 0000000000000000000000000000000000000000..cc0aff90845652fe905c3dc35d512e7f8b20f4cd Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class new file mode 100644 index 0000000000000000000000000000000000000000..f4152defa616df6b1f7d947978bd5c816e3b3c90 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/log4j.properties b/target/VOSpaceBackend-0.0/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000000000000000000000000000000000000..20cc7b112a18561bf885785f93613a8e7654c14c --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/classes/log4j.properties @@ -0,0 +1,24 @@ +# ----------------------------- +# Appender to write to console. +# ----------------------------- +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.Target=System.out +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n +log4j.appender.CONSOLE.file =${catalina.base}/logs/regularLogging.log +log4j.appender.CONSOLE.MaxFileSize=100KB + +# --------------------------------------------- +# Appender to write to application log. +# --------------------------------------------- +log4j.appender.APPLICATIONLOG=org.apache.log4j.DailyRollingFileAppender +log4j.appender.APPLICATIONLOG.File=${catalina.base}/logs/vospace_backend.log +log4j.appender.APPLICATIONLOG.DatePattern='.'yyyy-MM-dd +#log4j.appender.APPLICATIONLOG.File=/home/devphp/public_html/restletframework/logs/APPLICATION-LOG.log +log4j.appender.APPLICATIONLOG.Encoding=UTF-8 +log4j.appender.APPLICATIONLOG.layout=org.apache.log4j.PatternLayout +log4j.appender.APPLICATIONLOG.layout.ConversionPattern=%d [%5p]: %m%n + +# Turn off root logging. +#log4j.rootLogger=info, APPLICATIONLOG +log4j.rootLogger=DEBUG, CONSOLE , APPLICATIONLOG diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/VOSpace.properties b/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/VOSpace.properties new file mode 100644 index 0000000000000000000000000000000000000000..43a544bdaefa804c553c05fb074c19773cd15848 --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/VOSpace.properties @@ -0,0 +1,32 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ + +# VOSpace Backend Implementation to be used +it.inaf.oats.vospacebackendimplementation.VOSpaceBackendImpl = it.inaf.oats.vospacebackend.implementation.VOSpaceBackPosix + +# VOSpace with posix backend Document Root +fs.posix.document.root = /home/bertocco/vospace +# VOSpace with posix backend Temporary storage area +fs.posix.tmp.storage.root = /tmp/vospace diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/license.txt b/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/license.txt new file mode 100644 index 0000000000000000000000000000000000000000..716b2c96556af5c5d541a569177b8d59c76172ea --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/classes/resources/license.txt @@ -0,0 +1,24 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ \ No newline at end of file diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/sql/create_vospace_backend.sql b/target/VOSpaceBackend-0.0/WEB-INF/classes/sql/create_vospace_backend.sql new file mode 100644 index 0000000000000000000000000000000000000000..db455548f1e0da1ee2132060551f15832bca6aad --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/classes/sql/create_vospace_backend.sql @@ -0,0 +1,50 @@ + +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ +CREATE DATABASE vosbackend; + +use vosbackend; + +grant all on vosbackend.* to 'vosbackadmin' identified by 'Peper0ne'; + +CREATE TABLE StoredFiles +( + fileID int NOT NULL AUTO_INCREMENT, + original_file_name varchar(255) NOT NULL, + stored_file_name varchar(36) NOT NULL, + md5_checksum varchar(36) NOT NULL, + relative_path varchar(8), + PRIMARY KEY (fileID) +) ENGINE=InnoDB; + +ALTER TABLE StoredFiles ADD INDEX f_name (original_file_name); + +CREATE TABLE RequestedPuts +( + storedFileID varchar(255) NOT NULL, + vosuri varchar(255) NOT NULL, + PRIMARY KEY (storedFileID) +) ENGINE=InnoDB; + diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/test/ServiceTester.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/test/ServiceTester.class new file mode 100644 index 0000000000000000000000000000000000000000..ec788cc122261eec1d739c7141d62113da39eb98 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/test/ServiceTester.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/classes/test/VOSURIParserTest.class b/target/VOSpaceBackend-0.0/WEB-INF/classes/test/VOSURIParserTest.class new file mode 100644 index 0000000000000000000000000000000000000000..0e3f6f3b533e6f5fda9f5fcec5c175f0c2ead2d0 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/classes/test/VOSURIParserTest.class differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/cadcUtil-0.0.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/cadcUtil-0.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..459dd73a7cd91bd2fe1b9c8ecfa738d8764bab6d Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/cadcUtil-0.0.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-codec-1.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-codec-1.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..458d432da88b0efeab640c229903fb5aad274044 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-codec-1.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-fileupload-1.2.2.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-fileupload-1.2.2.jar new file mode 100644 index 0000000000000000000000000000000000000000..131f1924e043df8d10d65c8090508ea2193fd2cc Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-fileupload-1.2.2.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-io-2.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-io-2.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..90035a4fe068e65d42edf621a0ffc78b4b020cdc Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-io-2.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-lang-2.2.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-lang-2.2.jar new file mode 100644 index 0000000000000000000000000000000000000000..b9105611f3aa365712150d611e4affcfb363f2a7 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/commons-lang-2.2.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/fileupload-0.0.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/fileupload-0.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..af0cda226fcab02b7ffdcd8fd9bf9c72dea63bf2 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/fileupload-0.0.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/hamcrest-core-1.1.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/hamcrest-core-1.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..e5149be76e7b4faacb4c5e752065f3b26b2bafc7 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/hamcrest-core-1.1.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-annotations-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-annotations-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..4779188a9f0f306169d566bf7e73570e0bf3e45b Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-annotations-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-core-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-core-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..da2a877f186a999df8fbafaac5c59316d3fb70b4 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-core-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-databind-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-databind-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..e945e5e800666e0c5f99e9571185327f663d73ce Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-databind-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-csv-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-csv-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..f561dc10ff44e60210f04315f508bf76d1843d1c Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-csv-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-smile-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-smile-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..2a6b285190944cd6536619e0caca6aca4af18067 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-smile-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-xml-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-xml-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..8f0fa34d09634e02bda7dc0fe7938b8e58fdb1a2 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-xml-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-yaml-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-yaml-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..7770cb918467a8141c8d169f09042a5112e5f36d Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-dataformat-yaml-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jaxb-annotations-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jaxb-annotations-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..96955b099f125f388ae2d2b81d772c663ed35b8e Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jaxb-annotations-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jsonSchema-2.4.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jsonSchema-2.4.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..25a3a306da4655bebc68d3e64264c8dda1e07ccd Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/jackson-module-jsonSchema-2.4.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/json-20090211.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/json-20090211.jar new file mode 100644 index 0000000000000000000000000000000000000000..ef29094093d39ecf5a50c24fc61f10c8c5b6b195 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/json-20090211.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/json-simple-1.1.1.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/json-simple-1.1.1.jar new file mode 100644 index 0000000000000000000000000000000000000000..dfd5856d0cad81dfe7845ea6ff4d170d8064d7b0 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/json-simple-1.1.1.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/junit-4.10.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/junit-4.10.jar new file mode 100644 index 0000000000000000000000000000000000000000..954851e67d7424440592e8176c4aa034cc46aa85 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/junit-4.10.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/log4j-1.2.17.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/log4j-1.2.17.jar new file mode 100644 index 0000000000000000000000000000000000000000..1d425cf7d7e25f81be64d32c406ff66cfb6c4766 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/log4j-1.2.17.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/mysql-connector-0.0.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/mysql-connector-0.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..cdee6a16689a41061ea9014d5e93519e12c00708 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/mysql-connector-0.0.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..6e67dd67946807419789e896b8715eda7308df99 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.6.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.6.jar new file mode 100644 index 0000000000000000000000000000000000000000..53a436177d3be40c10e08c1c6b83d9ce2af08ceb Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet-2.3.6.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.fileupload-2.1.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.fileupload-2.1.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..22fa178d7f13f107482477df6d8e7e40d6004c1a Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.fileupload-2.1.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.jackson-2.3.6.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.jackson-2.3.6.jar new file mode 100644 index 0000000000000000000000000000000000000000..f8f52278dcae2a94c94175b786f2952260eb8a32 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.jackson-2.3.6.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.json-2.3.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.json-2.3.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..65b66a4e4d16b52b2e56dde37bfc657d9db9d11e Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.json-2.3.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.servlet-2.3.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.servlet-2.3.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..9e28a672e545560e171bba2ff5b53fa268dd096e Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.ext.servlet-2.3.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.lib.org.json-2.0.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.lib.org.json-2.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..543438992fab3d820a1d900d65537347be419d21 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/org.restlet.lib.org.json-2.0.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/snakeyaml-1.13.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/snakeyaml-1.13.jar new file mode 100644 index 0000000000000000000000000000000000000000..453f99fc02986c43cbfd28444ed895b0b1c23221 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/snakeyaml-1.13.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/stax-api-1.0-2.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/stax-api-1.0-2.jar new file mode 100644 index 0000000000000000000000000000000000000000..015169dc71f06832714d21b67970ff8a7970d5b4 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/stax-api-1.0-2.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/stax2-api-3.1.4.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/stax2-api-3.1.4.jar new file mode 100644 index 0000000000000000000000000000000000000000..dded036928902c5832956c9733a1dd03295a3187 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/stax2-api-3.1.4.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/lib/woodstox-core-asl-4.3.0.jar b/target/VOSpaceBackend-0.0/WEB-INF/lib/woodstox-core-asl-4.3.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..f0dd996677d9d4448dda66bdb0ec922acfd00545 Binary files /dev/null and b/target/VOSpaceBackend-0.0/WEB-INF/lib/woodstox-core-asl-4.3.0.jar differ diff --git a/target/VOSpaceBackend-0.0/WEB-INF/web.xml b/target/VOSpaceBackend-0.0/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..38c50b955011099bf85ce708942a498c6c21d32d --- /dev/null +++ b/target/VOSpaceBackend-0.0/WEB-INF/web.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ +--> + +<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> + + <display-name>VOSpace Backend</display-name> + + <servlet> + <servlet-name>VOSpaceBackend</servlet-name> + <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class> + <init-param> + <param-name>org.restlet.application</param-name> + <param-value>it.inaf.oats.vospacebackend.VOSpaceBackendApplication</param-value> + </init-param> + </servlet> + + <servlet-mapping> + <servlet-name>VOSpaceBackend</servlet-name> + <url-pattern>/service/*</url-pattern> + </servlet-mapping> + + </web-app> + diff --git a/target/VOSpaceBackend-0.0/index.html b/target/VOSpaceBackend-0.0/index.html new file mode 100644 index 0000000000000000000000000000000000000000..3bcdeca8b87d2bc54c9d87d54c02f5960f13335c --- /dev/null +++ b/target/VOSpaceBackend-0.0/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <head> + <title>Start Page</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + </head> + <body> + <h1>VOSpace Backend</h1> + </body> +</html> diff --git a/target/classes/.netbeans_automatic_build b/target/classes/.netbeans_automatic_build new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class b/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class new file mode 100644 index 0000000000000000000000000000000000000000..774a784e3ea00cfd6a93772cae449520975dc299 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class b/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class new file mode 100644 index 0000000000000000000000000000000000000000..9140df06707e06f3e36adea97f933ae90140c590 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/VOSpaceBackendResource.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class b/target/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class new file mode 100644 index 0000000000000000000000000000000000000000..d4a29ed0e453af14d7947a9fa1ed219adad92554 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class b/target/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class new file mode 100644 index 0000000000000000000000000000000000000000..41a3883e9e1f5c4637aad21d7a0c52b248b0ec0a Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties b/target/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties new file mode 100644 index 0000000000000000000000000000000000000000..b78f712f68c07feee6c2726a84db4e3e2020c528 --- /dev/null +++ b/target/classes/it/inaf/oats/vospacebackend/exceptions/exceptionMessages.properties @@ -0,0 +1,39 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ + + +# his properties file contains the messages related to error +# cases specific to the vospace backend application. + +NO_VOSPACE_BACKEND_IMPLEMENTATION_SPECIFIED="VOSpace Backend Implementation NOT configured" +CLASS_NOT_FOUND="Required class {0} not found" +UNABLE_TO_INSTANTIATE="Unable to create an instance of class {0}" +UNABLE_TO_ACCESS="Unable to access class {0}" +DATABASE_DRIVER_NOT_FOUND="Unable to get Database data source. Check context.xml" +UNABLE_TO_GET_DB_CONNECTION="Unable to get the database connection" +ERROR_DISABLING_DB_AUTOCOMMIT="There was an error disabling the database autocommit" +DB_OPERATION_NOT_RECOGNIZED="File metadata database operation not recognized. Admitted only SET, GET, DELETE" +UNABLE_TO_READ_PROPERTIES="Unable to read properties file {0}" +PROPERTY_NOT_FOUND="Property {0} not found in file {1}" diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class b/target/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class new file mode 100644 index 0000000000000000000000000000000000000000..65caca49d275df576c977e9ea4a4456049e00c16 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class b/target/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class new file mode 100644 index 0000000000000000000000000000000000000000..92fd2511384fa23302418ccb9a2de49b879e0686 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/FileRecord.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class b/target/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..7848559ee3d76ccbc51dd866a3c010d7b3d2488f Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class b/target/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..938ad8f906e60d816b211aed9d82e10136e17b53 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class new file mode 100644 index 0000000000000000000000000000000000000000..808688224292deb777d2d96d24967dc042367e22 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class new file mode 100644 index 0000000000000000000000000000000000000000..ac20f90701a90b0458c618dc745a09ade5c13849 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class new file mode 100644 index 0000000000000000000000000000000000000000..3781bb45204605f680a2d7dc39662cca4adec482 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class new file mode 100644 index 0000000000000000000000000000000000000000..2b36c1467b999d029bcb9c436a2f0e5f127151a2 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class b/target/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class new file mode 100644 index 0000000000000000000000000000000000000000..cc0aff90845652fe905c3dc35d512e7f8b20f4cd Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/utils/ConfigReader.class differ diff --git a/target/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class b/target/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class new file mode 100644 index 0000000000000000000000000000000000000000..f4152defa616df6b1f7d947978bd5c816e3b3c90 Binary files /dev/null and b/target/classes/it/inaf/oats/vospacebackend/utils/VOSURIParser.class differ diff --git a/target/classes/resources/VOSpace.properties b/target/classes/resources/VOSpace.properties new file mode 100644 index 0000000000000000000000000000000000000000..43a544bdaefa804c553c05fb074c19773cd15848 --- /dev/null +++ b/target/classes/resources/VOSpace.properties @@ -0,0 +1,32 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ + +# VOSpace Backend Implementation to be used +it.inaf.oats.vospacebackendimplementation.VOSpaceBackendImpl = it.inaf.oats.vospacebackend.implementation.VOSpaceBackPosix + +# VOSpace with posix backend Document Root +fs.posix.document.root = /home/bertocco/vospace +# VOSpace with posix backend Temporary storage area +fs.posix.tmp.storage.root = /tmp/vospace diff --git a/target/classes/resources/license.txt b/target/classes/resources/license.txt new file mode 100644 index 0000000000000000000000000000000000000000..716b2c96556af5c5d541a569177b8d59c76172ea --- /dev/null +++ b/target/classes/resources/license.txt @@ -0,0 +1,24 @@ +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ \ No newline at end of file diff --git a/target/classes/sql/create_vospace_backend.sql b/target/classes/sql/create_vospace_backend.sql new file mode 100644 index 0000000000000000000000000000000000000000..db455548f1e0da1ee2132060551f15832bca6aad --- /dev/null +++ b/target/classes/sql/create_vospace_backend.sql @@ -0,0 +1,50 @@ + +/**_____________________________________________________________________________ + * + * OATS - INAF + * Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica + * Astronomical Observatory of Trieste - National Institute for Astrophysics + * ____________________________________________________________________________ + * + * Copyright (C) 20016 Istituto Nazionale di Astrofisica + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * _____________________________________________________________________________ + **/ +CREATE DATABASE vosbackend; + +use vosbackend; + +grant all on vosbackend.* to 'vosbackadmin' identified by 'Peper0ne'; + +CREATE TABLE StoredFiles +( + fileID int NOT NULL AUTO_INCREMENT, + original_file_name varchar(255) NOT NULL, + stored_file_name varchar(36) NOT NULL, + md5_checksum varchar(36) NOT NULL, + relative_path varchar(8), + PRIMARY KEY (fileID) +) ENGINE=InnoDB; + +ALTER TABLE StoredFiles ADD INDEX f_name (original_file_name); + +CREATE TABLE RequestedPuts +( + storedFileID varchar(255) NOT NULL, + vosuri varchar(255) NOT NULL, + PRIMARY KEY (storedFileID) +) ENGINE=InnoDB; + diff --git a/target/classes/test/ServiceTester.class b/target/classes/test/ServiceTester.class new file mode 100644 index 0000000000000000000000000000000000000000..ec788cc122261eec1d739c7141d62113da39eb98 Binary files /dev/null and b/target/classes/test/ServiceTester.class differ diff --git a/target/classes/test/VOSURIParserTest.class b/target/classes/test/VOSURIParserTest.class new file mode 100644 index 0000000000000000000000000000000000000000..0e3f6f3b533e6f5fda9f5fcec5c175f0c2ead2d0 Binary files /dev/null and b/target/classes/test/VOSURIParserTest.class differ diff --git a/target/endorsed/javaee-endorsed-api-7.0.jar b/target/endorsed/javaee-endorsed-api-7.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..7f2e96d0514d651bd3bf24dc9b86218600e77f0b Binary files /dev/null and b/target/endorsed/javaee-endorsed-api-7.0.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000000000000000000000000000000000000..51ac6fbdf41bf132866e6fc0746b3cd767500704 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Tue May 24 19:51:21 PDT 2016 +version=0.0 +groupId=it.inaf.oats +artifactId=VOSpaceBackend diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..89892d11c05d78ad9ea14c59f5b96ac5669f4d12 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,16 @@ +it/inaf/oats/vospacebackend/VOSpaceBackendResource.class +test/VOSURIParserTest.class +it/inaf/oats/vospacebackend/utils/VOSURIParser.class +it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.class +it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.class +it/inaf/oats/vospacebackend/VOSpaceBackendApplication.class +it/inaf/oats/vospacebackend/utils/ConfigReader.class +it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.class +it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.class +test/ServiceTester.class +it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.class +it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.class +it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.class +it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.class +it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.class +it/inaf/oats/vospacebackend/implementation/FileRecord.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..f8cdaadc70cfa6dcca042393e324c9248ab9b10e --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,16 @@ +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/DatabaseNodePersistenceExt.java +/home/bertocco/work/VOSpaceBackend/src/main/java/test/VOSURIParserTest.java +/home/bertocco/work/VOSpaceBackend/src/main/java/test/ServiceTester.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/VOSpaceBackendApplication.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/utils/ConfigReader.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/exceptions/VOSpaceBackendException.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/utils/VOSURIParser.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/VOSpaceBackImplFactory.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/VOSpaceBackMetadata.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/VOSpaceBackend.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/exceptions/ExceptionMessage.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/TransferGeneratorImpl.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/VOSpaceBackendResource.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/VOSpaceBackPosix.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/IdentityManagerImpl.java +/home/bertocco/work/VOSpaceBackend/src/main/java/it/inaf/oats/vospacebackend/implementation/FileRecord.java diff --git a/target/test-classes/.netbeans_automatic_build b/target/test-classes/.netbeans_automatic_build new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391