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
ResourceIdentifierFactory
getResourceIdentifier
in interface ResourceIdentifierFactory
resource
- the resourcecontext
- The context to generate the resource identifier inResourceIdentifierCreationException
- if there is an error creating the resource identifierCopyright © 2003–2016 Atlassian. All rights reserved.