Package org.safehaus.uuid

Examples of org.safehaus.uuid.UUID


    JREmptyDataSource conn=new JREmptyDataSource(1);

    // identity string for object execution
    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


   */
  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("-", "");
    httpRequest = httpReq;
    reqCont = ChannelUtilities.getRequestContainer(httpRequest);
    urlBuilder = UrlBuilderFactory.getUrlBuilder();
    msgBuilder = MessageBuilderFactory.getMessageBuilder();
View Full Code Here

          }
        }
        mapPars.put(SpagoBIConstants.SBI_CONTEXT, GeneralUtilities.getSpagoBiContext());
        mapPars.put(SpagoBIConstants.SBI_HOST, GeneralUtilities.getSpagoBiHost());
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuidObj = uuidGen.generateRandomBasedUUID();
        String executionId = uuidObj.toString();
        executionId  = executionId.replaceAll("-", "");
        mapPars.put("SBI_EXECUTION_ID", executionId);
        mapPars.put("EXECUTION_CONTEXT", "DOCUMENT_COMPOSITION");
        // Auditing
        AuditManager auditManager = AuditManager.getInstance();
        Integer executionAuditId = auditManager.insertAudit(instance.getBIObject(), null, profile, instance.getExecutionRole(), instance.getExecutionModality());
        // adding parameters for AUDIT updating
        if (executionAuditId != null) {
          mapPars.put(AuditManager.AUDIT_ID, executionAuditId.toString());
        }

        Set parKeys = mapPars.keySet();
        Iterator parKeysIter = parKeys.iterator();
        do
        {
          if(!parKeysIter.hasNext())
          {
            break;
          }
          String parkey = parKeysIter.next().toString();
          String parvalue = mapPars.get(parkey).toString();
          urlReturn = (new StringBuilder()).append(urlReturn).append("&").append(parkey).append("=").append(parvalue).toString();
        } while(true);

      } else {
        // internal engine
        baseUrlReturn =  GeneralUtilities.getSpagoBIProfileBaseUrl(profile.getUserUniqueIdentifier().toString());
        urlReturn = "&PAGE=ExecuteBIObjectPage&" + SpagoBIConstants.IGNORE_SUBOBJECTS_VIEWPOINTS_SNAPSHOTS + "=true&"
        + ObjectsTreeConstants.OBJECT_LABEL + "=" + objLabel + "&"
        + ObjectsTreeConstants.MODALITY + "=" + SpagoBIConstants.DOCUMENT_COMPOSITION;
        // identity string for context
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuid = uuidGen.generateRandomBasedUUID();
        urlReturn += "&" + LightNavigationManager.LIGHT_NAVIGATOR_ID + "=" + uuid.toString();
      }
      // I add passing of SBI_LANGUAGE and SBI_COUNTRY
      // on session container they are called AF_COUNTRY and AF_LANGUAGE
      SessionContainer sContainer=sessionContainer.getPermanentContainer();
      if(sContainer!=null){
View Full Code Here

      newMod.setKpiModelNm(model.getKpiModelNm());

      // if label is null means we are coming from a version < 2.4 (transformator has changed so). Then assign a new unique label
      if(newMod.getKpiModelLabel() == null){
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuid = uuidGen.generateTimeBasedUUID();
        newMod.setKpiModelLabel(uuid.toString());
      }

      // associations
      entitiesAssociationsSbiModel(model, newMod, sessionCurrDB, metaAss);
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

   */
  public StringBuffer makeTree(List objectsList, HttpServletRequest httpReq, String initialPath) {
      logger.debug("IN");
    // 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

  public static String getUUIDAsString() {
    return UUIDUtil.getUUID().toString();
  }

  public static UUID getUUID() {
    UUID uuId = UUIDUtil.ug.generateTimeBasedUUID( UUIDUtil.eAddr );
    // while (uuId.toString().equals(olduuId.toString())) {
    // uuId = ug.generateTimeBasedUUID(eAddr);
    // }
    // olduuId = uuId;
    return uuId;
View Full Code Here

      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

    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

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.