|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryClient
An interface to repository clients interacting with a repository through a persister. The repository connection can be specified with the corresponding methods or through a property file.
| 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. |
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. |
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. |
void |
setConnectionAuthenticated(boolean auth)
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. |
| Method Detail |
|---|
String getConnectionKey()
void setConnectionKey(String key)
key - the connection key.String getPersisterClassName()
void setPersisterClassName(String className)
className - the persister class name.String getConnectionUsername()
void setConnectionUsername(String username)
username - the user's repository connection login name.void setConnectionPassword(String password)
password - the user's repository connection credentials.boolean isConnectionAuthenticated()
void setConnectionAuthenticated(boolean auth)
auth - true for an authenticated connection, false otherwise.String getAuthenticationConnectionKey()
String getAuthenticatedUsernameKey()
String getAuthenticatedPasswordKey()
void setAuthenticationConnection(String alias,
String userKey,
String pswdKey)
alias - the authentication key.userKey - the username key.pswdKey - the password key.
Persister acquirePersister()
throws ConstructionException
ConstructionException - if construction fails.
Persister acquirePersister(String user,
String pswd)
throws ConstructionException
user - the username of the connection.pswd - the password of the connection.
ConstructionException - if construction fails.
Persister acquirePersister(Principal principal)
throws ConstructionException
principal - an authenticated principal.
ConstructionException - if construction fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||