public class BaseOptionSample extends LoginSample
In some input forms you may define fields where the user can select from a number of options, like status, priority, manager or responsible.
This class demonstrates how to retrieve all available option fields and their possible values via the web service interface.
The class uses the LoginSample
class to perform the login. You need
to set the URL and the user name and password in that class before you
compile and run this class here.
This example is a Java console application. You can run it directly by
calling its main()
method.
connector, pField, uName, url
Constructor and Description |
---|
BaseOptionSample() |
BaseOptionSample(TCLFacade connector) |
Modifier and Type | Method and Description |
---|---|
void |
getBaseOptionsContainer()
Getting the base options: all projects; all issueTypes; all priorities;
all severities; all states;
|
void |
getProjectsAsTree() |
void |
getProjectsIssueTypes()
Obtains the projects from the server
|
static void |
main(java.lang.String[] args) |
static void |
printNode(WSTreeNode node,
java.lang.String indent) |
checkVersion, handleTCLFacadeException, login, login, run, startTime, stopTime
public BaseOptionSample()
public BaseOptionSample(TCLFacade connector)
public void getProjectsIssueTypes()
public void getBaseOptionsContainer()
public void getProjectsAsTree()
public static void printNode(WSTreeNode node, java.lang.String indent)
public static void main(java.lang.String[] args)