|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugin.userformat.configuration.PluginsAwareUserFormatTypeConfiguration
public class PluginsAwareUserFormatTypeConfiguration
Reacts to plugin system events and updates the user format configuration accordingly.
Delegates storage and retrieval to an instance of PropertySetBackedUserFormatTypeConfiguration
Constructor Summary | |
---|---|
PluginsAwareUserFormatTypeConfiguration(com.atlassian.event.api.EventPublisher eventPublisher,
JiraPropertySetFactory jiraPropertySetFactory)
|
Method Summary | |
---|---|
boolean |
containsType(String userFormatType)
Whether there is a configuration entry stored for the specified type. |
String |
getUserFormatKeyForType(String userFormatType)
Retrieves the module key of the user format descriptor configured to render the specified type. |
void |
onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)
|
void |
remove(String userFormatType)
Removes the configuration entry for the specified type if one exists. |
void |
setUserFormatKeyForType(String userFormatType,
String moduleKey)
Stores a configuration entry for the specified type agains a user format module descriptor key. |
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 |
Constructor Detail |
---|
public PluginsAwareUserFormatTypeConfiguration(com.atlassian.event.api.EventPublisher eventPublisher, JiraPropertySetFactory jiraPropertySetFactory)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.public void onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)
public boolean containsType(String userFormatType)
UserFormatTypeConfiguration
containsType
in interface UserFormatTypeConfiguration
userFormatType
- The type find a confiuration entry for.
public void setUserFormatKeyForType(String userFormatType, String moduleKey)
UserFormatTypeConfiguration
setUserFormatKeyForType
in interface UserFormatTypeConfiguration
userFormatType
- the user format type to configure.moduleKey
- The complete module key of the .public String getUserFormatKeyForType(String userFormatType)
UserFormatTypeConfiguration
getUserFormatKeyForType
in interface UserFormatTypeConfiguration
userFormatType
- The type to retrieve a module key for.
public void remove(String userFormatType)
UserFormatTypeConfiguration
remove
in interface UserFormatTypeConfiguration
userFormatType
- The type to remove from the configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |