Adding back-end support for UI filters
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / viewandinspect / task / PerformSelfLinkDeterminationTask.java
index 3433bbd..1b71971 100644 (file)
@@ -34,7 +34,8 @@ import org.onap.aai.cl.api.Logger;
 import org.onap.aai.cl.eelf.LoggerFactory;
 import org.slf4j.MDC;
 
-public class PerformSelfLinkDeterminationTask implements Supplier<SelfLinkDeterminationTransaction> {
+public class PerformSelfLinkDeterminationTask
+    implements Supplier<SelfLinkDeterminationTransaction> {
 
   private static final Logger logger =
       LoggerFactory.getInstance().getLogger(PerformSelfLinkDeterminationTask.class);
@@ -51,15 +52,17 @@ public class PerformSelfLinkDeterminationTask implements Supplier<SelfLinkDeterm
    * @param requestParameters the request parameters
    * @param aaiProvider the aai provider
    */
-  public PerformSelfLinkDeterminationTask(SelfLinkDeterminationTransaction txn, String requestParameters,
-      ActiveInventoryDataProvider aaiProvider) {
-    
+  public PerformSelfLinkDeterminationTask(SelfLinkDeterminationTransaction txn,
+      String requestParameters, ActiveInventoryDataProvider aaiProvider) {
+
     this.aaiProvider = aaiProvider;
     this.txn = txn;
     this.contextMap = MDC.getCopyOfContextMap();
   }
 
-  /* (non-Javadoc)
+  /*
+   * (non-Javadoc)
+   * 
    * @see java.util.function.Supplier#get()
    */
   @Override
@@ -74,8 +77,9 @@ public class PerformSelfLinkDeterminationTask implements Supplier<SelfLinkDeterm
 
     OperationResult opResult = null;
     try {
-      opResult = aaiProvider.queryActiveInventoryWithRetries(txn.getQueryString(), "application/json",
-          ActiveInventoryConfig.getConfig().getAaiRestConfig().getNumRequestRetries());
+      opResult =
+          aaiProvider.queryActiveInventoryWithRetries(txn.getQueryString(), "application/json",
+              ActiveInventoryConfig.getConfig().getAaiRestConfig().getNumRequestRetries());
     } catch (Exception exc) {
       opResult = new OperationResult();
       opResult.setResult(500, "Querying AAI with retry failed due to an exception.");
@@ -91,4 +95,4 @@ public class PerformSelfLinkDeterminationTask implements Supplier<SelfLinkDeterm
 
   }
 
-}
\ No newline at end of file
+}