Creates a new comment while preserving SiteScape Forum data. (V1.0.3)
public void migrateReply ( long binderId, long parentId, String definitionId, String inputDataAsXML, String creator, Calendar creationDate, String modifier, Calendar modificationDate );
The migrateReply operation creates a comment 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).
The binder identifier of the folder that will contain the new comment.
The binder identifier of the entry or comment to which you want to apply the new comment.
The 32-character, hexadecimal identifier that maps to the type of comment 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 comment you want to create.
A string of XML supplying the elements and values needed to construct the type of comment you want to create.
A string containing the username of the person who created the corresponding reply in the Forum installation.
Calendar data specifying the date when the corresponding reply was created in Forum.
A string containing the username of the person who last modified the corresponding reply in Forum.
Calendar data specifying the date when the corresponding reply was modified in Forum.
The entry identifier of the newly created comment.
This code creates a new comment of the type determined by the definition in the def variable (use the getDefinitionListAsXML operation to obtain the correct string for your comment type). The new comment is to be located in the binder whose identifier is 21, and applied to an entry or comment whose identifier is 45. The input variable contains an XML string, properly formatted for your comment type, that Teaming uses to create comment content. The remaining four parameters provide names (literals) and dates (the createcal and modcal variables) for the creation and last modification of the corresponding reply in the Forum installation.