|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.root.db.DefaultRepositoryClient
org.norther.tammi.root.db.DefaultMultiRepositoryClient
public class DefaultMultiRepositoryClient
A default implementation of MultiRepositoryClient.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.root.db.DefaultRepositoryClient |
|---|
AUTHENTICATED_SIGNATURE, DEFAULT_PERSISTER, KEY_SIGNATURE |
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultMultiRepositoryClient()
Constructs a new repository client. |
|
| Method Summary | |
|---|---|
Persister |
acquirePersister(String key)
Acquires a persister through the specified connection. |
Persister |
acquirePersister(String key,
Principal principal)
Acquires an authenticated persister through the specified connection. |
Persister |
acquirePersister(String key,
String user,
String pswd)
Acquires an authenticated persister through the specified connection. |
void |
clearConnections()
Clears all connections. |
Set |
connectionKeySet()
Returns a read-only set of available connection aliases. |
boolean |
containsConnection(String key)
Checks the specified connection. |
String |
getAuthenticatedPasswordKey(String key)
Gets the authenticated password key of the specified connection. |
String |
getAuthenticatedUsernameKey(String key)
Gets the authenticated username key of the specified connection. |
String |
getAuthenticationConnectionKey(String key)
Gets the authentication connection key of the specified connection. |
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection |
getConnection()
Gets the default connection. |
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection |
getConnection(boolean cloned)
Gets the optionally cloned default connection. |
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection |
getConnection(String key)
Gets the specified connection. |
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection |
getConnection(String key,
boolean cloned)
Gets the specified and optionally cloned connection. |
String |
getConnectionAlias(String key)
Gets the alias of the specified connection. |
String |
getConnectionKey()
Gets the default connection key of the repository this client uses. |
String |
getConnectionUsername(String key)
Gets the user's login name of the specified connection. |
String |
getPersisterClassName(String key)
Gets the class name of the persister implementation of the specified connection. |
String |
getResourceKey()
Gets the resource connection key of the repository this client uses. |
boolean |
isConnectionAuthenticated(String key)
Checks whether authentication is configured for the specified connection. |
void |
removeConnection(String key)
Removes the specified connection. |
void |
setAuthenticationConnection(String key,
String alias,
String userKey,
String pswdKey)
Sets authentication connection of the specified connection. |
protected void |
setConnection(org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
Sets the default connection. |
protected void |
setConnection(String key,
org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
Sets the specified connection. |
void |
setConnectionAlias(String key,
String alias)
Sets the alias of the specified connection. |
void |
setConnectionAuthenticated(String key,
boolean authenticated)
Sets whether authentication is configured for the specified connection. |
void |
setConnectionKey(String key)
Sets the default connection key of the repository this client uses. |
void |
setConnectionPassword(String key,
String password)
Sets the user's credentials of the specified connection. |
void |
setConnectionUsername(String key,
String username)
Sets the user's login name of the specified connection. |
void |
setPersisterClassName(String key,
String className)
Sets the class name of the persister implementation of the specified connection. |
void |
setResourceKey(String key)
Sets the resource connection key of the repository this client uses. |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.root.db.RepositoryClient |
|---|
acquirePersister, acquirePersister, acquirePersister, getAuthenticatedPasswordKey, getAuthenticatedUsernameKey, getAuthenticationConnectionKey, getConnectionUsername, getPersisterClassName, isConnectionAuthenticated, setAuthenticationConnection, setConnectionAuthenticated, setConnectionPassword, setConnectionUsername, setPersisterClassName |
| Constructor Detail |
|---|
public DefaultMultiRepositoryClient()
| Method Detail |
|---|
public String getConnectionKey()
RepositoryClient
getConnectionKey in interface RepositoryClientgetConnectionKey in class DefaultRepositoryClientpublic void setConnectionKey(String key)
RepositoryClient
setConnectionKey in interface RepositoryClientsetConnectionKey in class DefaultRepositoryClientkey - the connection key.public String getResourceKey()
MultiRepositoryClient
getResourceKey in interface MultiRepositoryClientpublic void setResourceKey(String key)
MultiRepositoryClient
setResourceKey in interface MultiRepositoryClientkey - the resource key.public String getConnectionAlias(String key)
MultiRepositoryClient
getConnectionAlias in interface MultiRepositoryClientkey - the connection key.
public void setConnectionAlias(String key,
String alias)
MultiRepositoryClient
setConnectionAlias in interface MultiRepositoryClientkey - the connection key.alias - the connection alias.public String getPersisterClassName(String key)
MultiRepositoryClient
getPersisterClassName in interface MultiRepositoryClientkey - the connection key.
public void setPersisterClassName(String key,
String className)
MultiRepositoryClient
setPersisterClassName in interface MultiRepositoryClientkey - the connection key.className - the class name.public String getConnectionUsername(String key)
MultiRepositoryClient
getConnectionUsername in interface MultiRepositoryClientkey - the connection key.
public void setConnectionUsername(String key,
String username)
MultiRepositoryClient
setConnectionUsername in interface MultiRepositoryClientkey - the connection key.username - the user's repository connection login name.
public void setConnectionPassword(String key,
String password)
MultiRepositoryClient
setConnectionPassword in interface MultiRepositoryClientkey - the connection key.password - the user's repository connection credentials.public boolean isConnectionAuthenticated(String key)
MultiRepositoryClient
isConnectionAuthenticated in interface MultiRepositoryClientkey - the connection key.
public void setConnectionAuthenticated(String key,
boolean authenticated)
MultiRepositoryClient
setConnectionAuthenticated in interface MultiRepositoryClientkey - the connection key.authenticated - true if the connection is to be authenticated.public String getAuthenticationConnectionKey(String key)
MultiRepositoryClient
getAuthenticationConnectionKey in interface MultiRepositoryClientkey - the connection key.
public String getAuthenticatedUsernameKey(String key)
MultiRepositoryClient
getAuthenticatedUsernameKey in interface MultiRepositoryClientkey - the connection key.
public String getAuthenticatedPasswordKey(String key)
MultiRepositoryClient
getAuthenticatedPasswordKey in interface MultiRepositoryClientkey - the connection key.
public void setAuthenticationConnection(String key,
String alias,
String userKey,
String pswdKey)
MultiRepositoryClient
setAuthenticationConnection in interface MultiRepositoryClientkey - the connection key.alias - the authentication key.userKey - the username key.pswdKey - the password key.public boolean containsConnection(String key)
MultiRepositoryClient
containsConnection in interface MultiRepositoryClientkey - the connection key.
public void removeConnection(String key)
MultiRepositoryClient
removeConnection in interface MultiRepositoryClientkey - the connection key.public void clearConnections()
MultiRepositoryClient
clearConnections in interface MultiRepositoryClientpublic Set connectionKeySet()
MultiRepositoryClient
connectionKeySet in interface MultiRepositoryClient
public Persister acquirePersister(String key)
throws ConstructionException
MultiRepositoryClient
acquirePersister in interface MultiRepositoryClientkey - the connection key.
ConstructionException - if construction fails.
public Persister acquirePersister(String key,
String user,
String pswd)
throws ConstructionException
MultiRepositoryClient
acquirePersister in interface MultiRepositoryClientkey - the connection key.user - the username of the connection.pswd - the password of the connection.
ConstructionException - if construction fails.
public Persister acquirePersister(String key,
Principal principal)
throws ConstructionException
MultiRepositoryClient
acquirePersister in interface MultiRepositoryClientkey - the connection key.principal - an authenticated principal.
ConstructionException - if construction fails.protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection()
DefaultRepositoryClient
getConnection in class DefaultRepositoryClientprotected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection(boolean cloned)
DefaultRepositoryClient
getConnection in class DefaultRepositoryClientcloned - true for a cloned connection, false otherwise.
protected void setConnection(org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
DefaultRepositoryClient
setConnection in class DefaultRepositoryClientc - the connection.protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection(String key)
getConnection in class DefaultRepositoryClientkey - the connection key.
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection(String key,
boolean cloned)
key - the connection key.cloned - true for a cloned connection, false otherwise.
protected void setConnection(String key,
org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
key - the connection key.c - the connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||