Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/616#discussion_r29550865
--- Diff:
usage/rest-server/src/main/java/brooklyn/rest/resources/ApplicationResource.java
---
@@ -216,9 +222,18 @@ public JsonNode fetch(String entityIds) {
@Override
public List<ApplicationSummary> list() {
+ return list(".*");
+ }
+
+ @Override
+ public List<ApplicationSummary> list(String typeRegex) {
+ if (Strings.isBlank(typeRegex)) {
+ typeRegex = ".*";
+ }
return FluentIterable
.from(mgmt().getApplications())
.filter(EntitlementPredicates.isEntitled(mgmt().getEntitlementManager(),
Entitlements.SEE_ENTITY))
+ .filter(EntityPredicates.hasInterfaceMatching(typeRegex))
--- End diff --
For the record, another option would be to use `EntityType.getName()`, but
I prefer yours - good to be able to find everything of type for example
`DynamicCluster` including sub-types.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---