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 contentModuleKey)
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 contentModuleKey)
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 contentModuleKey)
ContentTypeManager
getContentType
in interface ContentTypeManager
contentModuleKey
- the plugin module complete key of the content type providerpublic String getImplementingPluginVersion(String contentModuleKey)
ContentTypeManager
getImplementingPluginVersion
in interface ContentTypeManager
contentModuleKey
- 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–2015 Atlassian. All rights reserved.