Versions Compared

Key

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

...

You have a custom field, say "Favorite Color" with the key "12345". To get the favorite color of the with the login "twi" you would have to make the following call:

Code Block
themeFadeToGrey
languagejava
...
public Object getFavColorForTwi(){
	ConfluenceBandanaContext ctx = new ConfluenceBandanaContext(null); // GLOBAL context
    String bandanaKey = "de.communardo.userprofile.element.data.12345.twi";
	return this.bandanaManager.getValue(ctx, bandanaKey);
}
...

...