Class DetailedAppRegistrationResource

java.lang.Object
org.springframework.hateoas.RepresentationModel<AppRegistrationResource>
org.springframework.cloud.dataflow.rest.resource.AppRegistrationResource
org.springframework.cloud.dataflow.rest.resource.DetailedAppRegistrationResource

public class DetailedAppRegistrationResource extends AppRegistrationResource
Extension of AppRegistrationResource that contains application options and other detailed application information.
Author:
Eric Bottard, Gunnar Hillert, Patrick Peralta, Mark Fisher
  • Constructor Details

    • DetailedAppRegistrationResource

      protected DetailedAppRegistrationResource()
      Default constructor for serialization frameworks.
    • DetailedAppRegistrationResource

      public DetailedAppRegistrationResource(String name, String type, String version, String coordinates, Boolean isDefault)
      Construct a DetailedAppRegistrationResource object.
      Parameters:
      name - application name
      type - application type
      version - application version
      coordinates - Maven coordinates for the application artifact
      isDefault - is this the default app
    • DetailedAppRegistrationResource

      public DetailedAppRegistrationResource(AppRegistrationResource resource)
      Construct a DetailedAppRegistrationResource object based on the provided AppRegistrationResource.
      Parameters:
      resource - AppRegistrationResource from which to obtain app registration data
  • Method Details

    • addOption

      public void addOption(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty option)
      Add an application option.
      Parameters:
      option - application option to add
    • getOptions

      public List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty> getOptions()
      Return a list of application options.
      Returns:
      list of application options
    • addInboundPortName

      public void addInboundPortName(String inboundPortName)
      Add application's inbound port name.
      Parameters:
      inboundPortName - application's inbound port name to add
    • addOutboundPortName

      public void addOutboundPortName(String outboundPortName)
      Add application's outbound port name.
      Parameters:
      outboundPortName - application's outbound port name to add
    • getInboundPortNames

      public Set<String> getInboundPortNames()
      Return a set of application's inbound port names.
      Returns:
      set of application's inbound port names.
    • getOutboundPortNames

      public Set<String> getOutboundPortNames()
      Return a set of application's outbound port names.
      Returns:
      set of application's outbound port names.
    • getShortDescription

      public String getShortDescription()
      Return a description for this application.
      Returns:
      description for this application
    • getOptionGroups

      public Map<String,Set<String>> getOptionGroups()
      Return an option groups.
      Returns:
      the option groups
    • setShortDescription

      public void setShortDescription(String shortDescription)
      Set a description for this application.
      Parameters:
      shortDescription - description for application