isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Tildesley <>
Subject Re: How can I search for an entity using the OID
Date Mon, 18 Nov 2013 03:25:53 GMT
Thanks Dan.


On Monday, 18 November 2013 1:32 AM, Dan Haywood <> wrote:
Yes, we can do this.

The easiest thing to do is to use the BookmarkService, eg as configured in
the quickstart example [1] or (even better) in a demo application "rrraddd"
that I put together for a conference recently [2] and now refererenced as a
tutorial from our website [3]

In [2], the SpeakerViewModel is a view model that is "backed" by an
individual Speaker entity (the domain is ConferenceSession, Speaker, Tag).
As [4] shows, you can use BookmarkService to bother convert the OID of a
Speaker into an opaque string, and convert it back again as shown in [5]

The base32() encoding is to avoid Isis getting confused between the OID of
the SpeakerViewModel and the OID of the Speaker itself that gets wrapped.

This approach should work for any entity at all; the string is basically a
URI to any object in the domain - a very powerful concept!



On 17 November 2013 08:36, David Tildesley <> wrote:

> I'm interested in the answer to that also.
> David.
> On Sunday, 17 November 2013 8:50 AM, james agada <>
> wrote:
> When creating a view model, I am retrieving the OID of a referenced entity.
> Is it possible to retrieve an entity with just the OID which is usually an
> integer
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message