Record Class TierAction.UserManaged
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.TierAction.UserManaged
- Record Components:
entry- the manifest entryresolvedDest- absolute destination pathtemplateSha- hash of the current on-disk content (for lockfile metadata refresh; the file is not rewritten so this equalsappliedSha)appliedSha- hash of the current on-disk contentreason- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TierAction
TierAction.Skip, TierAction.UpToDate, TierAction.UserManaged, TierAction.Write -
Constructor Summary
ConstructorsConstructorDescriptionUserManaged(ManifestEntry entry, Path resolvedDest, String templateSha, String appliedSha, String reason) Compact constructor validating required fields. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedSharecord component.entry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of theresolvedDestrecord component.Returns the value of thetemplateSharecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserManaged
public UserManaged(ManifestEntry entry, Path resolvedDest, String templateSha, String appliedSha, String reason) Compact constructor validating required fields.
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
entry
Returns the value of theentryrecord component.- Specified by:
entryin interfaceTierAction- Returns:
- the value of the
entryrecord component
-
resolvedDest
Returns the value of theresolvedDestrecord component.- Specified by:
resolvedDestin interfaceTierAction- Returns:
- the value of the
resolvedDestrecord component
-
templateSha
Returns the value of thetemplateSharecord component.- Returns:
- the value of the
templateSharecord component
-
appliedSha
Returns the value of theappliedSharecord component.- Returns:
- the value of the
appliedSharecord component
-
reason
Returns the value of thereasonrecord component.- Specified by:
reasonin interfaceTierAction- Returns:
- the value of the
reasonrecord component
-