Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1820

Add extractValue method in UEB Listener SdncBaseModel for extracting properties on CapabilityAssignment

XMLWordPrintable

    • Frankfurt Sp2 : 11/25 - 1/17

      A method is needed to extract properties on CapabilityAssignment objects:

      +       protected String extractValue (CapabilityAssignment  capability, String path, String name) {
      +               String value = ""; 
      +               
      +               if (capability.getProperties().containsKey(path)) {
      +                       Property property = capability.getProperties().get(path);
      +                       if (property != null && !property.getLeafPropertyValue(name).isEmpty()) {
      +                               value = property.getLeafPropertyValue(name).get(0);
      +                       }
      +               }                       
      +
      +               if (value != null && !value.isEmpty() && !value.equalsIgnoreCase("null")) {
      +                       return value;
      +               } else {
      +                       return "";
      +               }
      +       }
      +  
      

            lalena.aria lalena.aria
            lalena.aria lalena.aria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: