org.mmbase.bridge.implementation
Class BasicCloudContext

Package class diagram package BasicCloudContext
java.lang.Object
  extended by org.mmbase.bridge.implementation.BasicCloudContext
All Implemented Interfaces:
CloudContext
Direct Known Subclasses:
LocalContext

public abstract class BasicCloudContext
extends Object
implements CloudContext

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.

Version:
$Id: BasicCloudContext.java 45336 2011-02-21 13:53:21Z michiel $
Author:
Rob Vermeulen, Pierre van Rooden

Field Summary
(package private) static MMBase mmb
          Link to the mmbase root
(package private) static TemporaryNodeManager tmpObjectManager
           
(package private) static TransactionManager transactionManager
          Transaction Manager to keep track of transactions
 
Constructor Summary
protected BasicCloudContext()
          constructor to call from the MMBase class (protected, so cannot be reached from a script)
 
Method Summary
 CloudContext assertUp()
           
protected  boolean check()
           
protected  void checkExists(String cloudName)
           
 FieldList createFieldList()
           
 ModuleList createModuleList()
           
 NodeList createNodeList()
           
 NodeManagerList createNodeManagerList()
           
 RelationList createRelationList()
           
 RelationManagerList createRelationManagerList()
           
 StringList createStringList()
           
 ActionRepository getActionRepository()
           
 AuthenticationData getAuthentication()
           
 Cloud getCloud(String cloudName)
           
 Cloud getCloud(String cloudName, String authenticationType, Map<String,?> loginInfo)
           
 Cloud getCloud(String cloudName, UserContext user)
           
 StringList getCloudNames()
           
 String getDefaultCharacterEncoding()
           
 Locale getDefaultLocale()
           
 TimeZone getDefaultTimeZone()
           
 Module getModule(String moduleName)
           
 ModuleList getModules()
           
 SearchQueryHandler getSearchQueryHandler()
           
 boolean hasModule(String moduleName)
           
 boolean isUp()
           
 
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
 

Field Detail

mmb

static MMBase mmb
Link to the mmbase root


transactionManager

static TransactionManager transactionManager
Transaction Manager to keep track of transactions


tmpObjectManager

static TemporaryNodeManager tmpObjectManager
Javadoc:
Temporary Node Manager for storing node during edits
Constructor Detail

BasicCloudContext

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

Method Detail

check

protected boolean check()
Throws:
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)

getModules

public ModuleList getModules()
Specified by:
getModules in interface CloudContext

getModule

public Module getModule(String moduleName)
                 throws NotFoundException
Specified by:
getModule in interface CloudContext
Throws:
NotFoundException

hasModule

public boolean hasModule(String moduleName)
Specified by:
hasModule in interface CloudContext

checkExists

protected void checkExists(String cloudName)
                    throws NotFoundException
Throws:
NotFoundException

getCloud

public Cloud getCloud(String cloudName)
Specified by:
getCloud in interface CloudContext

getCloud

public Cloud getCloud(String cloudName,
                      String authenticationType,
                      Map<String,?> loginInfo)
               throws NotFoundException
Specified by:
getCloud in interface CloudContext
Throws:
NotFoundException

getCloud

public Cloud getCloud(String cloudName,
                      UserContext user)
               throws NotFoundException
Specified by:
getCloud in interface CloudContext
Throws:
NotFoundException

getCloudNames

public StringList getCloudNames()
Specified by:
getCloudNames in interface CloudContext

getDefaultCharacterEncoding

public String getDefaultCharacterEncoding()
Specified by:
getDefaultCharacterEncoding in interface CloudContext
Returns:
String describing the encoding.
Since:
MMBase-1.6

getDefaultLocale

public Locale getDefaultLocale()
Specified by:
getDefaultLocale in interface CloudContext

getDefaultTimeZone

public TimeZone getDefaultTimeZone()
Specified by:
getDefaultTimeZone in interface CloudContext

createFieldList

public FieldList createFieldList()
Specified by:
createFieldList in interface CloudContext

createNodeList

public NodeList createNodeList()
Specified by:
createNodeList in interface CloudContext

createRelationList

public RelationList createRelationList()
Specified by:
createRelationList in interface CloudContext

createNodeManagerList

public NodeManagerList createNodeManagerList()
Specified by:
createNodeManagerList in interface CloudContext

createRelationManagerList

public RelationManagerList createRelationManagerList()
Specified by:
createRelationManagerList in interface CloudContext

createModuleList

public ModuleList createModuleList()
Specified by:
createModuleList in interface CloudContext

createStringList

public StringList createStringList()
Specified by:
createStringList in interface CloudContext

getAuthentication

public AuthenticationData getAuthentication()
                                     throws NotFoundException
Specified by:
getAuthentication in interface CloudContext
Throws:
NotFoundException

getActionRepository

public ActionRepository getActionRepository()
                                     throws NotFoundException
Specified by:
getActionRepository in interface CloudContext
Throws:
NotFoundException

isUp

public boolean isUp()
Specified by:
isUp in interface CloudContext

assertUp

public CloudContext assertUp()
Specified by:
assertUp in interface CloudContext

getSearchQueryHandler

public SearchQueryHandler getSearchQueryHandler()
Specified by:
getSearchQueryHandler in interface CloudContext


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36