net.sf.mmapps.modules.cloudprovider.impl
Class UserNodeCloudProvider
java.lang.Object
net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider
net.sf.mmapps.modules.cloudprovider.impl.ConfiguredUsernameAndPasswordCloudProvider
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
UserNodeCloudProvider
public UserNodeCloudProvider()
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 propertyvalue
- value of property- See Also:
ConfiguredUsernameAndPasswordCloudProvider.setProperty(String, String)
Copyright © 2003-2005 mmapps. All Rights Reserved.