chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jay brown (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-355) org.apache.chemistry.opencmis.client.utils FileUtils.java source
Date Fri, 15 Apr 2011 18:28:05 GMT
org.apache.chemistry.opencmis.client.utils FileUtils.java source
----------------------------------------------------------------

                 Key: CMIS-355
                 URL: https://issues.apache.org/jira/browse/CMIS-355
             Project: Chemistry
          Issue Type: Improvement
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.3.0
            Reporter: jay brown
            Priority: Minor


Wrote up some fileutils helper code for a demo I am doing.  I would like to donate this to
Chemistry if you can use it.  It is a translation of the helper code you already have for
groovy. 

The attached class is in 
package org.apache.chemistry.opencmis.client.utils;

and contains the following static methods:
static public CmisObject getObject(String pathOrIdOfObject, Session session)
static public Folder getFolder(String pathOrIdOfObject, Session session) 
static public Document createDocumentFromFile(String parentIdOrPath,
			File file, String type, VersioningState versioningState,
			Session session)
static public Document createTextDocument(String parentIdOrPath,
			String name, String content, String type, VersioningState versioningState,
			Session session)
static public Folder createFolder(Folder parentFolder, String name,
			String type)
static public Folder createFolder(String parentIdOrPath, String name,
			String type, Session session)
static public void download(Document doc, String destinationPath)
static public void download(String docIdOrPath, String destinationPath, Session session) 
static public void delete(String pathOrIdOfObject, Session session)
static public void printProperties(CmisObject object)
static public void printProperty(Property<?> prop)

plus one private static for a buffercopy. 



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message