brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m4rkmckenna <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #810: REST API for bundles, types, and subtypes
Date Wed, 20 Sep 2017 11:20:45 GMT
Github user m4rkmckenna commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/810#discussion_r139935349
  
    --- Diff: rest/rest-api/src/main/java/org/apache/brooklyn/rest/domain/TypeSummary.java
---
    @@ -0,0 +1,287 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.brooklyn.rest.domain;
    +
    +import java.util.Map;
    +import java.util.Set;
    +
    +import org.apache.brooklyn.api.typereg.BrooklynTypeRegistry.RegisteredTypeKind;
    +import org.apache.brooklyn.api.typereg.RegisteredType;
    +import org.apache.brooklyn.util.collections.MutableMap;
    +import org.apache.brooklyn.util.javalang.JavaClassNames;
    +import org.apache.brooklyn.util.text.NaturalOrderComparator;
    +import org.apache.brooklyn.util.text.VersionComparator;
    +
    +import com.fasterxml.jackson.annotation.JsonAnyGetter;
    +import com.fasterxml.jackson.annotation.JsonAnySetter;
    +import com.fasterxml.jackson.annotation.JsonIgnore;
    +import com.fasterxml.jackson.annotation.JsonInclude;
    +import com.fasterxml.jackson.annotation.JsonInclude.Include;
    +import com.google.common.collect.ComparisonChain;
    +
    +public class TypeSummary implements Comparable<TypeSummary> {
    +
    +    private final String symbolicName;
    +    private final String version;
    +    private final String containingBundle;
    +    private final RegisteredTypeKind kind;
    +    
    +    @JsonInclude(value=Include.NON_EMPTY)
    +    private final String displayName;
    +    @JsonInclude(value=Include.NON_EMPTY)
    +    private final String description;
    +    @JsonInclude(value=Include.NON_EMPTY)
    +    private String iconUrl;
    +
    +    @JsonInclude(value=Include.NON_EMPTY)
    +    private Set<String> aliases;
    +    @JsonInclude(value=Include.NON_EMPTY)
    +    private Set<Object> supertypes;
    --- End diff --
    
    This should be `Set<String>`


---

Mime
View raw message