com.atlassian.confluence.content
Class DefaultContentTypeManager

java.lang.Object
  extended by com.atlassian.confluence.content.DefaultContentTypeManager
All Implemented Interfaces:
ContentTypeManager, org.springframework.beans.factory.InitializingBean

public class DefaultContentTypeManager
extends Object
implements ContentTypeManager, org.springframework.beans.factory.InitializingBean


Constructor Summary
DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache, PluginContentHibernateInterceptor pluginContentHibernateInterceptor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
           
 
Method Summary
 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
 String getImplementingPluginVersion(String contentModuleKey)
          Get the current version of the plugin that implements this content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContentTypeManager

public DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache,
                                 PluginContentHibernateInterceptor pluginContentHibernateInterceptor,
                                 com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getContentType

public ContentType getContentType(String contentModuleKey)
Description copied from interface: ContentTypeManager
Get the Content Type plugin module for the given module key, or the default "uninstalled" content type if no matching plugin can be found.

Specified by:
getContentType in interface ContentTypeManager
Parameters:
contentModuleKey - the plugin module complete key of the content type provider
Returns:
the ContentType plugin object for that content type

getImplementingPluginVersion

public String getImplementingPluginVersion(String contentModuleKey)
Description copied from interface: ContentTypeManager
Get the current version of the plugin that implements this content type.

Specified by:
getImplementingPluginVersion in interface ContentTypeManager
Parameters:
contentModuleKey - the plugin module complete key of the content type provider
Returns:
the version of the plugin that provides this content

getEnabledContentTypes

public Collection<ContentType> getEnabledContentTypes()
Description copied from interface: ContentTypeManager
Get all ContentTypes currently enabled in the system

Specified by:
getEnabledContentTypes in interface ContentTypeManager
Returns:
all content types currently enabled


Copyright © 2003-2013 Atlassian. All Rights Reserved.