\r
import com.att.eelf.configuration.EELFLogger;\r
import com.att.eelf.configuration.EELFManager;\r
-import com.fasterxml.jackson.core.JsonProcessingException;\r
\r
import java.io.IOException;\r
import java.util.Date;\r
* @throws ParseException\r
* In case of DCAE Json parse exception\r
*/\r
- public void setEventInventory(CldsModel cldsModel, String userId) throws ParseException, InterruptedException {\r
+ public void setEventInventory(CldsModel cldsModel, String userId) throws InterruptedException {\r
String artifactName = cldsModel.getControlName();\r
DcaeEvent dcaeEvent = new DcaeEvent();\r
DcaeInventoryResponse dcaeResponse = null;\r
dcaeEvent.setArtifactName(artifactName);\r
dcaeEvent.setEvent(DcaeEvent.EVENT_DISTRIBUTION);\r
LoggingUtils.setResponseContext("0", "Set inventory success", this.getClass().getName());\r
- } catch (JsonProcessingException e) {\r
+ } catch (ParseException e) {\r
LoggingUtils.setResponseContext("900", "Set inventory failed", this.getClass().getName());\r
LoggingUtils.setErrorContext("900", "Set inventory error");\r
logger.error("Error during JSON decoding", e);\r
return totalCount.intValue();\r
}\r
\r
- private DcaeInventoryResponse getItemsFromDcaeInventoryResponse(String responseStr)\r
- throws ParseException {\r
+ private DcaeInventoryResponse getItemsFromDcaeInventoryResponse(String responseStr) throws ParseException {\r
JSONParser parser = new JSONParser();\r
Object obj0 = parser.parse(responseStr);\r
JSONObject jsonObj = (JSONObject) obj0;\r
package org.onap.clamp.clds.model;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
import java.util.ArrayList;
import java.util.List;
/**
* Represents a CLDS Dictionary.
*/
-@JsonInclude(Include.NON_NULL)
+
public class CldsDictionary {
private String dictionaryId;
package org.onap.clamp.clds.model;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonInclude.Include;
-
import java.util.List;
import org.onap.clamp.clds.dao.CldsDao;
/**
* Represents a CLDS Dictionary Item.
*/
-@JsonInclude(Include.NON_NULL)
public class CldsDictionaryItem {
private String dictElementId;
* limitations under the License.
* ============LICENSE_END============================================
* ===================================================================
- *
+ *
*/
package org.onap.clamp.clds.model.dcae;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-
/**
* This class maps the DCAE inventory answer to a nice pojo.
*/
-@JsonIgnoreProperties(ignoreUnknown = true)
public class DcaeInventoryResponse {
private String typeName;