Class SpaceResourceIdentifierResolver
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifierResolver
-
- All Implemented Interfaces:
ResourceIdentifierResolver<SpaceResourceIdentifier,Space>
public class SpaceResourceIdentifierResolver extends Object implements ResourceIdentifierResolver<SpaceResourceIdentifier,Space>
-
-
Constructor Summary
Constructors Constructor Description SpaceResourceIdentifierResolver(SpaceManager spaceManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Space
resolve(SpaceResourceIdentifier resourceIdentifier, ConversionContext conversionContext)
Resolves a SpaceResourceIdentifier to a Space if a Space for the given spacekey exists.
-
-
-
Constructor Detail
-
SpaceResourceIdentifierResolver
public SpaceResourceIdentifierResolver(SpaceManager spaceManager)
-
-
Method Detail
-
resolve
public Space resolve(SpaceResourceIdentifier resourceIdentifier, ConversionContext conversionContext) throws CannotResolveResourceIdentifierException
Resolves a SpaceResourceIdentifier to a Space if a Space for the given spacekey exists.- Specified by:
resolve
in interfaceResourceIdentifierResolver<SpaceResourceIdentifier,Space>
- Parameters:
resourceIdentifier
- The SpaceResourceIdentifier that will be used to resolve the SpaceconversionContext
- Not used in this impl- Returns:
- A Space if one can be resolved from the SpaceManager, null otherwise.
- Throws:
CannotResolveResourceIdentifierException
- If the spacekey in the supplied SpaceResourceIdentifier is null.
-
-