|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hascode.confluence.plugin.socialcomments.util.Util
public class Util
utility class
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
com.atlassian.user.User |
getCurrentUser()
returns the current user |
Map<String,Object> |
getDefaultVelocityContext()
returns a hashmap to use with the velocity context |
String |
getRequestParameter(String key)
returns parameters from the current request |
String |
getVelocityRenderedTemplate(String macroTemplate,
Map<String,Object> context)
returns a rendered template enriched with context parameters |
boolean |
userIsAdmin()
returns whether the current user has the administrator role |
boolean |
userLoggedin()
returns whether the current user is logged in or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public boolean userLoggedin()
public boolean userIsAdmin()
public String getRequestParameter(String key)
key - the param key
public com.atlassian.user.User getCurrentUser()
public Map<String,Object> getDefaultVelocityContext()
public String getVelocityRenderedTemplate(String macroTemplate,
Map<String,Object> context)
macroTemplate - the templatecontext - the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||