You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "jay brown (JIRA)" <ji...@apache.org> on 2011/04/15 20:30:07 UTC
[jira] [Updated] (CMIS-355)
org.apache.chemistry.opencmis.client.utils FileUtils.java source
[ https://issues.apache.org/jira/browse/CMIS-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jay brown updated CMIS-355:
---------------------------
Attachment: FileUtils.java
This will need some cleanup before inclusion. JavaDoc tags etc.
> 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
> Attachments: FileUtils.java
>
>
> 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