add serviceorder service
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / MultiCriteriaRequestBuilder.java
index 941d6c0..4a5ad92 100644 (file)
@@ -1,6 +1,5 @@
 /**
- *
- *     Copyright (c) 2017 Orange.  All rights reserved.
+ *     Copyright (c) 2018 Orange
  *
  *     Licensed under the Apache License, Version 2.0 (the "License");
  *     you may not use this file except in compliance with the License.
@@ -43,21 +42,21 @@ public class MultiCriteriaRequestBuilder {
         List<String> externalIds = params.get("externalId");
         if (!CollectionUtils.isEmpty(externalIds)) {
             String externalId = externalIds.get(0);
-            LOGGER.debug("add criterion externalId {0}", externalId);
+            LOGGER.debug("add criterion externalId {}", externalId);
             query.addCriteria(Criteria.where("externalId").is(externalId));
 
         }
         List<String> states = params.get("state");
         if (!CollectionUtils.isEmpty(states)) {
             String state = states.get(0);
-            LOGGER.debug("add criterion state {0}", state);
+            LOGGER.debug("add criterion state {}", state);
             query.addCriteria(Criteria.where("state").is(StateType.fromValue(state)));
 
         }
         List<String> descriptions = params.get("description");
         if (!CollectionUtils.isEmpty(descriptions)) {
             String description = descriptions.get(0);
-            LOGGER.debug("add criterion description {0}", description);
+            LOGGER.debug("add criterion description {}", description);
             query.addCriteria(Criteria.where("description").is(description));
 
         }
@@ -77,12 +76,12 @@ public class MultiCriteriaRequestBuilder {
 
             if (!CollectionUtils.isEmpty(orderDateLts)) {
                 String orderDateLt = orderDateLts.get(0);
-                LOGGER.debug("add criterion orderDate.lt {0}", orderDateLt);
+                LOGGER.debug("add criterion orderDate.lt {}", orderDateLt);
                 orderDateCriteria.lt(convertDate(orderDateLt));
             }
             if (!CollectionUtils.isEmpty(orderDateGts)) {
                 String orderDateGt = orderDateGts.get(0);
-                LOGGER.debug("add criterion orderDate.gt {0}", orderDateGt);
+                LOGGER.debug("add criterion orderDate.gt {}", orderDateGt);
                 orderDateCriteria.gt(convertDate(orderDateGt));
             }
             query.addCriteria(orderDateCriteria);