org.apache.chemistry.opencmis.workbench
Class ClientHelper

java.lang.Object
  extended by org.apache.chemistry.opencmis.workbench.ClientHelper

public class ClientHelper
extends Object


Nested Class Summary
static class ClientHelper.FileEntry
           
 
Constructor Summary
ClientHelper()
           
 
Method Summary
static void copy(Component component, File file)
           
static File createTempFile(String filename)
           
static File createTempFileFromDocument(CmisObject object, String streamId)
           
static void download(Component component, CmisObject object, String streamId)
           
static String getDateString(GregorianCalendar cal)
           
static ImageIcon getIcon(String name)
           
static void open(Component component, CmisObject object, String streamId)
           
static String readFileAndRemoveHeader(String file)
           
static List<ClientHelper.FileEntry> readFileProperties(String propertiesFile, String path)
           
static void showError(Component parent, Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHelper

public ClientHelper()
Method Detail

showError

public static void showError(Component parent,
                             Exception ex)

getIcon

public static ImageIcon getIcon(String name)

getDateString

public static String getDateString(GregorianCalendar cal)

download

public static void download(Component component,
                            CmisObject object,
                            String streamId)

copy

public static void copy(Component component,
                        File file)

open

public static void open(Component component,
                        CmisObject object,
                        String streamId)

createTempFile

public static File createTempFile(String filename)

createTempFileFromDocument

public static File createTempFileFromDocument(CmisObject object,
                                              String streamId)
                                       throws Exception
Throws:
Exception

readFileAndRemoveHeader

public static String readFileAndRemoveHeader(String file)

readFileProperties

public static List<ClientHelper.FileEntry> readFileProperties(String propertiesFile,
                                                              String path)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.