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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a JSON string to be added to the DocLib webscript response.
    protected Object
    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

    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 Details

    • SlingshotDocLibCustomResponse

      public SlingshotDocLibCustomResponse()
  • Method Details

    • 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