Examples of Service


Examples of org.objectweb.speedo.pobjects.inheritance.ejboo.Service

        mar = new Marche();
        pm.makePersistent(mar);
        nbMar ++;
      }
      if ((idArt % 2) == 0) { //pair
        a = new Service(idArt);
      } else { //impair
        a = new Materiel(idArt);
      }
      pm.makePersistent(a);
      a.setCatalogue(cat);
View Full Code Here

Examples of org.objectweb.speedo.pobjects.inheritance.filterOutOfPK.rdbsequence.Service

        mar = new Marche();
        pm.makePersistent(mar);
        nbMar ++;
      }
      if ((idArt % 2) == 0) { //even
        a = new Service(idArt);
      } else { //uneven
        a = new Materiel(idArt);
      }
      pm.makePersistent(a);
      a.setCatalogue(cat);
View Full Code Here

Examples of org.objectweb.speedo.pobjects.sequence.id.inheritance.Service

      assertNotNull("Sequence " + ARTICLE_SEQ + " should not be null.", s);
      s.allocate(ADDITIONAL);
      Article articles[] = new Article[ADDITIONAL];
      for (int i = 0; i < ADDITIONAL; i++) {
        if (i%2 == 0) {
          articles[i] = new Service();
        } else {
          articles[i] = new Materiel();
        }
      }
      //  make persistent
View Full Code Here

Examples of org.openxri.xml.Service

    // extract the host from the claimed id - this is the canonicalID
    // we expect in the site's XRD
    IdpIdentifier host = new IdpIdentifier(claimedId.getUrl().getHost());

    // find the <Service> element with type '.../describedby'
    Service service = getServiceForType(siteXrd.getXrd(), URI_TEMPLATE_TYPE);
    if (service == null) {
      throw new DiscoveryException("could not find service of type " +
          URI_TEMPLATE_TYPE + " in XRDS at location " +
          claimedId.getIdentifier());
    }
View Full Code Here

Examples of org.pathways.openciss.info.hmis.schema._3_0.hud_hmis.Service

    */
   
    // write out program participation to CSV 5, if it is a non-shelter stay and CSV 7
    // get serviceType
    try {
      Service service = getServiceFromServiceKey(serviceKey);
      String serviceType = service.getServiceType().toString();
      if (serviceType != null) {
        if (serviceType.equals("1")) {
          writeOutCSV7(ssp, serviceKeyCSV1,   sSNFamilyHeadCSV1);
        } else {
          writeOutCSV5(ssp, serviceKeyCSV1,   sSNFamilyHeadCSV1);
View Full Code Here

Examples of org.platformlayer.xaas.Service

  @Inject
  CloudContextRegistry cloudContextRegistry;

  public ServiceProviderBase() {
    Service serviceAnnotation = getServiceAnnotation();

    String key = serviceAnnotation.value();

    // this.serviceType = serviceType;
    this.description = key;
    this.serviceType = new ServiceType(key);
  }
View Full Code Here

Examples of org.purl.sword.base.Service

    {
      throw new DSpaceSWORDException("The SWORD Context is null; please set it before calling getServiceDocument");
    }

    // construct a new service document
    Service service = new Service(SWORDProperties.VERSION, swordConfig.isNoOp(), swordConfig.isVerbose());

    // set the max upload size
    service.setMaxUploadSize(swordConfig.getMaxUploadSize());

        // Set the generator
        this.addGenerator(service);

    //
    if (url == null || urlManager.isBaseServiceDocumentUrl(url))
    {
      // we are dealing with the default service document

      // set the title of the workspace as per the name of the DSpace installation
      String ws = ConfigurationManager.getProperty("dspace.name");
      Workspace workspace = new Workspace();
      workspace.setTitle(ws);

      // next thing to do is determine whether the default is communities or collections
      boolean swordCommunities = ConfigurationManager.getBooleanProperty("sword.expose-communities");

      if (swordCommunities)
      {
        List<Community> comms = swordAuth.getAllowedCommunities(swordContext);
        for (Community comm : comms)
        {
          org.purl.sword.base.Collection scol = comGen.buildCollection(comm);
          workspace.addCollection(scol);
        }
      }
      else
      {
        List<Collection> cols = swordAuth.getAllowedCollections(swordContext);
        for (Collection col : cols)
        {
          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);

      if (dso instanceof Collection)
      {
        Collection collection = (Collection) dso;
        Workspace workspace = new Workspace();
        workspace.setTitle(collection.getMetadata("name"));

        List<Item> items = swordAuth.getAllowedItems(swordContext, collection);
        for (Item item : items)
        {
          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();
        workspace.setTitle(community.getMetadata("name"));

        List<Collection> collections = swordAuth.getAllowedCollections(swordContext, community);
        for (Collection collection : collections)
        {
          org.purl.sword.base.Collection scol = colGen.buildCollection(collection);
          workspace.addCollection(scol);
        }

        List<Community> communities = swordAuth.getCommunities(swordContext, community);
        for (Community comm : communities)
        {
          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

Examples of org.rapidpm.demo.cdise.controller.registry.services.Service

    public List<Service> getManagedServices(){
        final List<Service> resuList = new ArrayList<>();
        for (final Class<? extends Service> service : services) {
            final Instance<Object> instance = weldContainer.instance();
            final Instance<? extends Service> select = instance.select(service);
            final Service e = select.get();
            resuList.add(e);
        }
        return resuList;
    }
View Full Code Here

Examples of org.restlet.ext.atom.Service

        final File testDir = new File(System.getProperty("java.io.tmpdir"),
                "AtomTestCase");
        BioUtils.delete(testDir, true);
        testDir.mkdir();

        final Service atomService = new Service(
                "clap://class/org/restlet/test/ext/atom/service.xml");
        assertEquals("AtomPub Test Site", atomService.getWorkspaces().get(0)
                .getTitle());
        assertEquals("entry", atomService.getWorkspaces().get(0)
                .getCollections().get(0).getTitle());

        final Feed atomFeed = atomService.getWorkspaces().get(0)
                .getCollections().get(0).getFeed();

        // Write the feed into a file.
        final File feedFile = new File(testDir, "feed.xml");
        atomFeed.write(new BufferedOutputStream(new FileOutputStream(feedFile)));
View Full Code Here

Examples of org.restlet.service.Service

     * @param newService
     *            The new service to set.
     */
    public synchronized void set(Service newService) {
        List<Service> services = new CopyOnWriteArrayList<Service>();
        Service service;
        boolean replaced = false;

        for (int i = 0; (i < size()); i++) {
            service = get(i);

            if (service != null) {
                if (service.getClass().isAssignableFrom(newService.getClass())) {
                    try {
                        service.stop();
                    } catch (Exception e) {
                        Context.getCurrentLogger().log(Level.WARNING,
                                "Unable to stop service replaced", e);
                    }

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.