ibmsbt - Create a folder via IBM sbt and share it to specific user: what is the correct Userid format? -


I am trying to create a folder and trying to share it with a specific user, one of the SBT In standalone Java console application (JDK 7).

I started with FileServiceApp sample in sbt / sample, and modified it with the following code:

  ... fsa = new FileServiceApp (url, user, password); File service file service = fsa.getFileService (); File newFolder = fileService.createFolder (newFolderName, "description", with share); A string that contains 3 values ​​separated by commas: ID (individual / community / group), is described as (reader / contributor / owner):  

< p>>

update: I've downloaded just SBT 1.1.0 make Folder now share with does not accept the parameter

but I get a "not found" error ("Bad request" if there is no error in those 3 elements in the stock)

Edit: createfolder calling parameters without third only works, but is not shared course folder.

If I try the following (also with sbt 1.1.0) I get the same behavior:

  file newFolder = fileService.createFolder (newFolderName, "Description"); Maps & lt; String, string & gt; Folder parameter = new hashmap & lt; String, string & gt; (); FolderParameters.put ("shareWith", userID); FolderParameters.put ("Shareprimation", "View"); FileService.updateFileMetadata (newfolder, folderpremators);   

Ugrid at least should have the right to Smartclud (format: 1f ......- B ... -4 ... B ... - f. . .......... 2 greenhouses, 2 ...... 1 Smartclaid) I verified it using ProfileService.getProfile (id) for SmartCloud.

The code has been executed using the BasicEndpoint for both the Greenhouse Account, and for a CallBerserve account, SmartCloudEndpoint for SmartCloud.

My questions are:

  1. Is "shared folder" not available in SmartClide / Greenhouse, and in that case, is it available for a standalone connection instance?
  2. Am I missing anything? (I just put jar in lib / ext)

    It was found that FileService .createFolder third parameter

      GUID + ", user, reader"   

    and not GUID, person , reader where GUID user GUID, as suggested by Paul (not yet tried with user email).

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -