org.springframework.cloud.dataflow.core

## Class AppRegistration

- java.lang.Object
- - org.springframework.cloud.dataflow.core.AbstractEntity
  - - org.springframework.cloud.dataflow.core.AppRegistration

- All Implemented Interfaces:
    Comparable<AppRegistration>

      @Entity
      public class AppRegistration
      extends AbstractEntity
      implements Comparable<AppRegistration>

  Models the registration of applications.
  Author:
    Patrick Peralta, Mark Fisher, Christian Tzolov, Vinicius Carvalho, Ilayaperumal Gopinathan

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AppRegistration()`
    `AppRegistration(String name, ApplicationType type, String version, URI uri, URI metadataUri)` Construct an `AppRegistration` object.
    `AppRegistration(String name, ApplicationType type, URI uri)` Construct an `AppRegistration` object with empty version and metadata uri
    `AppRegistration(String name, ApplicationType type, URI uri, URI metadataUri)` Construct an `AppRegistration` object with empty version

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(AppRegistration that)`
    `boolean` | `equals(Object o)`
    `URI` | `getMetadataUri()`
    `String` | `getName()`
    `ApplicationType` | `getType()`
    `URI` | `getUri()`
    `String` | `getVersion()`
    `HashSet<String>` | `getVersions()`
    `int` | `hashCode()`
    `Boolean` | `isDefaultVersion()`
    `void` | `setDefaultVersion(Boolean defaultVersion)`
    `void` | `setMetadataUri(URI metadataUri)`
    `void` | `setName(String name)`
    `void` | `setType(ApplicationType type)`
    `void` | `setUri(URI uri)`
    `void` | `setVersion(String version)`
    `void` | `setVersions(HashSet<String> versions)`
    `String` | `toString()`

    - ### Methods inherited from class org.springframework.cloud.dataflow.core.AbstractEntity

      `getId, getObjectVersion`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AppRegistration

          public AppRegistration()

    - #### AppRegistration

          public AppRegistration(String name,
                                 ApplicationType type,
                                 URI uri)

      Construct an `AppRegistration` object with empty version and metadata uri
      Parameters:
        `name` - app name
        `type` - app type
        `uri` - URI for the app resource

    - #### AppRegistration

          public AppRegistration(String name,
                                 ApplicationType type,
                                 URI uri,
                                 URI metadataUri)

      Construct an `AppRegistration` object with empty version
      Parameters:
        `name` - app name
        `type` - app type
        `uri` - URI for the app resource
        `metadataUri` - URI for the app metadata resource

    - #### AppRegistration

          public AppRegistration(String name,
                                 ApplicationType type,
                                 String version,
                                 URI uri,
                                 URI metadataUri)

      Construct an `AppRegistration` object.
      Parameters:
        `name` - app name
        `type` - app type
        `version` - app version
        `uri` - URI for the app resource
        `metadataUri` - URI for the app metadata resource

  - ### Method Detail

    - #### getName

          public String getName()

      Returns:
        the name of the app

    - #### setName

          public void setName(String name)

    - #### getType

          public ApplicationType getType()

      Returns:
        the type of the app

    - #### setType

          public void setType(ApplicationType type)

    - #### getVersion

          public String getVersion()

      Returns:
        the version of the app

    - #### setVersion

          public void setVersion(String version)

    - #### getUri

          public URI getUri()

      Returns:
        the URI of the app

    - #### setUri

          public void setUri(URI uri)

    - #### getMetadataUri

          public URI getMetadataUri()

    - #### setMetadataUri

          public void setMetadataUri(URI metadataUri)

    - #### isDefaultVersion

          public Boolean isDefaultVersion()

    - #### setDefaultVersion

          public void setDefaultVersion(Boolean defaultVersion)

    - #### getVersions

          public HashSet<String> getVersions()

    - #### setVersions

          public void setVersions(HashSet<String> versions)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### compareTo

          public int compareTo(AppRegistration that)

      Specified by:
        `compareTo` in interface `Comparable<AppRegistration>`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.