addFolder

Adds a folder to the workspace-tree hierarchy. (V1—V1.0.3)

Syntax

public long addFolder( long parentBinderId, long binderConfigId, String title );

Description

The addFolder operation adds a folder to the workspace and folder hierarchy.

Parameters and Return Value

parentBinderId

The identifier of the workspace or folder that is to contain the new folder.

binderConfigId

The identifier that maps to the default configuration for the folder you want to create.

title

A string providing a title for the new entry.

return_value

The binder identifier of the newly created folder.

Example

call.setOperationName(new QName("addFolder")); Object result = call.invoke(new Object[] {new Long(21), new Long(146), new String(“My new folde"r)});

This code creates a new to the container whose binder identifier is 21, gives the folder a configuration identifier of 146 (on our test installation, this corresponds to a discussion folder), and establishes the title of the new folder as My new folder. The container whose binder identifier is 21 can be either a workspace or folder.

See Also