net.sf.mmapps.modules.cloudprovider
Interface CloudProvider

All Known Implementing Classes:
AdminPropertiesCloudProvider, ClassAuthenticationCloudProvider, ConfiguredUsernameAndPasswordCloudProvider, DefaultCloudProvider, UserNodeCloudProvider

public interface CloudProvider

CloudProvider is a configurable MMBase cloud provider that does not required client to to provide credentials. An instance of a cloud provider is acquired by calling CloudProviderFactory.getCloudProvider()

CloudProvider defines a few methods to get a cloud.

getAnonymousCloud()
Returns a cloud with a low rank, typically a cloud that has no write access to the MMBase cloud.
getAdminCloud()
Returns a cloud that should be able to save nodes.
getCloud()
Returns a cloud, this cloud should have write access. Depending on the implementation this method might give different type of clouds


Version:
$Id: CloudProvider.java,v 1.6 2005/07/31 12:34:26 keesj Exp $
Author:
Kees Jongenburger

Method Summary
 org.mmbase.bridge.Cloud getAdminCloud()
          This method should return a cloud that can be used for administration purposes.
 org.mmbase.bridge.Cloud getAnonymousCloud()
          This method should return a cloud that has the role of an anonymous cloud
 org.mmbase.bridge.Cloud getCloud()
          This is the default method to get an MMBase cloud instance.
 

Method Detail

getAnonymousCloud

org.mmbase.bridge.Cloud getAnonymousCloud()
This method should return a cloud that has the role of an anonymous cloud

Returns:
an anonymous MMBase cloud

getAdminCloud

org.mmbase.bridge.Cloud getAdminCloud()
This method should return a cloud that can be used for administration purposes. Possible tasks that could be done with the returned instance are changing the context of a node or creating system nodes.

Returns:
a cloud with administrator role

getCloud

org.mmbase.bridge.Cloud getCloud()
This is the default method to get an MMBase cloud instance. What type of cloud instance is returned depends on the configuration of the CloudProvider. It should be assumed that the returned cloud instance is suited for the task is will be used.

Returns:
a cloud


Copyright © 2003-2005 mmapps. All Rights Reserved.