public class

DefaultResourceIdentifierFactory

extends Object
implements ResourceIdentifierFactory
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.DefaultResourceIdentifierFactory

Class Overview

Generates resource identifiers that contain some of the actual state of the resource. That is, this does not generate database ID based resource identifiers, but rather identifiers like PageResourceIdentifier.

For id based identifiers, simply construct an instance of IdAndTypeResourceIdentifier.

The ConversionContext is used to determine whether or not a relative or absolute attachment container should be returned.

Summary

Public Constructors
DefaultResourceIdentifierFactory()
Public Methods
ResourceIdentifier getResourceIdentifier(Object resource, ConversionContext context)
Creates a resource identifier for the specified resource.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ResourceIdentifierFactory

Public Constructors

public DefaultResourceIdentifierFactory ()

Public Methods

public ResourceIdentifier getResourceIdentifier (Object resource, ConversionContext context)

Creates a resource identifier for the specified resource.

Parameters
resource the resource
context The context to generate the resource identifier in
Returns
  • the resource identifier (cannot be null)