...
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 | ||||
---|---|---|---|---|
| ||||
... 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); } ... |
...