com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Class ContextResourceIdentifierConverter

java.lang.Object
  extended by 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 -

  1. Page
  2. BlogPost
  3. Comment
  4. Draft


Constructor Summary
ContextResourceIdentifierConverter()
           
 
Method Summary
static ResourceIdentifier convert(ConversionContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextResourceIdentifierConverter

public ContextResourceIdentifierConverter()
Method Detail

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.


Copyright © 2003-2013 Atlassian. All Rights Reserved.