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
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeServicenodeServiceprotected PersonServicepersonServiceprotected SubscriptionServicesubscriptionService
-
Constructor Summary
Constructors Constructor Description AbstractSubscriptionServiceWebScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.alfresco.query.PagingRequestcreatePagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)voidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)abstract ObjectexecuteImpl(String userId, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)protected org.json.simple.JSONArraygetUserArray(List<String> usernames)protected org.json.simple.JSONObjectgetUserDetails(String username)protected intparseNumber(String name, String number, int def)voidsetNodeService(NodeService nodeService)voidsetPersonService(PersonService personService)voidsetSubscriptionService(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 SubscriptionService subscriptionService
-
nodeService
protected NodeService nodeService
-
personService
protected PersonService personService
-
-
Method Detail
-
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:
IOExceptionorg.json.simple.parser.ParseException
-
createPagingRequest
protected org.alfresco.query.PagingRequest createPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
-
getUserDetails
protected org.json.simple.JSONObject getUserDetails(String username)
-
-