|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.plugin.profile.DefaultUserFormatManager
public class DefaultUserFormatManager
Default implementation: Stores the default user format module descriptor plugin module in an application property.
| Field Summary | |
|---|---|
static String |
PS_KEY
|
| Constructor Summary | |
|---|---|
DefaultUserFormatManager(JiraPropertySetFactory jiraPropertySetFactory,
UserFormatMapper userFormatMapper,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
String |
formatUser(String username,
String type,
String id)
Convenience method to format a given user. |
String |
formatUser(String username,
String type,
String id,
Map params)
Convenience method to format a given user. |
UserFormat |
getUserFormat(String type)
Returns the UserFormat for a specific type, or null if none exists |
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PS_KEY
| Constructor Detail |
|---|
public DefaultUserFormatManager(JiraPropertySetFactory jiraPropertySetFactory,
UserFormatMapper userFormatMapper,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public String formatUser(String username,
String type,
String id)
UserFormatManager
formatUser in interface UserFormatManagerusername - The user to formattype - The user format type to useid - A context sensitive id
public String formatUser(String username,
String type,
String id,
Map params)
UserFormatManagerUserFormat.
formatUser in interface UserFormatManagerusername - The user to formattype - The user format type to useid - A context sensitive idparams - Additional context to provide to the userformatter.
public UserFormat getUserFormat(String type)
UserFormatManagerUserFormat for a specific type, or null if none exists
getUserFormat in interface UserFormatManagertype - the specific type for which to find a UserFormat.
UserFormat for a specific type, or null if none exists
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||