Hello,
My use case is to prevent users to post edits when a query condition is met in the edited data.
Dataset is branch versioned.
A SOI is used for that purpose, because I want the check to be true for any editing client.
The SOI is intercepting post and reconcile with post from the version management REST endpoint.
I can easily query the versioned feature class using the name of the version (eg. user.version).
Unfortunately, the request interceptor only provides the guid of the version (from the REST resource name).
I cannot find a clean way to infer the version name from the guid. I can only query the branch table:
select * from sde.sde_branches where branch_guid='{" + guid + "}'"
This implementation is fragile,as I really need something robust across databases, schema naming and access rights.
Is there a proper way to do this in an interceptor in the Java Enterprise SDK ?