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