public abstract class CatalogItemDtoAbstract<T,SpecT> extends AbstractBrooklynObject implements CatalogItem<T,SpecT>
CatalogItem.CatalogBundle, CatalogItem.CatalogItemLibraries, CatalogItem.CatalogItemType
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Constructor and Description |
---|
CatalogItemDtoAbstract() |
Modifier and Type | Method and Description |
---|---|
BrooklynObjectInternal.ConfigurationSupportInternal |
config()
Config not supported for catalog item.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCatalogItemId()
The catalog item ID this object was loaded from.
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName()
A display name; recommended to be a concise single-line description.
|
java.lang.String |
getIconUrl() |
java.lang.String |
getId() |
java.lang.String |
getJavaType() |
java.util.Collection<CatalogItem.CatalogBundle> |
getLibraries() |
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getPlanYaml() |
RebindSupport<CatalogItemMemento> |
getRebindSupport() |
java.lang.String |
getRegisteredTypeName()
Deprecated.
|
abstract java.lang.Class<SpecT> |
getSpecType() |
java.lang.String |
getSymbolicName() |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isDeprecated() |
static java.util.Collection<CatalogItem.CatalogBundle> |
parseLibraries(java.util.Collection<?> possibleLibraries)
Parses an instance of CatalogLibrariesDto from the given List.
|
void |
setCatalogItemId(java.lang.String id)
Deprecated.
|
<U> U |
setConfig(ConfigKey<U> key,
U val) |
void |
setDeprecated(boolean deprecated) |
void |
setDisplayName(java.lang.String newName) |
BrooklynObject.TagSupport |
tags()
Tags are arbitrary objects which can be attached to an entity for subsequent reference.
|
java.lang.String |
toString() |
java.lang.String |
toXmlString() |
getManagementContext, getTagSupport, init, rebind, setManagementContext
getCatalogItemJavaType, getCatalogItemType
getTagSupport
public BrooklynObjectInternal.ConfigurationSupportInternal config()
getPlanYaml()
.config
in interface BrooklynObjectInternal
config
in interface Configurable
public <U> U setConfig(ConfigKey<U> key, U val)
setConfig
in interface Configurable
public java.lang.String getId()
getId
in interface Identifiable
getId
in class AbstractBrooklynObject
public java.lang.String getCatalogItemId()
BrooklynObject
This can be used to understand the appropriate classloading context, such as for versioning purposes, as well as meta-information such as branding (maybe you can even get an icon) and potentially things like resource lifecycle (if a software version is being sunsetted).
In some cases this may be set heuristically from context and so may not be accurate. Callers can set an explicit catalog item ID if inferencing is not correct.
getCatalogItemId
in interface BrooklynObject
getCatalogItemId
in interface CatalogItem<T,SpecT>
getCatalogItemId
in class AbstractBrooklynObject
public java.lang.String getJavaType()
getJavaType
in interface CatalogItem<T,SpecT>
@Deprecated public java.lang.String getName()
getName
in interface CatalogItem<T,SpecT>
@Deprecated public java.lang.String getRegisteredTypeName()
getRegisteredTypeName
in interface CatalogItem<T,SpecT>
public java.lang.String getDisplayName()
BrooklynObject
getDisplayName
in interface BrooklynObject
public java.lang.String getDescription()
getDescription
in interface CatalogItem<T,SpecT>
public java.lang.String getIconUrl()
getIconUrl
in interface CatalogItem<T,SpecT>
public java.lang.String getSymbolicName()
getSymbolicName
in interface CatalogItem<T,SpecT>
public java.lang.String getVersion()
getVersion
in interface CatalogItem<T,SpecT>
public boolean isDeprecated()
isDeprecated
in interface CatalogItem<T,SpecT>
public void setDeprecated(boolean deprecated)
setDeprecated
in interface CatalogItem<T,SpecT>
@Nonnull public java.util.Collection<CatalogItem.CatalogBundle> getLibraries()
getLibraries
in interface CatalogItem<T,SpecT>
@Nullable public java.lang.String getPlanYaml()
getPlanYaml
in interface CatalogItem<T,SpecT>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.Class<SpecT> getSpecType()
getSpecType
in interface CatalogItem<T,SpecT>
CatalogItem.getCatalogItemJavaType()
public java.lang.String toXmlString()
toXmlString
in interface CatalogItem<T,SpecT>
public RebindSupport<CatalogItemMemento> getRebindSupport()
getRebindSupport
in interface BrooklynObjectInternal
getRebindSupport
in interface CatalogItem<T,SpecT>
getRebindSupport
in interface Rebindable
public void setDisplayName(java.lang.String newName)
setDisplayName
in class AbstractBrooklynObject
public BrooklynObject.TagSupport tags()
BrooklynObject
ImmutableMap
may be used under the covers; also there is little point!);
and they should be amenable to our persistence (on-disk serialization) and our JSON serialization in the REST API.tags
in interface BrooklynObject
tags
in class AbstractBrooklynObject
@Deprecated public void setCatalogItemId(java.lang.String id)
setCatalogItemId
in interface BrooklynObjectInternal
setCatalogItemId
in class AbstractBrooklynObject
public static java.util.Collection<CatalogItem.CatalogBundle> parseLibraries(java.util.Collection<?> possibleLibraries)