[occi-wg] Query uniqueness

Ralf Nyren ralf at nyren.net
Mon Apr 11 10:59:02 CDT 2011


On Mon, 11 Apr 2011 18:51:04 +0300, Andre Merzky <andre at merzky.net> wrote:

>> This means that with user-defined Mixins an OCCI service must refuse to
>> create a Mixin for which the specified location path already is taken.
> 
> which basically means that you need a registry of valid mixins?

You need a registry of all Mixins visible to a particular user, yes. Not
sure if that is what you meant.

A simple registry could be a hash-map with "location" as the key and the
Mixin object as value. When a user attempts to add a Mixin check the
hash-map, if location is already there, return a Bad Request.

Which Mixins are valid or not in terms of scheme + term is up to the
provider to decide (afaik).

/Ralf




More information about the occi-wg mailing list