Class DetailedAppRegistrationResource
java.lang.Object
org.springframework.hateoas.RepresentationModel<AppRegistrationResource>
org.springframework.cloud.dataflow.rest.resource.AppRegistrationResource
org.springframework.cloud.dataflow.rest.resource.DetailedAppRegistrationResource
Extension of
AppRegistrationResource
that contains application options and
other detailed application information.- Author:
- Eric Bottard, Gunnar Hillert, Patrick Peralta, Mark Fisher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Dedicated subclass to workaround type erasure. -
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for serialization frameworks.DetailedAppRegistrationResource
(String name, String type, String version, String coordinates, Boolean isDefault) Construct aDetailedAppRegistrationResource
object.Construct aDetailedAppRegistrationResource
object based on the providedAppRegistrationResource
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInboundPortName
(String inboundPortName) Add application's inbound port name.void
addOption
(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty option) Add an application option.void
addOutboundPortName
(String outboundPortName) Add application's outbound port name.Return a set of application's inbound port names.Return an option groups.List<org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty>
Return a list of application options.Return a set of application's outbound port names.Return a description for this application.void
setShortDescription
(String shortDescription) Set a description for this application.Methods inherited from class org.springframework.cloud.dataflow.rest.resource.AppRegistrationResource
getDefaultVersion, getLabel, getMetaDataUri, getName, getType, getUri, getVersion, getVersions, setLabel
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
-
DetailedAppRegistrationResource
protected DetailedAppRegistrationResource()Default constructor for serialization frameworks. -
DetailedAppRegistrationResource
public DetailedAppRegistrationResource(String name, String type, String version, String coordinates, Boolean isDefault) Construct aDetailedAppRegistrationResource
object.- Parameters:
name
- application nametype
- application typeversion
- application versioncoordinates
- Maven coordinates for the application artifactisDefault
- is this the default app
-
DetailedAppRegistrationResource
Construct aDetailedAppRegistrationResource
object based on the providedAppRegistrationResource
.- 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
Add application's inbound port name.- Parameters:
inboundPortName
- application's inbound port name to add
-
addOutboundPortName
Add application's outbound port name.- Parameters:
outboundPortName
- application's outbound port name to add
-
getInboundPortNames
Return a set of application's inbound port names.- Returns:
- set of application's inbound port names.
-
getOutboundPortNames
Return a set of application's outbound port names.- Returns:
- set of application's outbound port names.
-
getShortDescription
Return a description for this application.- Returns:
- description for this application
-
getOptionGroups
Return an option groups.- Returns:
- the option groups
-
setShortDescription
Set a description for this application.- Parameters:
shortDescription
- description for application
-