|
||||||||||
| 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 IQcConnectionpUsername - 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 IQcConnectionQcException - QC Error.IQcConnection.disconnect()
public BugClient getBugClient()
throws QcException
getBugClient in interface IQcConnectionQcException - QC ErrorIQcConnection.getBugClient()public com.mercury.qualitycenter.otaclient.ITDConnection3 getConnection()
public String getCurrentDomain()
throws QcException
getCurrentDomain in interface IQcConnectionQcException - QC Error.IQcConnection.getCurrentDomain()
public List<Group> getCurrentGroups()
throws QcException
getCurrentGroups in interface IQcConnectionQcException - Qc Error.IQcConnection.getCurrentGroups()
public String getCurrentProject()
throws QcException
getCurrentProject in interface IQcConnectionQcException - QC Error.IQcConnection.getCurrentProject()
public String getCurrentUser()
throws QcException
getCurrentUser in interface IQcConnectionQcException - QC Error.IQcConnection.getCurrentUser()
public List<Domain> getDomainList()
throws QcException
getDomainList in interface IQcConnectionQcException - Connection error.IQcConnection.getDomainList()
public FieldDescriptionClient getPermissionClient()
throws QcException
getPermissionClient in interface IQcConnectionQcException - QC ErrorIQcConnection.getPermissionClient()
public String getServerURL()
throws QcException
getServerURL in interface IQcConnectionQcException - QC Error.IQcConnection.getServerURL()
public TestClient getTestClient()
throws QcException
getTestClient in interface IQcConnectionQcException - QC ErrorIQcConnection.getTestClient()
public UserClient getUserClient()
throws QcException
getUserClient in interface IQcConnectionQcException - Qc Error.IQcConnection.getUserClient()
public String getVersion()
throws QcException
getVersion in interface IQcConnectionQcException - QC ErrorIQcConnection.getVersion()public boolean isConnected()
isConnected in interface IQcConnectionIQcConnection.isConnected()public boolean isLoggedIn()
isLoggedIn in interface IQcConnectionIQcConnection.isLoggedIn()
public void login(String pUsername,
String pPassword)
throws QcException
login in interface IQcConnectionpUsername - 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 | |||||||||