Skip to content

Commit

Permalink
Add urn class in constructor for BaseSingleAspectSearchableEntityReso…
Browse files Browse the repository at this point in the history
…urce (#461)
  • Loading branch information
derekpham authored Oct 24, 2024
1 parent 196daa0 commit efa96e0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ public BaseSingleAspectSearchableEntityResource(@Nonnull Class<ASPECT> aspectCla
_valueClass = valueClass;
}

public BaseSingleAspectSearchableEntityResource(@Nonnull Class<ASPECT> aspectClass,
@Nullable Class<ASPECT_UNION> aspectUnionClass, @Nonnull Class<URN> urnClass, @Nonnull Class<VALUE> valueClass,
@Nullable Class<SNAPSHOT> snapshotClass, @Nonnull Class<INTERNAL_SNAPSHOT> internalSnapshotClass,
@Nonnull Class<INTERNAL_ASPECT_UNION> internalAspectUnionClass, @Nonnull Class<ASSET> assetClass) {
super(snapshotClass, aspectUnionClass, urnClass, internalSnapshotClass, internalAspectUnionClass, assetClass);
_aspectClass = aspectClass;
_valueClass = valueClass;
}

/**
* Takes a partial entity created by {@link #createPartialEntityFromAspect(RecordTemplate)} and the urn and
* creates the complete entity value.
Expand Down

0 comments on commit efa96e0

Please sign in to comment.