|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 java.lang.String |
PS_KEY
|
Constructor Summary | |
---|---|
DefaultUserFormatManager(JiraPropertySetFactory jiraPropertySetFactory,
UserFormatMapper userFormatMapper,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
java.lang.String |
formatUser(java.lang.String username,
java.lang.String type,
java.lang.String id)
Convenience method to format a given user. |
java.lang.String |
formatUser(java.lang.String username,
java.lang.String type,
java.lang.String id,
java.util.Map params)
Convenience method to format a given user. |
UserFormat |
getUserFormat(java.lang.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 java.lang.String PS_KEY
Constructor Detail |
---|
public DefaultUserFormatManager(JiraPropertySetFactory jiraPropertySetFactory, UserFormatMapper userFormatMapper, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws java.lang.Exception
Startable
start
in interface Startable
java.lang.Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public java.lang.String formatUser(java.lang.String username, java.lang.String type, java.lang.String id)
UserFormatManager
formatUser
in interface UserFormatManager
username
- The user to formattype
- The user format type to useid
- A context sensitive id
public java.lang.String formatUser(java.lang.String username, java.lang.String type, java.lang.String id, java.util.Map params)
UserFormatManager
UserFormat
.
formatUser
in interface UserFormatManager
username
- The user to formattype
- The user format type to useid
- A context sensitive idparams
- Additional context to provide to the userformatter.
public UserFormat getUserFormat(java.lang.String type)
UserFormatManager
UserFormat
for a specific type, or null if none exists
getUserFormat
in interface UserFormatManager
type
- 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 |