Tabnine Logo
DeviceManagementOperationRegistryService.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
org.eclipse.kapua.service.device.management.registry.operation.DeviceManagementOperationRegistryService

Best Java code snippets using org.eclipse.kapua.service.device.management.registry.operation.DeviceManagementOperationRegistryService.create (Showing top 2 results out of 315)

origin: eclipse/kapua

deviceManagementOperationCreator.setInputProperties(Arrays.asList(deviceManagementOperationProperty));
deviceManagementOperationRegistryService.create(deviceManagementOperationCreator);
origin: eclipse/kapua

protected KapuaId createManagementOperation(KapuaId scopeId, KapuaId deviceId, KapuaId operationId, int totalCheckpoints, KapuaRequestMessage<?, ?> requestMessage) throws KapuaException {
  DeviceManagementOperationCreator deviceManagementOperationCreator = DEVICE_MANAGEMENT_OPERATION_FACTORY.newCreator(scopeId);
  deviceManagementOperationCreator.setDeviceId(deviceId);
  deviceManagementOperationCreator.setOperationId(operationId);
  deviceManagementOperationCreator.setStartedOn(new Date());
  deviceManagementOperationCreator.setAppId(requestMessage.getChannel().getAppName().getValue());
  deviceManagementOperationCreator.setAction(requestMessage.getChannel().getMethod());
  deviceManagementOperationCreator.setResource(!requestMessage.getChannel().getSemanticParts().isEmpty() ? requestMessage.getChannel().getSemanticParts().get(0) : null);
  deviceManagementOperationCreator.setStatus(OperationStatus.RUNNING);
  deviceManagementOperationCreator.setInputProperties(extractInputProperties(requestMessage));
  DeviceManagementOperation deviceManagementOperation = KapuaSecurityUtils.doPrivileged(() -> DEVICE_MANAGEMENT_OPERATION_REGISTRY_SERVICE.create(deviceManagementOperationCreator));
  return deviceManagementOperation.getId();
}
org.eclipse.kapua.service.device.management.registry.operationDeviceManagementOperationRegistryServicecreate

Popular methods of DeviceManagementOperationRegistryService

  • query
  • update
  • count
  • delete
  • find

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now