|
||||||||||
| 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
public class DefaultRepositoryClient
A default implementation of RepositoryClient.
| Field Summary | |
|---|---|
protected static String[] |
AUTHENTICATED_SIGNATURE
The authenticated signature. |
protected static String |
DEFAULT_PERSISTER
The default persister implementation. |
protected static String[] |
KEY_SIGNATURE
The 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 | |
|---|---|
DefaultRepositoryClient()
Constructs a new repository client. |
|
| Method Summary | |
|---|---|
Persister |
acquirePersister()
Acquires a persister through the default connection. |
Persister |
acquirePersister(Principal principal)
Acquires an authenticated persister through the default connection. |
Persister |
acquirePersister(String user,
String pswd)
Acquires an authenticated persister through the default connection. |
String |
getAuthenticatedPasswordKey()
Gets the authenticated password key. |
String |
getAuthenticatedUsernameKey()
Gets the authenticated username key. |
String |
getAuthenticationConnectionKey()
Gets the authentication connection key. |
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 alias)
Gets a connection for the specified alias. |
String |
getConnectionKey()
Gets the default connection key of the repository this client uses. |
String |
getConnectionUsername()
Gets the user's login name for the default connection. |
protected Persister |
getPersister(org.norther.tammi.root.db.DefaultRepositoryClient.Connection con,
String alias,
String username,
String password,
Principal principal)
Gets a persister through the specified connection. |
String |
getPersisterClassName()
Gets the class name of the persister implemention for the default connection. |
boolean |
isConnectionAuthenticated()
Checks whether authentication is configured for the default connection. |
void |
setAuthenticationConnection(String alias,
String userKey,
String pswdKey)
Sets authentication connection. |
protected void |
setConnection(org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
Sets the default connection. |
void |
setConnectionAuthenticated(boolean authenticated)
Sets whether authentication is configured for the default connection. |
void |
setConnectionKey(String key)
Sets the default connection key of the repository this client uses. |
void |
setConnectionPassword(String password)
Sets the user's credentials for the default connection. |
void |
setConnectionUsername(String username)
Sets the user's login name for the default connection. |
void |
setPersisterClassName(String className)
Sets the class name of the persister implementation for the default connection. |
| 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 |
| Field Detail |
|---|
protected static final String[] KEY_SIGNATURE
protected static final String[] AUTHENTICATED_SIGNATURE
protected static final String DEFAULT_PERSISTER
| Constructor Detail |
|---|
public DefaultRepositoryClient()
| Method Detail |
|---|
public String getConnectionKey()
RepositoryClient
getConnectionKey in interface RepositoryClientpublic void setConnectionKey(String key)
RepositoryClient
setConnectionKey in interface RepositoryClientkey - the connection key.public String getPersisterClassName()
RepositoryClient
getPersisterClassName in interface RepositoryClientpublic void setPersisterClassName(String className)
RepositoryClient
setPersisterClassName in interface RepositoryClientclassName - the persister class name.public String getConnectionUsername()
RepositoryClient
getConnectionUsername in interface RepositoryClientpublic void setConnectionUsername(String username)
RepositoryClient
setConnectionUsername in interface RepositoryClientusername - the user's repository connection login name.public void setConnectionPassword(String password)
RepositoryClient
setConnectionPassword in interface RepositoryClientpassword - the user's repository connection credentials.public boolean isConnectionAuthenticated()
RepositoryClient
isConnectionAuthenticated in interface RepositoryClientpublic void setConnectionAuthenticated(boolean authenticated)
RepositoryClient
setConnectionAuthenticated in interface RepositoryClientauthenticated - true for an authenticated connection, false otherwise.public String getAuthenticationConnectionKey()
RepositoryClient
getAuthenticationConnectionKey in interface RepositoryClientpublic String getAuthenticatedUsernameKey()
RepositoryClient
getAuthenticatedUsernameKey in interface RepositoryClientpublic String getAuthenticatedPasswordKey()
RepositoryClient
getAuthenticatedPasswordKey in interface RepositoryClient
public void setAuthenticationConnection(String alias,
String userKey,
String pswdKey)
RepositoryClient
setAuthenticationConnection in interface RepositoryClientalias - the authentication key.userKey - the username key.pswdKey - the password key.
public Persister acquirePersister()
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientConstructionException - if construction fails.
public Persister acquirePersister(String user,
String pswd)
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientuser - the username of the connection.pswd - the password of the connection.
ConstructionException - if construction fails.
public Persister acquirePersister(Principal principal)
throws ConstructionException
RepositoryClient
acquirePersister in interface RepositoryClientprincipal - an authenticated principal.
ConstructionException - if construction fails.
protected Persister getPersister(org.norther.tammi.root.db.DefaultRepositoryClient.Connection con,
String alias,
String username,
String password,
Principal principal)
throws ConstructionException
con - the connection to use.alias - an alternate connection alias.username - an optional username.password - an optional password.principal - an optional principal.
ReflectionException - if instantiation fails.
ConstructionException - if construction fails.protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection()
protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection(boolean cloned)
cloned - true for a cloned connection, false otherwise.
protected void setConnection(org.norther.tammi.root.db.DefaultRepositoryClient.Connection c)
c - the connection.protected org.norther.tammi.root.db.DefaultRepositoryClient.Connection getConnection(String alias)
alias - the alias to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||