mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Turned subscription service into a subsystem
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28919 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,6 +64,11 @@ public abstract class AbstractSubscriptionServiceWebScript extends AbstractWebSc
|
||||
|
||||
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException
|
||||
{
|
||||
if (!subscriptionService.isActive())
|
||||
{
|
||||
throw new WebScriptException(404, "Subscription service is disabled!");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
String userId = req.getServiceMatch().getTemplateVars().get("userid");
|
||||
@@ -88,10 +93,10 @@ public abstract class AbstractSubscriptionServiceWebScript extends AbstractWebSc
|
||||
}
|
||||
} catch (SubscriptionsDisabledException sde)
|
||||
{
|
||||
throw new WebScriptException(400, "Subscription service is disabled!", sde);
|
||||
throw new WebScriptException(404, "Subscription service is disabled!", sde);
|
||||
} catch (NoSuchPersonException nspe)
|
||||
{
|
||||
throw new WebScriptException(400, "Unknown user '" + nspe.getUserName() + "'!", nspe);
|
||||
throw new WebScriptException(404, "Unknown user '" + nspe.getUserName() + "'!", nspe);
|
||||
} catch (PrivateSubscriptionListException psle)
|
||||
{
|
||||
throw new WebScriptException(403, "Subscription list is private!", psle);
|
||||
|
Reference in New Issue
Block a user