Package org.purl.sword.base

Examples of org.purl.sword.base.Service.addWorkspace()


          org.purl.sword.base.Collection scol = colGen.buildCollection(col);
          workspace.addCollection(scol);
        }
      }

      service.addWorkspace(workspace);
    }
    else
    {
      // we are dealing with a partial or sub-service document
      DSpaceObject dso = urlManager.extractDSpaceObject(url);
View Full Code Here


        {
          org.purl.sword.base.Collection scol = itemGen.buildCollection(item);
          workspace.addCollection(scol);
        }

        service.addWorkspace(workspace);
      }
      else if (dso instanceof Community)
      {
        Community community = (Community) dso;
        Workspace workspace = new Workspace();
View Full Code Here

        {
          org.purl.sword.base.Collection scol = comGen.buildCollection(comm);
          workspace.addCollection(scol);
        }

        service.addWorkspace(workspace);
      }
    }

    ServiceDocument sd = new ServiceDocument(service);
    return sd;
View Full Code Here

        collection.addAccepts("application/xml");
        collection.setAbstract("A nested collection that users can deposit into");
        collection.setTreatment("This is a dummy server");
        collection.setCollectionPolicy("No guarantee of service, or that deposits will be retained for any length of time.");
        workspace.addCollection(collection);
        service.addWorkspace(workspace);
      } else {
        Workspace workspace = new Workspace();
        workspace.setTitle("Anonymous submitters workspace");
        Collection collection = new Collection();
        collection.setTitle("Anonymous submitters collection");
View Full Code Here

        collection.addAccepts("application/xml");
        collection.setAbstract("Another collection that anonymous users can deposit into");
        collection.setTreatment("This is a dummy server");
        collection.setCollectionPolicy("No guarantee of service, or that deposits will be retained for any length of time.");
        workspace.addCollection(collection);
        service.addWorkspace(workspace);
       
        if (sdr.getUsername() != null) {
          workspace = new Workspace();
          workspace.setTitle("Authenticated workspace for " + username);
          collection = new Collection();
View Full Code Here

          collection.setAbstract("A collection that " + username + " can deposit into");
          collection.setTreatment("This is a dummy server");
          collection.setCollectionPolicy("No guarantee of service, or that deposits will be retained for any length of time.");
          workspace.addCollection(collection);
        }
        service.addWorkspace(workspace);
      }
     
      String onBehalfOf = sdr.getOnBehalfOf();
      if ((onBehalfOf != null) && (!onBehalfOf.equals(""))) {
        Workspace workspace = new Workspace();
View Full Code Here

        collection.setAbstract("An abstract goes in here");
        collection.setCollectionPolicy("A collection policy");
        collection.setMediation(true);
        collection.setTreatment("treatment in here too");
        workspace.addCollection(collection);
        service.addWorkspace(workspace);
      }
     
      return document;
  }
View Full Code Here

          org.purl.sword.base.Collection scol = colGen.buildCollection(col);
          workspace.addCollection(scol);
        }
      }

      service.addWorkspace(workspace);
    }
    else
    {
      // we are dealing with a partial or sub-service document
      DSpaceObject dso = urlManager.extractDSpaceObject(url);
View Full Code Here

        {
          org.purl.sword.base.Collection scol = itemGen.buildCollection(item);
          workspace.addCollection(scol);
        }

        service.addWorkspace(workspace);
      }
      else if (dso instanceof Community)
      {
        Community community = (Community) dso;
        Workspace workspace = new Workspace();
View Full Code Here

        {
          org.purl.sword.base.Collection scol = comGen.buildCollection(comm);
          workspace.addCollection(scol);
        }

        service.addWorkspace(workspace);
      }
    }

        return new ServiceDocument(service);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.