Class AbstractSubscriptionServiceWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.alfresco.repo.web.scripts.subscriptions.AbstractSubscriptionServiceWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
SubscriptionServiceFollowersCountGet, SubscriptionServiceFollowersGet, SubscriptionServiceFollowingCountGet, SubscriptionServiceFollowingGet, SubscriptionServiceFollowPost, SubscriptionServiceFollowsPost, SubscriptionServicePrivateListGet, SubscriptionServiceUnfollowPost

public abstract class AbstractSubscriptionServiceWebScript extends org.springframework.extensions.webscripts.AbstractWebScript
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected NodeService
     
    protected PersonService
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.alfresco.query.PagingRequest
    createPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
     
    void
    execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
     
    abstract Object
    executeImpl(String userId, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
     
    protected org.json.simple.JSONArray
    getUserArray(List<String> usernames)
     
    protected org.json.simple.JSONObject
     
    protected int
    parseNumber(String name, String number, int def)
     
    void
     
    void
     
    void
     

    Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractSubscriptionServiceWebScript

      public AbstractSubscriptionServiceWebScript()
  • Method Details

    • setSubscriptionService

      public void setSubscriptionService(SubscriptionService subscriptionService)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setPersonService

      public void setPersonService(PersonService personService)
    • execute

      public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
      Throws:
      IOException
    • executeImpl

      public abstract Object executeImpl(String userId, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException, org.json.simple.parser.ParseException
      Throws:
      IOException
      org.json.simple.parser.ParseException
    • parseNumber

      protected int parseNumber(String name, String number, int def)
    • createPagingRequest

      protected org.alfresco.query.PagingRequest createPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
    • getUserDetails

      protected org.json.simple.JSONObject getUserDetails(String username)
    • getUserArray

      protected org.json.simple.JSONArray getUserArray(List<String> usernames)