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
FieldsModifier and TypeFieldDescriptionprotected NodeService
protected PersonService
protected SubscriptionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
(NodeService nodeService) void
setPersonService
(PersonService personService) void
setSubscriptionService
(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 Details
-
subscriptionService
-
nodeService
-
personService
-
-
Constructor Details
-
AbstractSubscriptionServiceWebScript
public AbstractSubscriptionServiceWebScript()
-
-
Method Details
-
setSubscriptionService
-
setNodeService
-
setPersonService
-
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
-
createPagingRequest
protected org.alfresco.query.PagingRequest createPagingRequest(org.springframework.extensions.webscripts.WebScriptRequest req) -
getUserDetails
-
getUserArray
-