|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.mongo.AuthenticatingMongoTemplate
public abstract class AuthenticatingMongoTemplate
Abstract implementation for Mongo templates. Mongo templates give access to the collections in a Mongo Database used by components of the Axon Framework. The AuthenticatingMongoTemplate takes care of the authentication against the Mongo database.
| Constructor Summary | |
|---|---|
protected |
AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String userName,
char[] password)
Initializes the MongoTemplate to connect using the given mongo instance and a database with default
name "axonframework". |
protected |
AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String databaseName,
String userName,
char[] password)
Initializes the MongoTemplate to connect using the given mongo instance and the database with given
databaseName. |
protected |
AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String databaseName,
String authenticationDatabaseName,
String userName,
char[] password)
Initializes the MongoTemplate to connect using the given mongo instance and the database with given
databaseName. |
| Method Summary | |
|---|---|
protected com.mongodb.DB |
database()
Returns a reference to the Database with the configured database name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String userName,
char[] password)
mongo instance and a database with default
name "axonframework". The given userName and password, when not null, are
used to authenticate against the database.
mongo - The Mongo instance configured to connect to the Mongo ServeruserName - The username to authenticate with. Use null to skip authenticationpassword - The password to authenticate with. Use null to skip authentication
protected AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String databaseName,
String userName,
char[] password)
mongo instance and the database with given
databaseName. The given userName and password, when not
null, are used to authenticate against the database.
mongo - The Mongo instance configured to connect to the Mongo ServerdatabaseName - The name of the database containing the datauserName - The username to authenticate with. Use null to skip authenticationpassword - The password to authenticate with. Use null to skip authentication
protected AuthenticatingMongoTemplate(com.mongodb.Mongo mongo,
String databaseName,
String authenticationDatabaseName,
String userName,
char[] password)
mongo instance and the database with given
databaseName. The given userName and password, when not
null, are used to authenticate against the database.
mongo - The Mongo instance configured to connect to the Mongo ServerdatabaseName - The name of the database containing the datauserName - The username to authenticate with. Use null to skip authenticationpassword - The password to authenticate with. Use null to skip authentication| Method Detail |
|---|
protected com.mongodb.DB database()
userName and password are ignored if the database is already
in an authenticated state.
com.mongodb.DB#isAuthenticated(),
DB#authenticate(String, char[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||