Class AppRegistrationResource

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

public class AppRegistrationResource extends org.springframework.hateoas.RepresentationModel<AppRegistrationResource>
Rest resource for an app registration.
Author:
Glenn Renfro, Mark Fisher, Patrick Peralta, Ilayaperumal Gopinathan, Corneil du Plessis
  • Constructor Details

    • AppRegistrationResource

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

      public AppRegistrationResource(String name, String type, String uri)
    • AppRegistrationResource

      public AppRegistrationResource(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion)
      Construct a AppRegistrationResource.
      Parameters:
      name - app name
      type - app type
      version - app version
      uri - uri for app resource
      defaultVersion - is this application selected to the be default version in DSL
    • AppRegistrationResource

      public AppRegistrationResource(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion, Set<String> versions)
      Construct a AppRegistrationResource.
      Parameters:
      name - app name
      type - app type
      version - app version
      uri - uri for app resource
      metaDataUri - uri for app metadata
      defaultVersion - is this application selected to the be default version in DSL
      versions - all the registered versions of this application
    • AppRegistrationResource

      public AppRegistrationResource(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion, Set<String> versions, String label)
      Construct a AppRegistrationResource.
      Parameters:
      name - app name
      type - app type
      version - app version
      uri - uri for app resource
      metaDataUri - uri for app metadata
      defaultVersion - is this application selected to the be default version in DSL
      versions - all the registered versions of this application
      label - the label name of the application
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of the app
    • getType

      public String getType()
      Returns:
      type type of the app
    • getUri

      public String getUri()
      Returns:
      type URI for the app resource
    • getVersion

      public String getVersion()
      Returns:
      version of the app
    • getDefaultVersion

      public Boolean getDefaultVersion()
      Returns:
      if this app selected to be the default
    • getVersions

      public Set<String> getVersions()
      Returns:
      all the available versions of the app
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getMetaDataUri

      public String getMetaDataUri()