Class 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 Detail

      • SlingshotDocLibCustomResponse

        public SlingshotDocLibCustomResponse()
    • 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