|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.plugin.profile.DefaultUserFormatMapper
public class DefaultUserFormatMapper
| Field Summary | |
|---|---|
static String |
PS_KEY
|
| Constructor Summary | |
|---|---|
DefaultUserFormatMapper(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraPropertySetFactory jiraPropertySetFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
Set |
getTypes()
Returns a Set of all the user format types this manager is aware of |
com.atlassian.plugin.ModuleDescriptor |
getUserFormatModuleDescriptorForType(String type)
Retrieves the user format module descriptor currently set for a given type. |
Collection |
getUserFormatModuleDescriptorsForType(String type)
Retrieves all enabled user format module descriptors that can handle the provided type. |
void |
onClearCache(ClearCacheEvent event)
|
void |
setUserFormatForType(String type,
String moduleKey)
Updates the mapping from a specific type to another plugin module. |
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 DefaultUserFormatMapper(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraPropertySetFactory jiraPropertySetFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
@EventListener public void onClearCache(ClearCacheEvent event)
public Set getTypes()
UserFormatMapper
getTypes in interface UserFormatMapper
public void setUserFormatForType(String type,
String moduleKey)
UserFormatMapper
setUserFormatForType in interface UserFormatMappertype - the user format type to updatemoduleKey - The module Key of the updated plugin module.public Collection getUserFormatModuleDescriptorsForType(String type)
UserFormatMapper
getUserFormatModuleDescriptorsForType in interface UserFormatMappertype - the specific type for which to find a User Format module descriptors
UserFormatModuleDescriptors or empty collection if none can be found.public com.atlassian.plugin.ModuleDescriptor getUserFormatModuleDescriptorForType(String type)
UserFormatMapper
getUserFormatModuleDescriptorForType in interface UserFormatMappertype - the specific type for which to find a UserFormatModuleDescriptor
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||