setOwner

Establishes the owner of a folder or workspace. (V1.0.3)

Syntax

public void setOwner( long binderId, long userId );

Description

The setOwner operation allows you to establish an owner for a folder or workspace. The primary purpose of this operation is to mirror Forum ownership as you migrate folders and workspaces.

Parameters and Return Value

binderId

The binder identifier of the folder or workspace for which you want to establish ownership.

userId

The user identifier of the person whom you want to be the owner of a folder or workspace.

Example

call.setOperationName(new QName("setOwner")); Object result = call.invoke(new Object[] {new Long(21), new Long(345)});

This code establishes the user whose identifier is 345 as the owner of the folder or workspace whose binder identifier is 21.

See Also