|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.dataresource.conx.ConnectionManager
This is an abstract interface that defines a class to represent a data resource and provide access to that resource.
| Field Summary | |
protected java.lang.String |
mDriverClass
|
protected static org.apache.log4j.Logger |
mLog
|
protected java.lang.String |
mRoleMapClass
|
protected RoleMapper |
mRoleMapper
|
protected java.lang.String |
mURI
|
| Constructor Summary | |
ConnectionManager(ConnectionConfig config)
This method is used to encapsulate any initialization code that a particular concrete DataResource object might need. |
|
| Method Summary | |
protected DatabaseRole |
mapCertificate(java.lang.String userCredentials)
No doubt this method should belong to the concrete implementation since its specific to databases! |
void |
setRoleMapsFile(java.lang.String configFileName)
Set the role maps to be the contents of the given file, saving this file location also. |
protected void |
setupRoleMapping()
|
void |
updateRoleMaps()
Reread the roleMaps file and update the roleMaps. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Logger mLog
protected java.lang.String mDriverClass
protected java.lang.String mRoleMapClass
protected RoleMapper mRoleMapper
protected java.lang.String mURI
| Constructor Detail |
public ConnectionManager(ConnectionConfig config)
throws CoreSystemException,
CoreUserException
DataResource object might need.
config - Configuration Information.| Method Detail |
public void setRoleMapsFile(java.lang.String configFileName)
throws CoreSystemException,
CoreUserException
configFileName - - path to role maps file. If this is not
an abolute path then the path is taken to be relative to the
path in which the associated data resource configuration file
resides.
CoreSystemException - - if an internal problem occurs
when reading the file.
CoreUserException - - if configFileName
is null or does not point to a valid role maps
file.
public void updateRoleMaps()
throws CoreSystemException,
CoreUserException
CoreSystemException - - if an internal problem occurs
when reading the file.
CoreUserException - - if the file is no longer a valid
role maps file.
protected void setupRoleMapping()
throws CoreSystemException,
CoreUserException
CoreSystemException
CoreUserException
protected DatabaseRole mapCertificate(java.lang.String userCredentials)
throws CoreSystemException,
CoreUserException,
AuthorisationException
CoreSystemException
CoreUserException
AuthorisationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||