com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Class AttachmentResourceIdentifierResolver

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentResourceIdentifierResolver
All Implemented Interfaces:
ResourceIdentifierResolver<AttachmentResourceIdentifier,Attachment>

public class AttachmentResourceIdentifierResolver
extends Object
implements ResourceIdentifierResolver<AttachmentResourceIdentifier,Attachment>


Constructor Summary
AttachmentResourceIdentifierResolver(AttachmentManager attachmentManager, AttachmentOwningContentResolver attachmentOwningContentResolver)
           
 
Method Summary
 Attachment resolve(AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentResourceIdentifierResolver

public AttachmentResourceIdentifierResolver(AttachmentManager attachmentManager,
                                            AttachmentOwningContentResolver attachmentOwningContentResolver)
Method Detail

resolve

public Attachment resolve(AttachmentResourceIdentifier attachmentResourceIdentifier,
                          ConversionContext conversionContext)
                   throws CannotResolveResourceIdentifierException
Specified by:
resolve in interface ResourceIdentifierResolver<AttachmentResourceIdentifier,Attachment>
Parameters:
attachmentResourceIdentifier - resource identifier
conversionContext - the conversion context
Returns:
the resource associated with the specified resource identifier (cannot be null)
Throws:
CannotResolveResourceIdentifierException - if the specified resource identifier cannot be resolved (this shouldn't typically happen unless someone has removed the resource)


Copyright © 2003–2015 Atlassian. All rights reserved.