public class DefaultResourceIdentifierFactory extends Object implements ResourceIdentifierFactory
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.
| Constructor and Description |
|---|
DefaultResourceIdentifierFactory() |
| Modifier and Type | Method and Description |
|---|---|
ResourceIdentifier |
getResourceIdentifier(Object resource,
ConversionContext context)
Creates a resource identifier for the specified resource.
|
public ResourceIdentifier getResourceIdentifier(Object resource, ConversionContext context) throws ResourceIdentifierCreationException
ResourceIdentifierFactorygetResourceIdentifier in interface ResourceIdentifierFactoryresource - the resourcecontext - The context to generate the resource identifier inResourceIdentifierCreationException - if there is an error creating the resource identifierCopyright © 2003–2022 Atlassian. All rights reserved.