public class UriRemoteCloudContext_Proxy extends RemoteCloudContext_Proxy
| Constructor and Description |
|---|
UriRemoteCloudContext_Proxy(RemoteCloudContext remoteObject,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
Cloud |
getCloud(String name)
Returns the cloud with the specified name.
|
Cloud |
getCloud(String name,
String authenticationType,
Map<String,?> loginInfo)
Returns the cloud with the specified name, with authentication
|
Cloud |
getCloud(String name,
UserContext user)
Returns the cloud with the specified name, based on an existing User object.
|
protected RemoteCloud |
getRemote(Cloud cloud) |
String |
getUri()
The String which was usesd, and could be used again to acquire this cloud context using
ContextProvider.getCloudContext(String). |
assertUp, createFieldList, createModuleList, createNodeList, createNodeManagerList, createRelationList, createRelationManagerList, createStringList, getActionRepository, getAuthentication, getCloudNames, getDefaultCharacterEncoding, getDefaultLocale, getDefaultTimeZone, getModule, getModules, getWrappedObject, hasModule, isUpequals, getMapperCode, hashCode, toStringpublic UriRemoteCloudContext_Proxy(RemoteCloudContext remoteObject, String uri)
public String getUri()
CloudContextContextProvider.getCloudContext(String).getUri in interface CloudContextgetUri in class RemoteCloudContext_Proxyprotected RemoteCloud getRemote(Cloud cloud)
public Cloud getCloud(String name)
CloudContextCloudContext.getCloudNames().getCloud in interface CloudContextgetCloud in class RemoteCloudContext_Proxyname - The name of the cloud to be returned, this is very often "mmbase".public Cloud getCloud(String name, String authenticationType, Map<String,?> loginInfo) throws NotFoundException
CloudContextgetCloud in interface CloudContextgetCloud in class RemoteCloudContext_Proxyname - The name of the cloud to be returned. See CloudContext.getCloudNames()authenticationType - The type of authentication, which should be
used by the authentication implementation.. This is one of the
strings returned by CloudContext.getAuthentication().AuthenticationData.getTypes().
Typically, 'anonymous', 'class' and 'name/password' are
supported.loginInfo - The required user information and credentials. What exactly is
required, depends on the Authentication implementation,
and the value of the authenticationType parameter.
If no credentials are needed null can be specified
(This for example is the case with authenticationType 'class').
It is possible to create this Map using #getAuthentcation.AuthenticationData.createParameters(String).Parameters.toMap(java.util.Map<java.lang.String, java.lang.Object>).
That e.g. makes it possible to know beforehand what keys can be
used in the loginInfo Map, given a certain authenticationType.NotFoundException - if the specified cloud could not be foundpublic Cloud getCloud(String name, UserContext user) throws NotFoundException
CloudContextCloud.getUser() or directly from Authentication.login(java.lang.String, java.util.Map<java.lang.String, ?>, java.lang.Object[])).
The security implementation may depend on implementation details of this
UserContext.getCloud in interface CloudContextgetCloud in class RemoteCloudContext_Proxyname - The name of the cloud to be returned. See CloudContext.getCloudNames().user - The user object for which this cloud object must be created. Many
security implementation require this object to be created by
themselves.NotFoundException - thrown when cloud not foundMMBase 1.9-SNAPSHOT - ${javadoctimestamp}