|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.implementation.BasicCloudContext
public abstract class BasicCloudContext
This is the base class for LocalContext (which is probably its only
descendant). Some of the (static) members are package, and hence are easily accessible by other
implementors of the 'local' cloud in the current package org.mmbase.bridge.implementation.
| Constructor Summary | |
|---|---|
protected |
BasicCloudContext()
constructor to call from the MMBase class (protected, so cannot be reached from a script) |
| Method Summary | |
|---|---|
CloudContext |
assertUp()
Assert whether MMbase is up and running. |
protected boolean |
check()
|
protected void |
checkExists(String cloudName)
|
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 Note that it is generally better to use Cloud.createNodeManagerList(). |
RelationList |
createRelationList()
Returns a new, empty relation list Note that it is generally better to use Cloud.createRelationList() or NodeManager.createRelationList(). |
RelationManagerList |
createRelationManagerList()
Returns a new, empty relation manager list Note that it is generally better to use Cloud.createRelationManagerList(). |
StringList |
createStringList()
Returns a new, empty string list |
ActionRepository |
getActionRepository()
Returns the Repository with actions |
AuthenticationData |
getAuthentication()
Acquired information about the currently configuration Authentication implementation. |
Cloud |
getCloud(String cloudName)
Returns the cloud with the specified name. |
Cloud |
getCloud(String cloudName,
String authenticationType,
Map<String,?> loginInfo)
Returns the cloud with the specified name, with authentication |
Cloud |
getCloud(String cloudName,
UserContext user)
Returns the cloud with the specified name, based on an existing User object (e.g. of another Cloud.getUser() |
StringList |
getCloudNames()
Returns the names of all the clouds known to the system |
String |
getDefaultCharacterEncoding()
Returns the default character encoding, which can be used as a default. |
Locale |
getDefaultLocale()
Returns the default locale setting. |
TimeZone |
getDefaultTimeZone()
Returns the default time zone. |
Module |
getModule(String moduleName)
Returns the module with the specified name. |
ModuleList |
getModules()
Returns all modules available in this context. |
boolean |
hasModule(String moduleName)
Returns whether the module with the specified name is available. |
boolean |
isUp()
Returns whether MMbase is up and running |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.CloudContext |
|---|
getUri |
| Constructor Detail |
|---|
protected BasicCloudContext()
| Method Detail |
|---|
protected boolean check()
NotFoundException - If mmbase not running and cannot be started because mmbase.config missing
BridgeException - If mmbase not running and cannot be started (but mmbase.config was specified)public ModuleList getModules()
CloudContext
getModules in interface CloudContext
public Module getModule(String moduleName)
throws NotFoundException
CloudContext
getModule in interface CloudContextmoduleName - the name of the module to be returned
NotFoundException - if the specified module could not be foundpublic boolean hasModule(String moduleName)
CloudContext
hasModule in interface CloudContextmoduleName - the name of the module
true if the module is available
protected void checkExists(String cloudName)
throws NotFoundException
NotFoundExceptionpublic Cloud getCloud(String cloudName)
CloudContext
getCloud in interface CloudContextcloudName - The name of the cloud to be returned, this is always "mmbase".
public Cloud getCloud(String cloudName,
String authenticationType,
Map<String,?> loginInfo)
throws NotFoundException
CloudContext
getCloud in interface CloudContextcloudName - The name of the cloud to be returned, always "mmbase".authenticationType - The type of authentication, which should be
used by the authentication implementation.loginInfo - the user related login information.
NotFoundException - if the specified cloud could not be found
public Cloud getCloud(String cloudName,
UserContext user)
throws NotFoundException
CloudContextCloud.getUser()
getCloud in interface CloudContextcloudName - The name of the cloud to be returned, always "mmbase".user - The user object for which this cloud object must be created.
NotFoundException - thrown when cloud not foundpublic StringList getCloudNames()
CloudContext
getCloudNames in interface CloudContextpublic String getDefaultCharacterEncoding()
CloudContext
getDefaultCharacterEncoding in interface CloudContextpublic Locale getDefaultLocale()
CloudContext
getDefaultLocale in interface CloudContextpublic TimeZone getDefaultTimeZone()
CloudContext
getDefaultTimeZone in interface CloudContextpublic FieldList createFieldList()
CloudContext
createFieldList in interface CloudContextpublic NodeList createNodeList()
CloudContextCloud.createNodeList() or NodeManager.createNodeList().
createNodeList in interface CloudContextpublic RelationList createRelationList()
CloudContextCloud.createRelationList() or NodeManager.createRelationList().
createRelationList in interface CloudContextpublic NodeManagerList createNodeManagerList()
CloudContextCloud.createNodeManagerList().
createNodeManagerList in interface CloudContextpublic RelationManagerList createRelationManagerList()
CloudContextCloud.createRelationManagerList().
createRelationManagerList in interface CloudContextpublic ModuleList createModuleList()
CloudContext
createModuleList in interface CloudContextpublic StringList createStringList()
CloudContext
createStringList in interface CloudContext
public AuthenticationData getAuthentication()
throws NotFoundException
CloudContext
getAuthentication in interface CloudContextNotFoundException
public ActionRepository getActionRepository()
throws NotFoundException
CloudContext
getActionRepository in interface CloudContextNotFoundExceptionpublic boolean isUp()
CloudContext
isUp in interface CloudContexttrue when mmbase is runningpublic CloudContext assertUp()
CloudContext
assertUp in interface CloudContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||