Package org.safehaus.uuid

Examples of org.safehaus.uuid.UUID


        String externalUuid = requestMessage.getApplicationProperties().getProperty("externalUUID");
        if (externalUuid != null && externalUuid.length() > 0) {
            return externalUuid;           
        }
        // Use a generated UUID based on a random generation as a fallback if the external UUID isn't available.
        UUID uuid = UUIDGenerator.getInstance().generateRandomBasedUUID();       
        return uuid.toString();
    }
View Full Code Here


     * Returns a random-based UUID.
     */
    public String getTransactionId(GatekeeperMessage requestMessage, ClientInformation clientInformation)
    {
        // Generate a UUID based on a random generation.
        UUID uuid = UUIDGenerator.getInstance().generateRandomBasedUUID();
        return uuid.toString();
    }
View Full Code Here

            // haven't cached this product yet, so let's cache it
            CompleteProduct completeProduct = new CompleteProduct();

            synchronized (completeProduct) {
                // now generate a unique ID for the product
                UUID prodUUID = generator.generateTimeBasedUUID();
                product.setProductId(prodUUID.toString());
            }

            completeProduct.setProduct(product);
            CATALOG_CACHE.put(product.getProductId(), completeProduct);
View Full Code Here

      CompleteProduct completeProduct = new CompleteProduct();

      if (product.getProductId() == null) {
        synchronized (completeProduct) {
          // now generate a unique ID for the product
          UUID prodUUID = generator.generateTimeBasedUUID();
          product.setProductId(prodUUID.toString());
        }
      }

      completeProduct.setProduct(product);
      CATALOG_CACHE.put(product.getProductId(), completeProduct);
View Full Code Here

     * @see org.apache.oodt.cas.workflow.instrepo.WorkflowInstanceRepository#addWorkflowInstance(org.apache.oodt.cas.workflow.structs.WorkflowInstance)
     */
    public synchronized void addWorkflowInstance(WorkflowInstance wInst)
            throws InstanceRepositoryException {
        // generate UUID for inst
        UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID();
        wInst.setId(uuid.toString());

        addWorkflowInstanceToCatalog(wInst);

    }
View Full Code Here

            // haven't cached this product yet, so let's cache it
            CompleteProduct completeProduct = new CompleteProduct();

            synchronized (completeProduct) {
                // now generate a unique ID for the product
                UUID prodUUID = generator.generateTimeBasedUUID();
                product.setProductId(prodUUID.toString());
            }

            completeProduct.setProduct(product);
            CATALOG_CACHE.put(product.getProductId(), completeProduct);
View Full Code Here

        response.getWriter().write(
            Messages.getInstance().getErrorString( "PluggableUploadFileServlet.ERROR_0004_FOLDER_SIZE_LIMIT_REACHED" ) ); //$NON-NLS-1$
        return;
      }

      UUID id = UUIDUtil.getUUID();
      String filename = id.toString() + uploaderPlugin.getFileExtension();

      File outFile = new File( path, filename );

      if ( doesFileExists( outFile ) ) {
        response.getWriter().write(
View Full Code Here

      return null;
    }

    // identity string for object execution
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
    executionId = executionId.replaceAll("-", "");


    FileOutputStream fos=null;
View Full Code Here

      if (outputType.equalsIgnoreCase("html")) {
        exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
        exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "");
        HashMap m_imagesMap = new HashMap();
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuid_local = uuidGen.generateTimeBasedUUID();
        String mapName = uuid_local.toString();
        httpServletRequest.getSession().setAttribute(mapName, m_imagesMap);
        exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, m_imagesMap)
        exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "JRImageServlet?mapname="+mapName+"&image=");   
      } else if (outputType.equalsIgnoreCase("txt")) {
        exporter.setParameter(JRTextExporterParameter.PAGE_HEIGHT,new Integer(100));
View Full Code Here

  */
   
  public StringBuffer makeTree(List objectsList, HttpServletRequest httpReq, String initialPath, String treename) {
    // identity string for object of the page
      UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
      UUID uuid = uuidGen.generateTimeBasedUUID();
      requestIdentity = uuid.toString();
      requestIdentity = requestIdentity.replaceAll("-", "");
    httpRequest = httpReq;
    reqCont = ChannelUtilities.getRequestContainer(httpRequest);
    urlBuilder = UrlBuilderFactory.getUrlBuilder();
    msgBuilder = MessageBuilderFactory.getMessageBuilder();
View Full Code Here

TOP

Related Classes of org.safehaus.uuid.UUID

Copyright © 2018 www.massapicom. 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.