org.alfresco.service.cmr.rendition
Interface RenderCallback


public interface RenderCallback

This interface defines a callback object which can be used to handle the ultimate result of asynchronous renditions.

See Also:
RenditionService.render(org.alfresco.service.cmr.repository.NodeRef, RenditionDefinition, RenderCallback)

Method Summary
 void handleFailedRendition(java.lang.Throwable t)
          This callback method will be called upon unsuccessful completion of an asynchronous rendition.
 void handleSuccessfulRendition(ChildAssociationRef primaryParentOfNewRendition)
          This callback method will be called upon successful completion of an asynchronous rendition.
 

Method Detail

handleSuccessfulRendition

void handleSuccessfulRendition(ChildAssociationRef primaryParentOfNewRendition)
This callback method will be called upon successful completion of an asynchronous rendition.

Parameters:
primaryParentOfNewRendition - a ChildAssociationRef linking the new rendition object to its primary parent.

handleFailedRendition

void handleFailedRendition(java.lang.Throwable t)
This callback method will be called upon unsuccessful completion of an asynchronous rendition.

Parameters:
t - the Throwable giving the cause of the rendition failure.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.