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

Version:
$Id: BasicCloudContext.java,v 1.27.2.1 2002/11/18 12:28:29 pierre Exp $
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
 FieldList createFieldList()
          Returns a new, empty field list
 ModuleList createModuleList()
          Returns a new, empty module list
 NodeList createNodeList()
          Returns a new, empty node list
 NodeManagerList createNodeManagerList()
          Returns a new, empty node manager list
 RelationList createRelationList()
          Returns a new, empty relation list
 RelationManagerList createRelationManagerList()
          Returns a new, empty relation manager list
 StringList createStringList()
          Returns a new, empty string list
 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.Map loginInfo)
          Returns the cloud with the specified name, with authentication
 StringList getCloudNames()
          Returns the names of all the clouds known to the system
 java.lang.String getDefaultCharacterEncoding()
          Returns the default character encoding, which can be used as a default.
 java.util.Locale getDefaultLocale()
          Returns the default locale setting.
 Module getModule(java.lang.String moduleName)
          Returns the module with the specified name.
 ModuleList getModules()
          Returns all modules available in this context.
 boolean hasModule(java.lang.String moduleName)
          Returns whether the module with the specified name is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCloudContext

protected BasicCloudContext()
constructor to call from the MMBase class (protected, so cannot be reached from a script)
Method Detail

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)
                 throws NotFoundException
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:
NotFoundException - if the specified module could not be found

hasModule

public boolean hasModule(java.lang.String moduleName)
Description copied from interface: CloudContext
Returns whether the module with the specified name is available.
Specified by:
hasModule in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Parameters:
name - the name of the module
Returns:
true if the module is available

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.Map loginInfo)
               throws NotFoundException
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 returned
authenticationtype - the type of authentication, which should be used by the authentication implementation.
loginInfo - the user related login information.
Returns:
the requested cloud
Throws:
NotFoundException - 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

getDefaultCharacterEncoding

public java.lang.String getDefaultCharacterEncoding()
Description copied from interface: CloudContext
Returns the default character encoding, which can be used as a default.
Specified by:
getDefaultCharacterEncoding in interface CloudContext
Returns:
String describing the encoding.
Since:
MMBase-1.6

getDefaultLocale

public java.util.Locale getDefaultLocale()
Description copied from interface: CloudContext
Returns the default locale setting.
Specified by:
getDefaultLocale in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
A Locale object

createFieldList

public FieldList createFieldList()
Description copied from interface: CloudContext
Returns a new, empty field list
Specified by:
createFieldList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createNodeList

public NodeList createNodeList()
Description copied from interface: CloudContext
Returns a new, empty node list
Specified by:
createNodeList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createRelationList

public RelationList createRelationList()
Description copied from interface: CloudContext
Returns a new, empty relation list
Specified by:
createRelationList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createNodeManagerList

public NodeManagerList createNodeManagerList()
Description copied from interface: CloudContext
Returns a new, empty node manager list
Specified by:
createNodeManagerList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createRelationManagerList

public RelationManagerList createRelationManagerList()
Description copied from interface: CloudContext
Returns a new, empty relation manager list
Specified by:
createRelationManagerList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createModuleList

public ModuleList createModuleList()
Description copied from interface: CloudContext
Returns a new, empty module list
Specified by:
createModuleList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list

createStringList

public StringList createStringList()
Description copied from interface: CloudContext
Returns a new, empty string list
Specified by:
createStringList in interface CloudContext
Following copied from interface: org.mmbase.bridge.CloudContext
Returns:
The empty list


MMBase build 1.6.5.20030923