Showing results for 
Search instead for 
Did you mean: 

batch program that load files to KM

Former Member
0 Kudos


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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos


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


Good Luck - Fredrik

Former Member
0 Kudos

Can I set ACL for collection programmatically? Failed

to find an appropriate API for it...

Former Member
0 Kudos

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

Hope this will help.