net.sf.mmapps.modules.cloudprovider.impl
Class DefaultCloudProvider

java.lang.Object
  extended by net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider
All Implemented Interfaces:
CloudProvider, Configurable
Direct Known Subclasses:
ClassAuthenticationCloudProvider, ConfiguredUsernameAndPasswordCloudProvider

public class DefaultCloudProvider
extends java.lang.Object
implements CloudProvider, Configurable

This CloudProvider logs in to MMBase as anonymous user

Version:
$Id: DefaultCloudProvider.java,v 1.5 2005/07/31 12:39:22 keesj Exp $
Author:
Wouter Heijke

Field Summary
protected  java.lang.String cloudcontextname
           
static java.lang.String CLOUDCONTEXTNAME_PROPERTY_NAME
          The name of the property that can be used to set teh cloudcontext name
protected  java.lang.String cloudname
           
static java.lang.String CLOUDNAME_PROPERTY_NAME
          The name of the property that can be used to set the cloud name to use
static java.lang.String DEFAULT_CLOUD_NAME
          The default cloud name to use when acquiring a cloud from MMBase.
 
Constructor Summary
DefaultCloudProvider()
           
 
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.
 void setProperty(java.lang.String name, java.lang.String value)
          Allows the cloudname and cloudcontextname to be set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLOUD_NAME

public static final java.lang.String DEFAULT_CLOUD_NAME
The default cloud name to use when acquiring a cloud from MMBase.

See Also:
Constant Field Values

CLOUDNAME_PROPERTY_NAME

public static final java.lang.String CLOUDNAME_PROPERTY_NAME
The name of the property that can be used to set the cloud name to use

See Also:
setProperty(String, String), Constant Field Values

CLOUDCONTEXTNAME_PROPERTY_NAME

public static final java.lang.String CLOUDCONTEXTNAME_PROPERTY_NAME
The name of the property that can be used to set teh cloudcontext name

See Also:
setProperty(String, String), Constant Field Values

cloudcontextname

protected java.lang.String cloudcontextname

cloudname

protected java.lang.String cloudname
Constructor Detail

DefaultCloudProvider

public DefaultCloudProvider()
Method Detail

getAnonymousCloud

public org.mmbase.bridge.Cloud getAnonymousCloud()
Description copied from interface: CloudProvider
This method should return a cloud that has the role of an anonymous cloud

Specified by:
getAnonymousCloud in interface CloudProvider
Returns:
an anonymous cloud
See Also:
CloudProvider.getAnonymousCloud()

getAdminCloud

public org.mmbase.bridge.Cloud getAdminCloud()
Description copied from interface: CloudProvider
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.

Specified by:
getAdminCloud in interface CloudProvider
Returns:
an anonymous cloud
See Also:
CloudProvider.getAdminCloud()

getCloud

public org.mmbase.bridge.Cloud getCloud()
Description copied from interface: CloudProvider
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.

Specified by:
getCloud in interface CloudProvider
Returns:
an anonymous cloud
See Also:
CloudProvider.getCloud()

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Allows the cloudname and cloudcontextname to be set

Specified by:
setProperty in interface Configurable
Parameters:
name - name of property
value - value of property


Copyright © 2003-2005 mmapps. All Rights Reserved.