org.alfresco.repo.web.scripts.subscriptions
Class AbstractSubscriptionServiceWebScript

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by 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
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.security.PersonService personService
           
protected  org.alfresco.service.cmr.subscriptions.SubscriptionService subscriptionService
           
 
Constructor Summary
AbstractSubscriptionServiceWebScript()
           
 
Method Summary
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  java.lang.Object executeImpl(java.lang.String userId, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
           
protected  org.json.simple.JSONArray getUserArray(java.util.List usernames)
           
protected  org.json.simple.JSONObject getUserDetails(java.lang.String username)
           
protected  int parseNumber(java.lang.String name, java.lang.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
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 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 java.io.IOException
Throws:
java.io.IOException

executeImpl

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

parseNumber

protected int parseNumber(java.lang.String name,
                          java.lang.String number,
                          int def)

createPagingRequest

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

getUserDetails

protected org.json.simple.JSONObject getUserDetails(java.lang.String username)

getUserArray

protected org.json.simple.JSONArray getUserArray(java.util.List usernames)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.