com.atlassian.confluence.content
Interface ContentTypeManager

All Known Implementing Classes:
DefaultContentTypeManager

public interface ContentTypeManager


Method Summary
 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.
 

Method Detail

getContentType

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.

Parameters:
contentModuleKey - the plugin module complete key of the content type provider
Returns:
the ContentType plugin object for that content type

getImplementingPluginVersion

String getImplementingPluginVersion(String contentModuleKey)
Get the current version of the plugin that implements this content type.

Parameters:
contentModuleKey - the plugin module complete key of the content type provider
Returns:
the version of the plugin that provides this content
Throws:
IllegalStateException - if the implementing plugin does not exist, is disabled or is the wrong type.

getEnabledContentTypes

Collection<ContentType> getEnabledContentTypes()
Get all ContentTypes currently enabled in the system

Returns:
all content types currently enabled


Copyright © 2003-2012 Atlassian. All Rights Reserved.