User user = this.userHolder.getUser();
return this.introductor.introduceInterfaces(user, new Class[]{RemoveSubscriptionsView.class});
}
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
RemoveSubscriptionsView view = (RemoveSubscriptionsView) command;
User user = (User) this.introductor.getTarget(view);
if (view.getSubscriptionsToRemove() != null) {
for (FeedSubscription s : view.getSubscriptionsToRemove()) {
this.userService.removeSubscriptionToFeed(user, s);
}
}
return new AjaxModelAndView(this.getSuccessView(), errors);
}