CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.remoting.sample
Class CodeBeamerCsvExporter

java.lang.Object
  extended by com.intland.codebeamer.remoting.sample.CodeBeamerCsvExporter

public class CodeBeamerCsvExporter
extends java.lang.Object

This program is part of the CodeBeamer SDK.

This console application illustrates:

You can use this as skeleton to develop your own exporters.

See Also:
CodeBeamerCsvImporter

Constructor Summary
CodeBeamerCsvExporter()
           
 
Method Summary
protected static int exportArtifact(RemoteApi api, java.lang.String token, com.Ostermiller.util.CSVPrinter printer, ArtifactDto artifact)
          Recursively exports the given artifact and its children if there are.
protected static int exportArtifacts(RemoteApi api, java.lang.String token, java.io.OutputStream out)
          Exports all artifact information that the user has access to.
protected static int exportProjects(RemoteApi api, java.lang.String token, java.io.OutputStream out)
          Exports all project information that the user has access to.
protected static int exportTrackerItems(RemoteApi api, java.lang.String token, java.io.OutputStream out)
          Exports all tracker item information.
protected static int exportTrackers(RemoteApi api, java.lang.String token, java.io.OutputStream out)
          Exports all tracker information that the user has access to.
protected static int exportUsers(RemoteApi api, java.lang.String token, java.io.OutputStream out)
          Exports all user account information that the user has access to.
protected static int exportUserTrackerItems(RemoteApi api, java.lang.String token, java.io.OutputStream out)
           
static void main(java.lang.String[] args)
          Main entry point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeBeamerCsvExporter

public CodeBeamerCsvExporter()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main entry point. Commandline parsing is not elaborated, for real use please consider using the Apache Commons CLI package.

Throws:
java.lang.Exception

exportUsers

protected static int exportUsers(RemoteApi api,
                                 java.lang.String token,
                                 java.io.OutputStream out)
Exports all user account information that the user has access to.

Returns:
the number of user accounts exported.

exportProjects

protected static int exportProjects(RemoteApi api,
                                    java.lang.String token,
                                    java.io.OutputStream out)
Exports all project information that the user has access to.

Returns:
the number of projects exported.

exportArtifacts

protected static int exportArtifacts(RemoteApi api,
                                     java.lang.String token,
                                     java.io.OutputStream out)
Exports all artifact information that the user has access to.

Returns:
the number of artifacts exported.

exportArtifact

protected static int exportArtifact(RemoteApi api,
                                    java.lang.String token,
                                    com.Ostermiller.util.CSVPrinter printer,
                                    ArtifactDto artifact)
                             throws java.io.IOException
Recursively exports the given artifact and its children if there are.

Returns:
the number of artifacts exported.
Throws:
java.io.IOException

exportTrackers

protected static int exportTrackers(RemoteApi api,
                                    java.lang.String token,
                                    java.io.OutputStream out)
Exports all tracker information that the user has access to.

Returns:
the number of trackers exported.

exportTrackerItems

protected static int exportTrackerItems(RemoteApi api,
                                        java.lang.String token,
                                        java.io.OutputStream out)
Exports all tracker item information.

Returns:
the number of tracker items exported.

exportUserTrackerItems

protected static int exportUserTrackerItems(RemoteApi api,
                                            java.lang.String token,
                                            java.io.OutputStream out)

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.