public class

ContextResourceIdentifierConverter

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ContextResourceIdentifierConverter

Class Overview

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

Summary

Public Constructors
ContextResourceIdentifierConverter()
Public Methods
static ResourceIdentifier convert(ConversionContext context)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ContextResourceIdentifierConverter ()

Public Methods

public static ResourceIdentifier convert (ConversionContext context)

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.