com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Class ContextResourceIdentifierConverter
java.lang.Object
com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ContextResourceIdentifierConverter
public class ContextResourceIdentifierConverter
- extends Object
A Utility class to create a ResourceIdentifier for the supplied ConversionContext.
Note that this implements mapping only for the CEO's that can actually be a conversion entity in Confluence -
- Page
- BlogPost
- Comment
- Draft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextResourceIdentifierConverter
public ContextResourceIdentifierConverter()
convert
public static ResourceIdentifier convert(ConversionContext context)
throws IllegalStateException
- Parameters:
context
- the ConversionContext to be converted to a ResourceIdentifier
- Returns:
- a ResourceIdentifier representing the entity for the Conversion.
- Throws:
IllegalStateException
- if the entity object in the ConversionContext is not a supported type.