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 Constructor Description SlingshotDocLibCustomResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJSON()
Returns a JSON string to be added to the DocLib webscript response.protected Object
getJSONObj()
Returns a JSON object to be added to the DocLib webscript response.void
setCustomResponses(Map<String,Object> customResponses)
Set the custom response beans-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
-
-
-
Method Detail
-
setCustomResponses
public void setCustomResponses(Map<String,Object> customResponses)
Set the custom response beans- Parameters:
customResponses
-
-
getJSON
public String getJSON()
Returns a JSON string to be added to the DocLib webscript response.- Returns:
- The JSON string
-
getJSONObj
protected Object getJSONObj()
Returns a JSON object to be added to the DocLib webscript response.- Returns:
- The JSON object
-
-