Class UpdateDefinition

All Implemented Interfaces:
Serializable

public class UpdateDefinition extends UpdateIdentityProjection
Represents the definition of an update, including its metadata, requirements, and type.

An UpdateDefinition describes an available update for a resource type identified by refType and refId (e.g., a StorageServerType or ComputeServerType). It does not represent a specific in-progress operation on an instance — that is modeled by UpdateOperation, whose refType/refId point to the concrete resource instance.

Plugin authors should use MorpheusUpdateDefinitionService (async) or MorpheusSynchronousUpdateDefinitionService (sync) to create, sync, and query update definitions. The stable sync identity for matching existing records is UpdateIdentityProjection.code scoped to a given refType/refId pair.

See Also:
  • Field Details

    • version

      protected String version
    • updateOpType

      protected UpdateDefinition.OpType updateOpType
    • refType

      protected String refType
    • refId

      protected Long refId
    • updateImagePath

      protected String updateImagePath
    • imagePathType

      protected UpdateDefinition.ImagePathType imagePathType
    • peerPersistence

      protected Boolean peerPersistence
    • requiresReboot

      protected Boolean requiresReboot
    • requiresMaintenanceMode

      protected Boolean requiresMaintenanceMode
    • requiresRestart

      protected Boolean requiresRestart
    • supportsRollback

      protected Boolean supportsRollback
    • isPlugin

      protected Boolean isPlugin
    • hasMany

      protected Object hasMany
    • validateRules

      protected List<String> validateRules
    • severity

      protected String severity
      Severity of the update. Typical values: "normal", "important", "critical".
    • type

      protected String type
      Category of the update. Typical values: "security", "feature", "bugfix", "enhancement".
    • description

      protected String description
      Human-readable description of the update (e.g., changelog text). May be null.
    • enabled

      protected Boolean enabled
      Whether this update definition is active and eligible to be applied. Defaults to true.
    • zeroDowntime

      protected Boolean zeroDowntime
      Whether this update can be applied with zero downtime (no reboot, no service interruption). Defaults to false.
    • catalogVersion

      protected String catalogVersion
      Version of the update catalog or bundle this definition was sourced from. May be null if not catalog-driven.
    • updateReleaseDate

      protected Date updateReleaseDate
      Date this update was released by the vendor or source. May be null.
  • Constructor Details

    • UpdateDefinition

      public UpdateDefinition()
  • Method Details

    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getUpdateOpType

      public UpdateDefinition.OpType getUpdateOpType()
    • setUpdateOpType

      public void setUpdateOpType(UpdateDefinition.OpType updateOpType)
    • getRefType

      public String getRefType()
    • setRefType

      public void setRefType(String refType)
    • getRefId

      public Long getRefId()
    • setRefId

      public void setRefId(Long refId)
    • getUpdateImagePath

      public String getUpdateImagePath()
    • setUpdateImagePath

      public void setUpdateImagePath(String updateImagePath)
    • getImagePathType

      public UpdateDefinition.ImagePathType getImagePathType()
    • setImagePathType

      public void setImagePathType(UpdateDefinition.ImagePathType imagePathType)
    • getValidateRules

      public List<String> getValidateRules()
    • setValidateRules

      public void setValidateRules(List<String> validateRules)
    • getPeerPersistence

      public Boolean getPeerPersistence()
    • setPeerPersistence

      public void setPeerPersistence(Boolean peerPersistence)
    • getRequiresReboot

      public Boolean getRequiresReboot()
    • setRequiresReboot

      public void setRequiresReboot(Boolean requiresReboot)
    • getRequiresMaintenanceMode

      public Boolean getRequiresMaintenanceMode()
    • setRequiresMaintenanceMode

      public void setRequiresMaintenanceMode(Boolean requiresMaintenanceMode)
    • getRequiresRestart

      public Boolean getRequiresRestart()
    • setRequiresRestart

      public void setRequiresRestart(Boolean requiresRestart)
    • getSupportsRollback

      public Boolean getSupportsRollback()
    • setSupportsRollback

      public void setSupportsRollback(Boolean supportsRollback)
    • getIsPlugin

      public Boolean getIsPlugin()
    • setIsPlugin

      public void setIsPlugin(Boolean isPlugin)
    • getHasMany

      public Object getHasMany()
    • setHasMany

      public void setHasMany(Object hasMany)
    • getSeverity

      public String getSeverity()
    • setSeverity

      public void setSeverity(String severity)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getEnabled

      public Boolean getEnabled()
    • setEnabled

      public void setEnabled(Boolean enabled)
    • getZeroDowntime

      public Boolean getZeroDowntime()
    • setZeroDowntime

      public void setZeroDowntime(Boolean zeroDowntime)
    • getCatalogVersion

      public String getCatalogVersion()
    • setCatalogVersion

      public void setCatalogVersion(String catalogVersion)
    • getUpdateReleaseDate

      public Date getUpdateReleaseDate()
    • setUpdateReleaseDate

      public void setUpdateReleaseDate(Date updateReleaseDate)