Package org.safehaus.uuid

Examples of org.safehaus.uuid.UUIDGenerator


      Integer refreshSeconds=obj.getRefreshSeconds();
      if(refreshSeconds==null)refreshSeconds=new Integer(0);
      hibBIObject.setRefreshSeconds(refreshSeconds);

      // uuid generation
      UUIDGenerator uuidGenerator = UUIDGenerator.getInstance();
      UUID uuidObj = uuidGenerator.generateTimeBasedUUID();
      String uuid = uuidObj.toString();
      hibBIObject.setUuid(uuid);

      hibBIObject.setCreationDate(new Date());
      hibBIObject.setCreationUser(obj.getCreationUser());
View Full Code Here


    response.setAttribute(TreeObjectsModule.PATH_SUBTREE, basePath);
    if (executionObjectLabel != null) {
      // a document was selected, document execution can start
      response.setAttribute(ObjectsTreeConstants.OBJECT_LABEL, executionObjectLabel);
        // identity string for object execution
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuid = uuidGen.generateTimeBasedUUID();
        String requestIdentity = uuid.toString();
        requestIdentity = requestIdentity.replaceAll("-", "");
        response.setAttribute("spagobi_execution_id", requestIdentity);
    }
    debug("exit", "Exit from module");
View Full Code Here

      throw new Exception("The role [" + newRole + "] is not a valid role for executing document [" + object.getLabel() + "].");
    }
    // reload the biobject
    this.object = DAOFactory.getBIObjectDAO().loadBIObjectForExecutionByIdAndRole(object.getId(), newRole);
    // generates a new execution id
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuidObj = uuidGen.generateTimeBasedUUID();
    String executionId = uuidObj.toString();
    this.executionId = executionId.replaceAll("-", "");
    this.calendar = new GregorianCalendar();
    initBIParameters();
    logger.debug("OUT");
View Full Code Here

          buffer.append("&"+AuditManager.AUDIT_ID+"=" + auditId); //adds constants if it works!!
        }
      }

      // identity string for context
      UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
      UUID uuid = uuidGen.generateRandomBasedUUID();
      buffer.append("&" + LightNavigationManager.LIGHT_NAVIGATOR_ID + "=" + uuid.toString());

      List parameters = object.getBiObjectParameters();
      if (parameters != null && parameters.size() > 0) {
        Iterator it = parameters.iterator();
View Full Code Here

    HashedMap parameters=new HashedMap();
    parameters.put("PARAM_OUTPUT_FORMAT", outputType);
    parameters.put("TITLE", executionInstance.getBIObject().getLabel());

    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
    executionId = executionId.replaceAll("-", "");
    //Creta etemp file
    String dirS = System.getProperty("java.io.tmpdir");
    File dir = new File(dirS);
View Full Code Here

   *
   * @throws EMFUserError the EMF user error
   */
  private ExecutionInstance createExecutionInstance(Integer biobjectId, String aRoleName, IEngUserProfile profile, SourceBean request, String modality) throws EMFUserError {
    // create execution id
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuidObj = uuidGen.generateTimeBasedUUID();
    String executionId = uuidObj.toString();
    executionId = executionId.replaceAll("-", "");
    // find execution flow id; it is not specified, it means that a new flow is starting, so it is set to execution id value
    String executionFlowId = (String) request.getAttribute("EXECUTION_FLOW_ID");
    logger.debug("Execution flow id request parameter: " + executionFlowId);
View Full Code Here

      File tempDir = new File(tempDirPath);
      if (!tempDir.exists()) tempDir.mkdir();
      else {
        if (!tempDir.isDirectory()) tempDir.delete();
      }
      UUIDGenerator uuidGenerator = UUIDGenerator.getInstance();
      String tempFileName = uuidGenerator.generateTimeBasedUUID().toString();
      TalendEngineConfig config = TalendEngineConfig.getInstance();
      File contextScriptTempFile = new File(tempDirPath + File.separatorChar + tempFileName + config.getPerlExt());
    FileOutputStream fos = new FileOutputStream(contextScriptTempFile);
    fos.write(filebuff.toString().getBytes());
    fos.flush();
View Full Code Here

    }else{
      flgTemplateStandard = "true";
    }
   
    SpagoBIAccessUtils util = new SpagoBIAccessUtils();
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
    executionId = executionId.replaceAll("-", "");
    boolean propertiesLoaded=false;
    if (flgTemplateStandard.equalsIgnoreCase("false")) {
      logger.debug("The template is a .ZIP file");
View Full Code Here

    CSVtask.setParameterValues(reportParams);
    CSVtask.validateParameters();
    
    //************************************
    
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
    executionId = executionId.replaceAll("-", "");
    
    String nameFile = getJRTempDirName(getServletContext(), executionId)+ "csvreport.rptdocument";
    
View Full Code Here

   *
   */

  public String calculatePId() {

    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuidObj = uuidGen.generateTimeBasedUUID();
    String executionId = uuidObj.toString();
    pId = executionId;
    return executionId; 
 
  }
View Full Code Here

TOP

Related Classes of org.safehaus.uuid.UUIDGenerator

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.