Class AbstractSubscriptionServiceWebScript

    • 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 org.alfresco.service.cmr.repository.NodeService nodeService  
      protected org.alfresco.service.cmr.security.PersonService personService  
      protected org.alfresco.service.cmr.subscriptions.SubscriptionService subscriptionService  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      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 getUserDetails​(String username)  
      protected int parseNumber​(String name, String number, int def)  
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)  
      void setPersonService​(org.alfresco.service.cmr.security.PersonService personService)  
      void setSubscriptionService​(org.alfresco.service.cmr.subscriptions.SubscriptionService subscriptionService)  
      • 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
    • Field Detail

      • subscriptionService

        protected org.alfresco.service.cmr.subscriptions.SubscriptionService subscriptionService
      • nodeService

        protected org.alfresco.service.cmr.repository.NodeService nodeService
      • personService

        protected org.alfresco.service.cmr.security.PersonService personService
    • Constructor Detail

      • AbstractSubscriptionServiceWebScript

        public AbstractSubscriptionServiceWebScript()
    • Method Detail

      • setSubscriptionService

        public void setSubscriptionService​(org.alfresco.service.cmr.subscriptions.SubscriptionService subscriptionService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setPersonService

        public void setPersonService​(org.alfresco.service.cmr.security.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)