migrateBinder

Creates a new workspace or folder while preserving SiteScape Forum data. (V1.0.3)

Syntax

public long migrateBinder ( long parentId, String definitionId, String inputDataAsXML, String creator, Calendar creationDate, String modifier, Calendar modificationDate );

Description

The migrateBinder operation creates a workspace or folder in Teaming that preserves values from a SiteScape Forum installation (for example, the name of the person who created the item in Forum, the Forum creation date, the person who last modified the item in Forum, and the date of the last modification in Forum).

Parameters and Return Value

parentId

The binder identifier of the parent of the newly created workspace or folder.

definitionId

The 32-character, hexadecimal identifier that maps to the type of workspace or folder to be created.

You can use the getDefinitionListAsXML operation to get metadata for all definitions. Then, you can parse the XML string for the definition identifier of the type of workspace or folder you want to create.

inputDataAsXML

A string of XML supplying the elements and values needed to construct the workspace or folder you want to create.

creator

A string containing the username of the person who created the corresponding workspace or folder in the Forum installation.

creationDate

Calendar data specifying the date when the corresponding workspace or folder was created in Forum.

modifier

A string containing the username of the person who last modified the corresponding workspace or folder in Forum.

modificationDate

Calendar data specifying the date when the corresponding workspace or folder was modified in Forum.

return_value

The binder identifier of the newly created workspace or folder.

Example

call.setOperationName(new QName(“migrateBinder”)); Object result = call.invoke(new Object[] {new Long(21), def, input, new String("JSmith"), createcal, new String("JGarces"), modcal});

This code creates a new binder determined by the definition in the def variable (use the getDefinitionListAsXML operation to obtain the correct string for your binder type), and the binder will be a child of the binder whose identifier is 21. The input variable contains an XML string, properly formatted for your binder type, which Teaming uses to create binder content. The remaining four parameters provide names (literals) and dates (the createcal and modcal variables) for the creation and last modification of the corresponding item in the Forum installation.

See Also