[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-register-public] [task #5126] Submission of Share Your Documen

From: Teodoro
Subject: [Savannah-register-public] [task #5126] Submission of Share Your Documents
Date: Sun, 8 Jan 2006 10:04:38 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; it-it) AppleWebKit/416.12 (KHTML, like Gecko) Safari/416.13


                 Summary: Submission of Share Your Documents
                 Project: Savannah Administration
            Submitted by: teodoro
            Submitted on: dom 08/01/2006 alle 10:04
         Should Start On: dom 08/01/2006 alle 00:00
   Should be Finished on: mer 18/01/2006 alle 00:00
                Category: Project Approval
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Percent Complete: 0%
             Open/Closed: Open
                  Effort: 0.00



A new project has been registered at Savannah 
The project account will remain inactive until a site admin approve or
discard the registration.


While this item will be useful to track the registration process, approving
or discarding the registration must be done using the specific "Group
Administration" page, accessible only to site administrators, effectively
logged as site administrators (superuser):


######### REGISTRATION DETAILS ######### 

Full Name:
  Share Your Documents

System Group Name:

  non-GNU software & documentation

  GNU General Public License V2 or later

  SyD (Share your Documents) is a software of configuration management. It
improves locking and the merging of the files. It makes this allowing the
developer to lock parts of single file.
The state of the project is planning, so the code is present, but it is only
the skeleton.  A prototype that will be created supports the management of
parts of files java. The software is extensible for the management of other
languages of programming or documents. It supports text files, but it will
support also binary files. The licence is gnu. The software is written in
language java. It uses a database XML for the management of the repository,
XQuery is used in order to query the database, XUpdate is used in order to
modify the db. 

This is class

 * Created on 16-dic-2005 
 * Copyright (C) 2005 Paolo D'Apice, Teodoro De Giorgio
 * 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. 
package db.xml;

import org.xmldb.api.DatabaseManager;
import org.xmldb.api.base.Collection;
import org.xmldb.api.base.Database;

import db.DataStore;
import db.DbException;
import db.Query;

import tools.Status;
import tools.utils.*;

 * The concrete class that represent a NXD.
 * @author Paolo D'Apice, Teodoro De Giorgio
public class Xmldb extends DataStore {

        private Database usersdb;

        private Collection col;

        /** Default constructor. */
        public Xmldb() {
                this("org.exist.xmldb.DatabaseImpl", "xmldb:exist:///db/syd");

        /** Constructor.
         * @see db.DataStore */
        public Xmldb(String driver, String uri) {
                super(driver, uri);

        public Status connect() throws DbException {
                try {
                        //load the driver
                        System.out.println("Connecting the database:");
                        Class cl = Class.forName(driver);
                        //create instance
                        usersdb = (Database) cl.newInstance();
                        usersdb.setProperty("create-database", "true");
                        //use db
                        // get the collection
                        col = DatabaseManager.getCollection(uri, "admin", "");
                        System.out.println(" * Database \t\t\t\tOK ");
                        return Status.getInstance(Status.DB_OK);
                } catch (Exception e) {
                        //throw new DbException("connessione al xml db");
                        System.out.println(" * Database \t\t\t\tFAIL");
                        System.out.println("Error: " + e.getMessage());
                        return Status.getInstance(Status.DB_ERROR);

        public Status disconnect() {
                return Status.getInstance(Status.DB_OK);

        public XmlResult executeQuery(Query query) 
        throws DbException {
                return XQuery.convertResourceSet(

        public XmlResult executeUpdate(Query query) throws DbException {
                return XQuery.convertResourceSet(

Other Software Required:
  SyD uses


Reply to this item at:


  Messaggio inviato con/da Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]