public class DefaultContentTypeManager extends Object implements ContentTypeManager, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache,
PluginContentHibernateInterceptor pluginContentHibernateInterceptor,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
ContentType |
getContentType(String contentTypeKey)
Get the Content Type plugin module for the given module key, or the default "uninstalled" content type
if no matching plugin can be found.
|
Collection<ContentType> |
getEnabledContentTypes()
Get all ContentTypes currently enabled in the system
|
Collection<CustomContentType> |
getEnabledCustomContentTypes()
Get all CustomContentTypes currently enabled in the system
|
String |
getImplementingPluginVersion(String contentTypeKey)
Get the current version of the plugin that implements this content type.
|
public DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache, PluginContentHibernateInterceptor pluginContentHibernateInterceptor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public ContentType getContentType(String contentTypeKey)
ContentTypeManager
getContentType
in interface ContentTypeManager
contentTypeKey
- the plugin module complete key of the content type providerpublic String getImplementingPluginVersion(String contentTypeKey)
ContentTypeManager
getImplementingPluginVersion
in interface ContentTypeManager
contentTypeKey
- the plugin module complete key of the content type providerpublic Collection<ContentType> getEnabledContentTypes()
ContentTypeManager
getEnabledContentTypes
in interface ContentTypeManager
public Collection<CustomContentType> getEnabledCustomContentTypes()
ContentTypeManager
getEnabledCustomContentTypes
in interface ContentTypeManager
Copyright © 2003–2017 Atlassian. All rights reserved.