Package org.safehaus.uuid

Examples of org.safehaus.uuid.UUIDGenerator.generateTimeBasedUUID()


    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


    }
    // 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

    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

      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

      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.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

     * the front-end (control) part of the engine */   
    File[] compiledSubreports = null;
    SpagoBIAccessUtils util = new SpagoBIAccessUtils();
    // identity string for object execution
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    //String executionId = uuid_local.toString();
    //executionId = executionId.replaceAll("-", "");
    String flgTemplateStandard = "true";

    //ContentServiceProxy contentProxy=new ContentServiceProxy(userId,session);
View Full Code Here

   */
  public StringBuffer makeTree(List objectsList, HttpServletRequest httpReq, String initialPath) {

    // identity string for object of the page
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid = uuidGen.generateTimeBasedUUID();
    requestIdentity = uuid.toString();
    requestIdentity = requestIdentity.replaceAll("-", "");
    _objectsList = objectsList;
    httpRequest = httpReq;
    reqCont = ChannelUtilities.getRequestContainer(httpRequest);
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.