public class PluginsAwareUserFormatTypeConfiguration extends Object implements UserFormatTypeConfiguration
Delegates storage and retrieval to an instance of PropertySetBackedUserFormatTypeConfiguration
| Constructor and Description |
|---|
PluginsAwareUserFormatTypeConfiguration(JiraPropertySetFactory jiraPropertySetFactory,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PluginsAwareUserFormatTypeConfiguration(JiraPropertySetFactory jiraPropertySetFactory, com.atlassian.cache.CacheManager cacheManager)
public void onPluginUninstalled(com.atlassian.plugin.event.events.PluginUninstalledEvent event)
public boolean containsType(String userFormatType)
UserFormatTypeConfigurationcontainsType in interface UserFormatTypeConfigurationuserFormatType - The type find a confiuration entry for.public void setUserFormatKeyForType(String userFormatType, String moduleKey)
UserFormatTypeConfigurationsetUserFormatKeyForType in interface UserFormatTypeConfigurationuserFormatType - the user format type to configure.moduleKey - The complete module key of the .public String getUserFormatKeyForType(String userFormatType)
UserFormatTypeConfigurationgetUserFormatKeyForType in interface UserFormatTypeConfigurationuserFormatType - The type to retrieve a module key for.public void remove(String userFormatType)
UserFormatTypeConfigurationremove in interface UserFormatTypeConfigurationuserFormatType - The type to remove from the configuration.Copyright © 2002-2019 Atlassian. All Rights Reserved.