org.alfresco.repo.jscript
Class SlingshotDocLibCustomResponse

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.jscript.BaseScopableProcessorExtension
          extended by org.alfresco.repo.jscript.SlingshotDocLibCustomResponse
All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable

public final class SlingshotDocLibCustomResponse
extends BaseScopableProcessorExtension

Populates DocLib webscript response with custom metadata output


Constructor Summary
SlingshotDocLibCustomResponse()
           
 
Method Summary
 java.lang.String getJSON()
          Returns a JSON string to be added to the DocLib webscript response.
protected  java.lang.Object getJSONObj()
          Returns a JSON object to be added to the DocLib webscript response.
 void setCustomResponses(java.util.Map customResponses)
          Set the custom response beans
 
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
 
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingshotDocLibCustomResponse

public SlingshotDocLibCustomResponse()
Method Detail

setCustomResponses

public void setCustomResponses(java.util.Map customResponses)
Set the custom response beans

Parameters:
customResponses -

getJSON

public java.lang.String getJSON()
Returns a JSON string to be added to the DocLib webscript response.

Returns:
The JSON string

getJSONObj

protected java.lang.Object getJSONObj()
Returns a JSON object to be added to the DocLib webscript response.

Returns:
The JSON object


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