Record Class TierAction.UserManaged

java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.TierAction.UserManaged
Record Components:
entry - the manifest entry
resolvedDest - absolute destination path
templateSha - hash of the current on-disk content (for lockfile metadata refresh; the file is not rewritten so this equals appliedSha)
appliedSha - hash of the current on-disk content
reason - one-line summary — should name which element(s) were deferred
All Implemented Interfaces:
TierAction
Enclosing interface:
TierAction

public static record TierAction.UserManaged(ManifestEntry entry, Path resolvedDest, String templateSha, String appliedSha, String reason) extends Record implements TierAction
Publish must not touch resolvedDest() because at least one managed element already exists with a value the user has chosen, and policy is to defer to the user's value rather than overwrite it.

Distinct from TierAction.UpToDate: the file does not match the manifest's desired value — we simply refuse to overwrite what the user already set. A model adapter emits this state when every ensured element is already present on disk and at least one present value diverges from the manifest's value; if the whole set matches, TierAction.UpToDate is used instead.

Lockfile semantics mirror TierAction.UpToDate: model-managed provenance is refreshed but no bytes are written.

  • Constructor Details

    • UserManaged

      public UserManaged(ManifestEntry entry, Path resolvedDest, String templateSha, String appliedSha, String reason)
      Compact constructor validating required fields.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entry

      public ManifestEntry entry()
      Returns the value of the entry record component.
      Specified by:
      entry in interface TierAction
      Returns:
      the value of the entry record component
    • resolvedDest

      public Path resolvedDest()
      Returns the value of the resolvedDest record component.
      Specified by:
      resolvedDest in interface TierAction
      Returns:
      the value of the resolvedDest record component
    • templateSha

      public String templateSha()
      Returns the value of the templateSha record component.
      Returns:
      the value of the templateSha record component
    • appliedSha

      public String appliedSha()
      Returns the value of the appliedSha record component.
      Returns:
      the value of the appliedSha record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Specified by:
      reason in interface TierAction
      Returns:
      the value of the reason record component