public abstract class AbstractConnectionController extends java.lang.Object implements ConnectionController
构造器和说明 |
---|
AbstractConnectionController() |
限定符和类型 | 方法和说明 |
---|---|
void |
addConnectionInfo(java.lang.String userId,
ConnectionInfoBean bean)
新增一个数据连接
|
JDBCDatabaseConnection |
converterBean2Connection(ConnectionInfoBean bean,
java.lang.String password) |
ConnectionCreationInfo |
converterBean2CreateInfo(ConnectionInfoBean bean) |
ConnectionInfoBean |
converterConnection2Bean(ConnectionInfoBean bean,
JDBCDatabaseConnection connection,
boolean withPassword) |
ConnectionInfoBean |
converterCreateInfo2Bean(java.lang.String id,
ConnectionCreationInfo info) |
void |
deleteConnectionInfoById(java.lang.String userId,
java.lang.String id)
删除一个数据连接
|
ConnectionInfoBean[] |
getConnections(java.lang.String userId,
java.lang.String keyword,
boolean withPassword)
数据连接查询
|
ConnectionCreationInfo |
getCreateInfoByName(java.lang.String connectionName,
java.util.Map<java.lang.String,ConnectionCreationInfo> map) |
abstract boolean |
hasManagementAuthority(java.lang.String userId,
java.lang.String connectionId)
是否有管理权限
|
abstract ConnectionInfoBean[] |
setPrivilegeDetailBean(java.lang.String userId,
ConnectionInfoBean[] beans) |
java.lang.String[] |
testDataConnection(ConnectionInfoBean bean)
测试连接
|
abstract void |
updateConnectionAuthority(java.lang.String userId,
java.lang.String connectionId,
AuthorityType[] types) |
void |
updateConnectionInfo(java.lang.String userId,
ConnectionInfoBean bean)
更新一个数据连接
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doesServerDataSetHasPrivilegeDetail, getConnections
public ConnectionInfoBean[] getConnections(java.lang.String userId, java.lang.String keyword, boolean withPassword) throws java.lang.Exception
ConnectionController
getConnections
在接口中 ConnectionController
userId
- 用户idkeyword
- 关键字withPassword
- 是否要密码java.lang.Exception
- 异常public void updateConnectionInfo(java.lang.String userId, ConnectionInfoBean bean) throws java.lang.Exception
ConnectionController
updateConnectionInfo
在接口中 ConnectionController
bean
- 数据连接对象java.lang.Exception
- 异常public void addConnectionInfo(java.lang.String userId, ConnectionInfoBean bean) throws java.lang.Exception
ConnectionController
addConnectionInfo
在接口中 ConnectionController
bean
- 数据连接对象java.lang.Exception
- 异常public void deleteConnectionInfoById(java.lang.String userId, java.lang.String id) throws java.lang.Exception
ConnectionController
deleteConnectionInfoById
在接口中 ConnectionController
id
- 数据连接idjava.lang.Exception
- 异常public java.lang.String[] testDataConnection(ConnectionInfoBean bean) throws java.lang.Exception
ConnectionController
testDataConnection
在接口中 ConnectionController
bean
- 数据连接对象java.lang.Exception
- 异常public abstract void updateConnectionAuthority(java.lang.String userId, java.lang.String connectionId, AuthorityType[] types) throws java.lang.Exception
java.lang.Exception
public abstract ConnectionInfoBean[] setPrivilegeDetailBean(java.lang.String userId, ConnectionInfoBean[] beans) throws java.lang.Exception
java.lang.Exception
public abstract boolean hasManagementAuthority(java.lang.String userId, java.lang.String connectionId) throws java.lang.Exception
userId
- 用户IDconnectionId
- 数据连接IDjava.lang.Exception
- 异常public ConnectionCreationInfo getCreateInfoByName(java.lang.String connectionName, java.util.Map<java.lang.String,ConnectionCreationInfo> map) throws java.lang.Exception
java.lang.Exception
public ConnectionInfoBean converterCreateInfo2Bean(java.lang.String id, ConnectionCreationInfo info)
public ConnectionInfoBean converterConnection2Bean(ConnectionInfoBean bean, JDBCDatabaseConnection connection, boolean withPassword)
public JDBCDatabaseConnection converterBean2Connection(ConnectionInfoBean bean, java.lang.String password)
public ConnectionCreationInfo converterBean2CreateInfo(ConnectionInfoBean bean)