congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KapuaAppProperties.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.eclipse.kapua.service.device.management.message.KapuaAppProperties

Best Java code snippets using org.eclipse.kapua.service.device.management.message.KapuaAppProperties.getValue (Showing top 7 results out of 315)

origin: eclipse/kapua

@Override
public String marshal(KapuaAppProperties v) throws Exception {
  return v.getValue();
}
origin: org.eclipse.kapua/kapua-translator-kapua-kura

@Override
protected KuraRequestChannel translateChannel(GenericRequestChannel kapuaChannel) throws KapuaException {
  KuraRequestChannel kuraRequestChannel = new KuraRequestChannel();
  kuraRequestChannel.setMessageClassification(CONTROL_MESSAGE_CLASSIFIER);
  StringBuilder appIdSb = new StringBuilder();
  appIdSb.append(kapuaChannel.getAppName().getValue());
  if (kapuaChannel.getVersion() != null && StringUtils.isNotEmpty(kapuaChannel.getVersion().getValue())) {
    appIdSb.append("-")
        .append(kapuaChannel.getVersion().getValue());
  }
  kuraRequestChannel.setAppId(appIdSb.toString());
  kuraRequestChannel.setMethod(MethodDictionaryKapuaKura.get(kapuaChannel.getMethod()));
  kuraRequestChannel.setResources(kapuaChannel.getResources());
  return kuraRequestChannel;
}
origin: eclipse/kapua

@Override
protected KuraRequestChannel translateChannel(GenericRequestChannel kapuaChannel) throws KapuaException {
  KuraRequestChannel kuraRequestChannel = new KuraRequestChannel();
  kuraRequestChannel.setMessageClassification(CONTROL_MESSAGE_CLASSIFIER);
  StringBuilder appIdSb = new StringBuilder();
  appIdSb.append(kapuaChannel.getAppName().getValue());
  if (kapuaChannel.getVersion() != null && StringUtils.isNotEmpty(kapuaChannel.getVersion().getValue())) {
    appIdSb.append("-")
        .append(kapuaChannel.getVersion().getValue());
  }
  kuraRequestChannel.setAppId(appIdSb.toString());
  kuraRequestChannel.setMethod(MethodDictionaryKapuaKura.get(kapuaChannel.getMethod()));
  kuraRequestChannel.setResources(kapuaChannel.getResources());
  return kuraRequestChannel;
}
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();
}
origin: eclipse/kapua

/**
 * Creates a {@link org.eclipse.kapua.service.device.registry.event.DeviceEvent} extracting data from the given {@link KapuaRequestMessage} and {@link KapuaResponseMessage}.
 * <p>
 * This operation is performed using {@link KapuaSecurityUtils#doPrivileged(ThrowingRunnable)} since {@link org.eclipse.kapua.service.device.registry.event.DeviceEventDomain} isn't a required
 * permission to use any of the Device Management Services.
 *
 * @param scopeId         The scopeId in which to create the {@link org.eclipse.kapua.service.device.registry.event.DeviceEvent}
 * @param deviceId        The {@link org.eclipse.kapua.service.device.registry.Device} id for which the {@link org.eclipse.kapua.service.device.registry.event.DeviceEvent} is created
 * @param requestMessage  The {@link KapuaRequestMessage} of the DeviceManagementService operation from which to extract data.
 * @param responseMessage The {@link KapuaResponseMessage} of the DeviceManagementService operation from which to extract data.
 * @throws KapuaException If the creation of the {@link org.eclipse.kapua.service.device.registry.event.DeviceEvent} fails for some reasons
 * @since 1.0.0
 */
protected void createDeviceEvent(KapuaId scopeId, KapuaId deviceId, KapuaRequestMessage<?, ?> requestMessage, KapuaResponseMessage responseMessage) throws KapuaException {
  DeviceEventCreator deviceEventCreator =
      DEVICE_EVENT_FACTORY.newCreator(
          scopeId,
          deviceId,
          responseMessage.getReceivedOn(),
          requestMessage.getChannel().getAppName().getValue());
  deviceEventCreator.setPosition(responseMessage.getPosition());
  deviceEventCreator.setSentOn(responseMessage.getSentOn());
  deviceEventCreator.setAction(requestMessage.getChannel().getMethod());
  deviceEventCreator.setResponseCode(responseMessage.getResponseCode());
  deviceEventCreator.setEventMessage(responseMessage.getPayload().toDisplayString());
  KapuaSecurityUtils.doPrivileged(() -> DEVICE_EVENT_SERVICE.create(deviceEventCreator));
}
origin: eclipse/kapua

    .newCreator(requestInput.getScopeId(), requestInput.getDeviceId(), responseMessage.getReceivedOn(), requestInput.getChannel().getAppName().getValue());
deviceEventCreator.setPosition(responseMessage.getPosition());
deviceEventCreator.setSentOn(responseMessage.getSentOn());
origin: org.eclipse.kapua/kapua-device-management-request-internal

    .newCreator(requestInput.getScopeId(), requestInput.getDeviceId(), responseMessage.getReceivedOn(), requestInput.getChannel().getAppName().getValue());
deviceEventCreator.setPosition(responseMessage.getPosition());
deviceEventCreator.setSentOn(responseMessage.getSentOn());
org.eclipse.kapua.service.device.management.messageKapuaAppPropertiesgetValue

Javadoc

Get the property value

Popular methods of KapuaAppProperties

    Popular in Java

    • Finding current android device location
    • getSharedPreferences (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • findViewById (Activity)
    • Charset (java.nio.charset)
      A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
    • Permission (java.security)
      Legacy security code; do not use.
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • Executor (java.util.concurrent)
      An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Top Vim plugins
    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