|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultiRepositoryClient
Extends RepositoryClient by supporting multiple connections.
| 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. |
String |
getConnectionAlias(String key)
Gets the alias of the specified connection. |
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. |
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 |
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. |
| Method Detail |
|---|
String getResourceKey()
void setResourceKey(String key)
key - the resource key.String getConnectionAlias(String key)
key - the connection key.
void setConnectionAlias(String key,
String alias)
key - the connection key.alias - the connection alias.String getPersisterClassName(String key)
key - the connection key.
void setPersisterClassName(String key,
String className)
key - the connection key.className - the class name.String getConnectionUsername(String key)
key - the connection key.
void setConnectionUsername(String key,
String username)
key - the connection key.username - the user's repository connection login name.
void setConnectionPassword(String key,
String password)
key - the connection key.password - the user's repository connection credentials.boolean isConnectionAuthenticated(String key)
key - the connection key.
void setConnectionAuthenticated(String key,
boolean authenticated)
key - the connection key.authenticated - true if the connection is to be authenticated.String getAuthenticationConnectionKey(String key)
key - the connection key.
String getAuthenticatedUsernameKey(String key)
key - the connection key.
String getAuthenticatedPasswordKey(String key)
key - the connection key.
void setAuthenticationConnection(String key,
String alias,
String userKey,
String pswdKey)
key - the connection key.alias - the authentication key.userKey - the username key.pswdKey - the password key.boolean containsConnection(String key)
key - the connection key.
void removeConnection(String key)
key - the connection key.void clearConnections()
Set connectionKeySet()
Persister acquirePersister(String key)
throws ConstructionException
key - the connection key.
ConstructionException - if construction fails.
Persister acquirePersister(String key,
String user,
String pswd)
throws ConstructionException
key - the connection key.user - the username of the connection.pswd - the password of the connection.
ConstructionException - if construction fails.
Persister acquirePersister(String key,
Principal principal)
throws ConstructionException
key - the connection key.principal - an authenticated principal.
ConstructionException - if construction fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||