|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tszadel.qctools4j.clients.QcConnectionImpl
public class QcConnectionImpl
The implementation of the connection to QC.
Constructor Summary | |
---|---|
QcConnectionImpl(String pServerURL)
Constructor. |
Method Summary | |
---|---|
void |
connect(String pUsername,
String pPassword,
String pDomain,
String pProject)
Overrides connect. |
void |
disconnect()
Overrides disconnect. |
BugClient |
getBugClient()
Overrides getDefectClient. |
com.mercury.qualitycenter.otaclient.ITDConnection3 |
getConnection()
Returns connection. |
String |
getCurrentDomain()
Overrides getCurrentDomain. |
List<Group> |
getCurrentGroups()
Overrides getCurrentGroups. |
String |
getCurrentProject()
Overrides getCurrentProject. |
String |
getCurrentUser()
Overrides getCurrentUser. |
List<Domain> |
getDomainList()
Overrides getDomainList. |
FieldDescriptionClient |
getPermissionClient()
Overrides getPermissionClient. |
String |
getServerURL()
Overrides getServerURL. |
TestClient |
getTestClient()
Overrides getTestClient. |
UserClient |
getUserClient()
Overrides getUserClient. |
String |
getVersion()
Overrides getVersion. |
protected void |
initConnection()
Init the connection. |
boolean |
isConnected()
Overrides isInitialized. |
boolean |
isLoggedIn()
Overrides isLoggedIn. |
void |
login(String pUsername,
String pPassword)
Overrides login. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QcConnectionImpl(String pServerURL) throws QcException
pServerURL
- The server URL.
QcException
- The connection fails.Method Detail |
---|
public void connect(String pUsername, String pPassword, String pDomain, String pProject) throws QcException
Need to call disconnect once the work is terminated
connect
in interface IQcConnection
pUsername
- The user name.pPassword
- The password.pDomain
- The domain.pProject
- The project.
QcException
- Connection error.IQcConnection.connect(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void disconnect() throws QcException
disconnect
in interface IQcConnection
QcException
- QC Error.IQcConnection.disconnect()
public BugClient getBugClient() throws QcException
getBugClient
in interface IQcConnection
QcException
- QC ErrorIQcConnection.getBugClient()
public com.mercury.qualitycenter.otaclient.ITDConnection3 getConnection()
public String getCurrentDomain() throws QcException
getCurrentDomain
in interface IQcConnection
QcException
- QC Error.IQcConnection.getCurrentDomain()
public List<Group> getCurrentGroups() throws QcException
getCurrentGroups
in interface IQcConnection
QcException
- Qc Error.IQcConnection.getCurrentGroups()
public String getCurrentProject() throws QcException
getCurrentProject
in interface IQcConnection
QcException
- QC Error.IQcConnection.getCurrentProject()
public String getCurrentUser() throws QcException
getCurrentUser
in interface IQcConnection
QcException
- QC Error.IQcConnection.getCurrentUser()
public List<Domain> getDomainList() throws QcException
getDomainList
in interface IQcConnection
QcException
- Connection error.IQcConnection.getDomainList()
public FieldDescriptionClient getPermissionClient() throws QcException
getPermissionClient
in interface IQcConnection
QcException
- QC ErrorIQcConnection.getPermissionClient()
public String getServerURL() throws QcException
getServerURL
in interface IQcConnection
QcException
- QC Error.IQcConnection.getServerURL()
public TestClient getTestClient() throws QcException
getTestClient
in interface IQcConnection
QcException
- QC ErrorIQcConnection.getTestClient()
public UserClient getUserClient() throws QcException
getUserClient
in interface IQcConnection
QcException
- Qc Error.IQcConnection.getUserClient()
public String getVersion() throws QcException
getVersion
in interface IQcConnection
QcException
- QC ErrorIQcConnection.getVersion()
public boolean isConnected()
isConnected
in interface IQcConnection
IQcConnection.isConnected()
public boolean isLoggedIn()
isLoggedIn
in interface IQcConnection
IQcConnection.isLoggedIn()
public void login(String pUsername, String pPassword) throws QcException
login
in interface IQcConnection
pUsername
- The username.pPassword
- The password.
QcException
- Login error.IQcConnection.login(java.lang.String, java.lang.String)
protected void initConnection() throws QcException
QcException
- QC Error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |