Skip to Content
author's profile photo Former Member
Former Member

batch program that load files to KM

Hi,

We have a system that generate data files. We would like to load the files through a batch program to KM. Is there a possibility to that ? is there an easy way be existing API to do this or it is going to be complicated ?

I know there is an option to use the file system repository. but we would like to use the KM infrastructure for the Access control and other

Any idea will be be appreciated

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2004 at 04:23 PM

    I am not sure i understand your question correctly, but for the batch upload you can make use of existing KM WebDAV interface and for example unix tool cadaver

    (<cite>cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations</cite>)

    available from http://www.webdav.org/cadaver.

    Hope this will help.

    regards,

    ds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2004 at 05:00 PM

    Hi

    It is easy to add content in the KM. Use the KM API's for this.

    Here you have some sample code:

    // Get the root folder where you want to create your content

    IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);

    if (resource != null) {

    if (resource.isCollection()) {

    ICollection _collection = (ICollection) resource;

    // Create content, check for the correct method to use

    _collection.create....

    Good Luck - Fredrik

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.