Package org.alfresco.repo.jscript
Class SlingshotDocLibCustomResponse
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.jscript.SlingshotDocLibCustomResponse
- All Implemented Interfaces:
ProcessorExtension,org.alfresco.repo.jscript.Scopeable
public final class SlingshotDocLibCustomResponse
extends org.alfresco.repo.jscript.BaseScopableProcessorExtension
Populates DocLib webscript response with custom metadata output
- Author:
- mikeh
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
SlingshotDocLibCustomResponse
public SlingshotDocLibCustomResponse()
-
-
Method Details
-
setCustomResponses
Set the custom response beans- Parameters:
customResponses-
-
getJSON
Returns a JSON string to be added to the DocLib webscript response.- Returns:
- The JSON string
-
getJSONObj
Returns a JSON object to be added to the DocLib webscript response.- Returns:
- The JSON object
-