-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.java
35 lines (29 loc) · 1.08 KB
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
public class Main
{
public static void main(String[] args)
{
// RelativityClient client = new RelativityClient();
// client.get("https://www.example.com", 5000);
int expectedNumOfArgs = 4;
if (args.length != expectedNumOfArgs)
{
System.out.println(
"Need four arguments: instance URL, username, password, workspace ID");
return;
}
String url = args[0];
String username = args[1];
String password = args[2];
int workspaceId = Integer.parseInt(args[3]);
RelativityClient relClient = new RelativityClient(url, username, password);
System.out.println("DOCUMENT IDENTIFIER:");
Samples.queryIdentifier(relClient, workspaceId);
System.out.println();
System.out.println("ALL DOCUMENT FIELDS:");
Samples.queryAllFieldsOnDoc(relClient, workspaceId);
System.out.println();
System.out.println("CREATING FIXED-LENGTH TEXT FIELD");
Samples.createField(relClient, workspaceId);
System.out.println();
}
}