This sample demonstrates how to write the contents of a roster to a log file. RosterSample uses the sample RosterHelper to display roster information.
Run the sample by entering a command similar to the following example:
java RosterSample username password server_name:port_number/connectionPoint_name
output_filename
For more information, see the comments in the sample source. The samples are supplied in the Developer samples section of the IBM® FileNet® P8 Platform publication library.
See also Running the API Samples.
General descriptions of the RosterSample methods follow:
main()
The main method uses common techniques for validating and defaulting argument values. The default value for the log output file is RosterSample.out. Main() constructs and passes VWSession and sample Logger class objects to the constructor. Main() handles the login and logoff for the session with the login() and logoff() methods of the sample SessionHelper class. It also provides workflow logging with an instance of the sample Logger class.
RosterSample()
The RosterSample constructor performs common exception handling and invokes RosterHelper.displayRosterContents.