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

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

public class UserNodeCloudProvider
extends ConfiguredUsernameAndPasswordCloudProvider

This CloudProvider reads a node in mmbase defined by a alias and uses the account and password field to acquire credentials. The default alias name used is "users.admin"

Version:
$Id: UserNodeCloudProvider.java,v 1.3 2005/07/31 12:39:47 keesj Exp $
Author:
Nico Klasens

Field Summary
static java.lang.String ALIAS_PROPERTY_NAME
          The name of the property used to determine the node alias from wich to get credentials.
static java.lang.String DEFAULT_ALIAS_NAME
          the default alias name used
 
Fields inherited from class net.sf.mmapps.modules.cloudprovider.impl.ConfiguredUsernameAndPasswordCloudProvider
AUTHENTICATION_METHOD_NAME, PASSWORD_PROPERTY_NAME, USERNAME_PROPERTY_NAME
 
Fields inherited from class net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider
cloudcontextname, CLOUDCONTEXTNAME_PROPERTY_NAME, cloudname, CLOUDNAME_PROPERTY_NAME, DEFAULT_CLOUD_NAME
 
Constructor Summary
UserNodeCloudProvider()
           
 
Method Summary
 org.mmbase.bridge.Cloud getAdminCloud()
          This method should return a cloud that can be used for administration purposes.
 void setProperty(java.lang.String name, java.lang.String value)
          Allows the alias of the admin node to be set
 
Methods inherited from class net.sf.mmapps.modules.cloudprovider.impl.ConfiguredUsernameAndPasswordCloudProvider
getCloud, setPassword, setUsername
 
Methods inherited from class net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider
getAnonymousCloud
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS_PROPERTY_NAME

public static final java.lang.String ALIAS_PROPERTY_NAME
The name of the property used to determine the node alias from wich to get credentials.

See Also:
Constant Field Values

DEFAULT_ALIAS_NAME

public static final java.lang.String DEFAULT_ALIAS_NAME
the default alias name used

See Also:
Constant Field Values
Constructor Detail

UserNodeCloudProvider

public UserNodeCloudProvider()
Method Detail

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
Overrides:
getAdminCloud in class ConfiguredUsernameAndPasswordCloudProvider
Returns:
a cloud instance using the configured user name and password
See Also:
CloudProvider.getAdminCloud()

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Allows the alias of the admin node to be set

Specified by:
setProperty in interface Configurable
Overrides:
setProperty in class ConfiguredUsernameAndPasswordCloudProvider
Parameters:
name - name of property
value - value of property
See Also:
ConfiguredUsernameAndPasswordCloudProvider.setProperty(String, String)


Copyright © 2003-2005 mmapps. All Rights Reserved.