Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3
styleborder:1
locationtop
typeflat
separatorpipe

...

Commenting on a

...

resource

You can also comment on a resource using the registry. The following lines of code illustrate how to create a comment object and call the registry instance:

...

The above lines of code will add a comment to the resource named: "c1/c2/r2 ."

...

Edit a

...

comment

You can also make changes to comments you have already made using the registry instance. Here, For this you need the path and new text for the comment which that is being added. For example, to change from "This is my comment" to "This is cool," do the following:

Code Block
registry.editComment(commentPath, "This is cool"); // Here commentPath have a value something like "/c1/c2/r2;comment:1"

...

Remove a

...

comment

A comment can be removed using the comment path. The following code shows how this is done:

Code Block
registry.removeComment(commentpath);

...

Retrieving

...

comments made about a resource

Comments about a specific resource can be retrieved using the following code:

Code Block
registry.getComments("/c1/c2/r2");

 

See also Comments and Ratings to learn how to manage commenting using the Management Console.

...

hiddentrue

...