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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Dedicated subclass to workaround type erasure. -
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for serialization frameworks.AppRegistrationResource
(String name, String type, String uri) AppRegistrationResource
(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion) Construct aAppRegistrationResource
.AppRegistrationResource
(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion, Set<String> versions) Construct aAppRegistrationResource
.AppRegistrationResource
(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion, Set<String> versions, String label) Construct aAppRegistrationResource
. -
Method Summary
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, equals, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hashCode, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks, toString
-
Constructor Details
-
AppRegistrationResource
protected AppRegistrationResource()Default constructor for serialization frameworks. -
AppRegistrationResource
-
AppRegistrationResource
public AppRegistrationResource(String name, String type, String version, String uri, String metaDataUri, Boolean defaultVersion) Construct aAppRegistrationResource
.- Parameters:
name
- app nametype
- app typeversion
- app versionuri
- uri for app resourcedefaultVersion
- 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 aAppRegistrationResource
.- Parameters:
name
- app nametype
- app typeversion
- app versionuri
- uri for app resourcemetaDataUri
- uri for app metadatadefaultVersion
- is this application selected to the be default version in DSLversions
- 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 aAppRegistrationResource
.- Parameters:
name
- app nametype
- app typeversion
- app versionuri
- uri for app resourcemetaDataUri
- uri for app metadatadefaultVersion
- is this application selected to the be default version in DSLversions
- all the registered versions of this applicationlabel
- the label name of the application
-
-
Method Details
-
getName
- Returns:
- the name of the app
-
getType
- Returns:
- type type of the app
-
getUri
- Returns:
- type URI for the app resource
-
getVersion
- Returns:
- version of the app
-
getDefaultVersion
- Returns:
- if this app selected to be the default
-
getVersions
- Returns:
- all the available versions of the app
-
getLabel
-
setLabel
-
getMetaDataUri
-