org.mmbase.bridge.implementation
Class BasicCloudContext
java.lang.Object
|
+--org.mmbase.bridge.implementation.BasicCloudContext
- All Implemented Interfaces:
- CloudContext
- Direct Known Subclasses:
- LocalContext
- public class BasicCloudContext
- extends java.lang.Object
- implements CloudContext
- Author:
- Rob Vermeulen, Pierre van Rooden
|
Constructor Summary |
protected |
BasicCloudContext()
constructor to call from the MMBase class
(protected, so cannot be reached from a script) |
|
Method Summary |
Cloud |
getCloud(java.lang.String cloudName)
Returns the cloud with the specified name. |
Cloud |
getCloud(java.lang.String name,
java.lang.String application,
java.util.HashMap loginInfo)
Returns the cloud with the specified name, with authentication |
StringList |
getCloudNames()
Returns the names of all the clouds known to the system |
Module |
getModule(java.lang.String moduleName)
Returns the module with the specified name. |
ModuleList |
getModules()
Returns all modules available in this context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicCloudContext
protected BasicCloudContext()
- constructor to call from the MMBase class
(protected, so cannot be reached from a script)
getModules
public ModuleList getModules()
- Description copied from interface:
CloudContext
- Returns all modules available in this context.
- Specified by:
getModules in interface CloudContext
- Following copied from interface:
org.mmbase.bridge.CloudContext
- Returns:
- all available modules
getModule
public Module getModule(java.lang.String moduleName)
- Description copied from interface:
CloudContext
- Returns the module with the specified name.
- Specified by:
getModule in interface CloudContext
- Following copied from interface:
org.mmbase.bridge.CloudContext
- Parameters:
name - the name of the module to be returned- Returns:
- the requested module
- Throws:
ModuleNotFoundException - if the specified module could not be
found
getCloud
public Cloud getCloud(java.lang.String cloudName)
- Description copied from interface:
CloudContext
- Returns the cloud with the specified name.
- Specified by:
getCloud in interface CloudContext
- Following copied from interface:
org.mmbase.bridge.CloudContext
- Parameters:
name - the name of the cloud to be returned- Returns:
- the requested cloud
- Throws:
CloudNotFoundException - if the specified cloud could not be found
getCloud
public Cloud getCloud(java.lang.String name,
java.lang.String application,
java.util.HashMap loginInfo)
- Description copied from interface:
CloudContext
- Returns the cloud with the specified name, with authentication
- Specified by:
getCloud in interface CloudContext
- Following copied from interface:
org.mmbase.bridge.CloudContext
- Parameters:
name - the name of the cloud to be returnedauthenticationtype - the type of authentication, which should be
used by the authentication implementation.loginInfo - the user related login information.- Returns:
- the requested cloud
- Throws:
CloudNotFoundException - if the specified cloud could not be found
getCloudNames
public StringList getCloudNames()
- Description copied from interface:
CloudContext
- Returns the names of all the clouds known to the system
- Specified by:
getCloudNames in interface CloudContext
- Following copied from interface:
org.mmbase.bridge.CloudContext
- Returns:
- A StringList of all clouds names known to
our Context
MMBase 2001