
11 Apr
2011
11 Apr
'11
3:59 p.m.
On Mon, 11 Apr 2011 18:51:04 +0300, Andre Merzky <andre@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