Merge "Query operation path by alternate id"
[cps.git] / cps-ncmp-service / src / main / java / org / onap / cps / ncmp / api / impl / inventory / InventoryPersistence.java
index e230b3f..184b125 100644 (file)
@@ -129,6 +129,16 @@ public interface InventoryPersistence extends NcmpPersistence {
      */
     DataNode getCmHandleDataNodeByAlternateId(String alternateId);
 
+    /**
+     * Get data node that matches longest alternate id by removing elements (as defined by the separator string)
+     * from right to left.
+     *
+     * @param alternateId alternate ID
+     * @param separator   a string that separates each element from the next.
+     * @return data node
+     */
+    DataNode getCmHandleDataNodeByLongestMatchAlternateId(final String alternateId, final String separator);
+
     /**
      * Get collection of data nodes of given cm handles.
      *