Examples of claim()


Examples of de.justi.yagw2api.wrapper.IWVWObjective.claim()

        objectiveModel.capture(potentialNewOwner.orNull());
        // 1.2 synchronize claiming guild
        claimedByGuildDTO = objectiveDTO.getGuildDetails();
        if (claimedByGuildDTO.isPresent()) {
          final IGuild guild = MODEL_FACTORY.getOrCreateGuild(claimedByGuildDTO.get().getId(), claimedByGuildDTO.get().getName(), claimedByGuildDTO.get().getTag());
          objectiveModel.claim(guild);
        } else {
          objectiveModel.claim(null);
        }
      } else {
        LOGGER.error("Missing " + IWVWObjective.class.getSimpleName() + " for objectiveId=" + objectiveDTO.getId());
View Full Code Here

Examples of de.justi.yagw2api.wrapper.IWVWObjective.claim()

        claimedByGuildDTO = objectiveDTO.getGuildDetails();
        if (claimedByGuildDTO.isPresent()) {
          final IGuild guild = MODEL_FACTORY.getOrCreateGuild(claimedByGuildDTO.get().getId(), claimedByGuildDTO.get().getName(), claimedByGuildDTO.get().getTag());
          objectiveModel.claim(guild);
        } else {
          objectiveModel.claim(null);
        }
      } else {
        LOGGER.error("Missing " + IWVWObjective.class.getSimpleName() + " for objectiveId=" + objectiveDTO.getId());
      }
    }
View Full Code Here

Examples of javax.usb.UsbInterface.claim()

      UsbConfiguration usbConfiguration = this.device.getUsbConfiguration((byte) 1);
      UsbInterface usbInterface = usbConfiguration.getUsbInterface((byte) 0);
     
      try {
        usbInterface.claim(new UsbInterfacePolicy() {
         
          public boolean forceClaim(UsbInterface arg0) {
            return true;
          }
        });
View Full Code Here

Examples of javax.usb.UsbInterface.claim()

    logger.debug("Got device; Manufacturer is " + cm19a.getManufacturerString());
    logger.debug("Got interface; Active is " + usbInterface.isActive() + " Claimed is " + usbInterface.isClaimed());

    try
    {
      usbInterface.claim();
      logger.debug("Interface has been claimed");
    }
    catch (UsbException ue)
    {
      throw new CM19AException("Couldn't claim interface. " + "Message is " + ue.getMessage());
View Full Code Here

Examples of jpos.CashDrawer.claim()

            cashDrawer.open("TSP700-cashdrawer-mac-usb");                 // TSP700 cashDrawer - mac - usb
           
            //cashDrawer.open("TSP700-cashdrawer-ethernet");                // TSP700 cashDrawer - ethernet
           
            // claim exclsive usage of the cashDrawer object
            cashDrawer.claim(1);
           
            // enable the device for input and output
            cashDrawer.setDeviceEnabled(true);
           
            // check if the drawer is currently opened
View Full Code Here

Examples of jpos.POSPrinter.claim()

            //printer.open("TSP700-mac-usb");                 // TSP700 printer - mac - usb

            //printer.open("TSP700-ethernet");                  // TSP700 printer - ethernet
           
            // claim exclsive usage of the printer object
            printer.claim(1);
           
            // enable the device for input and output
            printer.setDeviceEnabled(true);
           
            // set map mode to metric - all dimensions specified in 1/100mm units
View Full Code Here

Examples of jpos.POSPrinter.claim()

            printer.open("TSP700-mac-usb");                 // TSP700 printer - mac - usb

            //printer.open("TSP700-ethernet");                  // TSP700 printer - ethernet
           
            // claim exclsive usage of the printer object
            printer.claim(1);
           
            // enable the device for input and output
            printer.setDeviceEnabled(true);
           
            // set map mode to metric - all dimensions specified in 1/100mm units
View Full Code Here

Examples of jpos.POSPrinter.claim()

            //printer.open("TSP700-mac-usb");                 // TSP700 printer - mac - usb

            //printer.open("TSP700-ethernet");                  // TSP700 printer - ethernet
           
            // claim exclsive usage of the printer object
            printer.claim(1);
           
            // enable the device for input and output
            printer.setDeviceEnabled(true);
           
            // set map mode to metric - all dimensions specified in 1/100mm units
View Full Code Here

Examples of org.activiti.engine.TaskService.claim()

        .taskCandidateGroup(itSupportGroup.getId()).singleResult();
    assertThat(approveCriticalIssueTask.getName(),
        equalTo("Approve Critical Issue"));

    // claim the task for the user 'itguy'
    taskService.claim(approveCriticalIssueTask.getId(), itguy.getId());

    // approve the request and complete the task
    Map<String, Object> taskParams = new HashMap<String, Object>();
    taskParams.put("requestApproved", "true");
    taskService.complete(approveCriticalIssueTask.getId(), taskParams);
View Full Code Here

Examples of org.activiti.engine.TaskService.claim()

    @RequestMapping("workspace-claimTask")
    public String claimTask(@RequestParam("taskId") String taskId) {
        String userId = SpringSecurityUtils.getCurrentUserId();

        TaskService taskService = processEngine.getTaskService();
        taskService.claim(taskId, userId);

        return "redirect:/bpm/workspace-listPersonalTasks.do";
    }

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