Package java.util

Examples of java.util.HashMap.clear()


                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_FORWARD_SECRECY);
    p.clear();
    p.put(Sasl.POLICY_FORWARD_SECRECY, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see all mechanisms except ANONYMOUS,PLAIN & CRAM-MD5
    harness.check(includes(mechanisms, Registry.SASL_SRP_MECHANISM),
View Full Code Here


                  Registry.SASL_PLAIN_MECHANISM);
    harness.check(!includes(mechanisms, Registry.SASL_ANONYMOUS_MECHANISM),
                  Registry.SASL_ANONYMOUS_MECHANISM);

    harness.checkPoint("TestOfClientFactory:" + Sasl.POLICY_PASS_CREDENTIALS);
    p.clear();
    p.put(Sasl.POLICY_PASS_CREDENTIALS, "true");
    mechanisms = factory.getMechanismNames(p);

    // should see none
    harness.check(!includes(mechanisms, Registry.SASL_SRP_MECHANISM),
View Full Code Here

   * Clear all entries in the MDC.
   */
  public void clear() {
    HashMap hashMap = (HashMap) inheritableThreadLocal.get();
    if (hashMap != null) {
      hashMap.clear();
      // the InheritableThreadLocal.remove method was introduced in JDK 1.5
      // Thus, invoking clear() on previous JDK's will fail
      inheritableThreadLocal.remove();
    }
  }
View Full Code Here

  }

  public void setContextMap(Map contextMap) {
    HashMap hashMap = (HashMap) inheritableThreadLocal.get();
    if (hashMap != null) {
      hashMap.clear();
      hashMap.putAll(contextMap);
    } else {
      hashMap = new HashMap(contextMap);
      inheritableThreadLocal.set(hashMap);
    }
View Full Code Here

        ruleAdministrator.registerRuleExecutionSet( "IntegrationExampleTest.xls",
                                                    ruleExecutionSet,
                                                    properties );

        properties.clear();
        final List list = new ArrayList();
        properties.put( "list",
                        list );
       
        RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
View Full Code Here

    final Map labels = new HashMap(); // reused for each _parse
    int rootTokenType = tpattern.getType();
    visit(t, rootTokenType, new TreeWizard.ContextVisitor() {
      public void visit(Object t, Object parent, int childIndex, Map unusedlabels) {
        // the unusedlabels arg is null as visit on token type doesn't set.
        labels.clear();
        if ( _parse(t, tpattern, labels) ) {
          visitor.visit(t, parent, childIndex, labels);
        }
      }
    });
View Full Code Here

                GenericValue oneTask = null;
                String taskId = null;
                for (int i = 0; i < tasks.size(); i++) {
                    oneTask = (GenericValue)tasks.get(i);
                    taskId = oneTask.getString("workEffortId");
                    serviceContext.clear();
                    serviceContext.put("workEffortId", taskId);
                    serviceContext.put("currentStatusId", "PRUN_CANCELLED");
                    serviceContext.put("userLogin", userLogin);
                    resultService = dispatcher.runSync("updateWorkEffort", serviceContext);
                    // cancel all the components
View Full Code Here

            String prdName = UtilValidate.isNotEmpty(product.getString("productName"))? product.getString("productName"): product.getString("productId");
            String wefName = UtilValidate.isNotEmpty(routing.getString("workEffortName"))? routing.getString("workEffortName"): routing.getString("workEffortId");
            workEffortName =  prdName + "-" + wefName;
        }

        serviceContext.clear();
        serviceContext.put("workEffortTypeId", "PROD_ORDER_HEADER");
        serviceContext.put("workEffortPurposeTypeId", "WEPT_PRODUCTION_RUN");
        serviceContext.put("currentStatusId", "PRUN_CREATED");
        serviceContext.put("workEffortName", workEffortName);
        serviceContext.put("description",description);
View Full Code Here

        if (Debug.infoOn()) {
            Debug.logInfo("ProductionRun created: " + productionRunId, module);
        }

        // ProductionRun,  product will be produce creation = WorkEffortGoodStandard for the productId
        serviceContext.clear();
        serviceContext.put("workEffortId", productionRunId);
        serviceContext.put("productId", productId);
        serviceContext.put("workEffortGoodStdTypeId", "PRUN_PROD_DELIV");
        serviceContext.put("statusId", "WEGS_CREATED");
        serviceContext.put("estimatedQuantity", pRQuantity);
View Full Code Here

                }
                // Calculate the estimatedCompletionDate
                long totalTime = ProductionRun.getEstimatedTaskTime(routingTask, pRQuantity, dispatcher);
                Timestamp endDate = TechDataServices.addForward(TechDataServices.getTechDataCalendar(routingTask),startDate, totalTime);

                serviceContext.clear();
                serviceContext.put("priority", routingTaskAssoc.get("sequenceNum"));
                serviceContext.put("workEffortPurposeTypeId", routingTask.get("workEffortPurposeTypeId"));
                serviceContext.put("workEffortName",routingTask.get("workEffortName"));
                serviceContext.put("description",routingTask.get("description"));
                serviceContext.put("fixedAssetId",routingTask.get("fixedAssetId"));
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.