brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [02/39] brooklyn-server git commit: Implement getCatalogItemSuperIds in CatalogItemDtoAbstract.
Date Fri, 21 Apr 2017 22:55:21 GMT
Implement getCatalogItemSuperIds in CatalogItemDtoAbstract.

As noted at https://github.com/apache/brooklyn-server/pull/338#discussion_r79871837


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/42b4c3e0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/42b4c3e0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/42b4c3e0

Branch: refs/heads/master
Commit: 42b4c3e0cc4ab268115f5c7231c6adbbe68e4aca
Parents: a5c6978
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Authored: Mon Sep 26 16:03:17 2016 +0100
Committer: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Committed: Thu Apr 20 11:18:42 2017 +0100

----------------------------------------------------------------------
 .../brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/42b4c3e0/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java
b/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java
index 41ed6a1..82a210f 100644
--- a/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java
+++ b/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogItemDtoAbstract.java
@@ -20,6 +20,7 @@ package org.apache.brooklyn.core.catalog.internal;
 
 import java.util.Collection;
 import java.util.Collections;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
@@ -105,6 +106,11 @@ public abstract class CatalogItemDtoAbstract<T, SpecT> extends
AbstractBrooklynO
     }
 
     @Override
+    public List<String> getCatalogItemSuperIds() {
+        return ImmutableList.of(getCatalogItemId());
+    }
+
+    @Override
     public String getJavaType() {
         if (javaType != null) return javaType;
         return type;


Mime
View raw message