Package occi :: Module registry :: Class NonePersistentRegistry
[hide private]
[frames] | no frames]

Class NonePersistentRegistry

source code

object --+    
         |    
  Registry --+
             |
            NonePersistentRegistry

None optimized/persistent registry for the OCCI service.

It is encouraged to write an own registry with e.g. DB lookups.

Created on Jun 28, 2011


Author: tmetsch

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_renderer(self, mime_type)
Retrieve a rendering for a given mime type.
source code
 
set_renderer(self, mime_type, renderer)
Retrieve a rendering for a given mime type.
source code
 
get_backend(self, category, extras)
Retrieve a backend which is able to deal with the given category.
source code
 
get_all_backends(self, entity, extras)
Retrieve all backends associated with a resource instance
source code
 
set_backend(self, category, backend, extras)
Set a backend which is able to deal with the given category.
source code
 
delete_mixin(self, mixin, extras)
Remove a mixin from the service.
source code
 
get_category(self, path, extras)
Return the category which is associated with an Location.
source code
 
get_categories(self, extras)
Return all registered categories.
source code
 
get_resource(self, key, extras)
Return a certain resource.
source code
 
add_resource(self, key, resource, extras)
Add a resource.
source code
 
delete_resource(self, key, extras)
Delete a resource.
source code
 
get_resource_keys(self, extras)
Return all keys of all resources.
source code
 
get_resources(self, extras)
Return all resources.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from Registry
 
get_default_type(self)
Returns the default mime type.
source code
 
get_extras(self, extras)
Will return what goes into the extras attribute of the entity and category.
source code
 
get_hostname(self)
Returns the hostname of the service.
source code
 
set_hostname(self, hostname)
Set the hostname of the service.
source code
Class Variables [hide private]
    Inherited from Registry
  default_mime_type = 'text/plain'
  hostname = ''
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_renderer(self, mime_type)

source code 

Retrieve a rendering for a given mime type.

mime_type -- The mime type you a looking for.

Overrides: Registry.get_renderer
(inherited documentation)

set_renderer(self, mime_type, renderer)

source code 

Retrieve a rendering for a given mime type.

mime_type -- The mime type you want to add a rendering for. renderer -- Instance of an Rendering class.

Overrides: Registry.set_renderer
(inherited documentation)

get_backend(self, category, extras)

source code 

Retrieve a backend which is able to deal with the given category.

category -- The category a backend is needed for. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_backend
(inherited documentation)

get_all_backends(self, entity, extras)

source code 

Retrieve all backends associated with a resource instance

entity -- The resource instance. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_all_backends
(inherited documentation)

set_backend(self, category, backend, extras)

source code 

Set a backend which is able to deal with the given category.

category -- The category a backend is needed for. backend -- The backend which should handle this category. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.set_backend
(inherited documentation)

delete_mixin(self, mixin, extras)

source code 

Remove a mixin from the service.

mixin -- The mixin extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.delete_mixin
(inherited documentation)

get_category(self, path, extras)

source code 

Return the category which is associated with an Location.

path -- The location which the category should define. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_category
(inherited documentation)

get_categories(self, extras)

source code 

Return all registered categories.

extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_categories
(inherited documentation)

get_resource(self, key, extras)

source code 

Return a certain resource.

key -- Unique identifier of the resource. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_resource
(inherited documentation)

add_resource(self, key, resource, extras)

source code 

Add a resource.

key -- the unique identifier. entity -- the OCCI representation. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.add_resource
(inherited documentation)

delete_resource(self, key, extras)

source code 

Delete a resource.

key -- Unique identifier of the resource. extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.delete_resource
(inherited documentation)

get_resource_keys(self, extras)

source code 

Return all keys of all resources.

extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_resource_keys
(inherited documentation)

get_resources(self, extras)

source code 

Return all resources.

extras -- Extras object - same as the one passed on to the backends.

Overrides: Registry.get_resources
(inherited documentation)