From 4ce25b183fafe754e012e6a013b047bb26ae2a41 Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Wed, 4 Sep 2024 13:47:39 -0700 Subject: [PATCH] add resource lix setter method (#414) Co-authored-by: Yang Yang --- .../com/linkedin/metadata/restli/BaseEntityResource.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseEntityResource.java b/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseEntityResource.java index 72fdc3956..9bde4b29d 100644 --- a/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseEntityResource.java +++ b/restli-resources/src/main/java/com/linkedin/metadata/restli/BaseEntityResource.java @@ -95,10 +95,14 @@ public abstract class BaseEntityResource< private final Class _internalAspectUnionClass; private final Class _assetClass; protected final Class _urnClass; - protected final ResourceLix _resourceLix; - + protected ResourceLix _resourceLix; protected BaseTrackingManager _trackingManager = null; + // allows resource lix to be updated by real lix impl + public void setResourceLix(ResourceLix resourceLix) { + _resourceLix = resourceLix; + } + public BaseEntityResource(@Nullable Class snapshotClass, @Nullable Class aspectUnionClass, @Nonnull Class internalSnapshotClass, @Nonnull Class internalAspectUnionClass, @Nonnull Class assetClass) {