Revision 60499
Added by Konstantina Galouni about 3 years ago
SubscriberController.java | ||
---|---|---|
34 | 34 |
} |
35 | 35 |
return subscriber; |
36 | 36 |
} |
37 |
@RequestMapping(value = "/subscriber", method = RequestMethod.POST) |
|
38 |
public Subscriber saveSubscriber(@RequestBody Subscriber subscriber) { |
|
39 |
return subscriberDAO.save(subscriber); |
|
40 |
} |
|
41 |
@RequestMapping(value = "/subscriber/{email}", method = RequestMethod.DELETE) |
|
42 |
public void deleteSubscriber(@PathVariable(value="email", required = true) String email) throws ContentNotFoundException { |
|
43 |
Subscriber subscriber = subscriberDAO.findByEmail(email); |
|
44 |
if(subscriber == null){ |
|
45 |
throw new ContentNotFoundException("Subscribers not found"); |
|
46 |
} |
|
47 |
subscriberDAO.delete(subscriber.getId()); |
|
37 |
// @RequestMapping(value = "/subscriber", method = RequestMethod.POST) |
|
38 |
// public Subscriber saveSubscriber(@RequestBody Subscriber subscriber) { |
|
39 |
// return subscriberDAO.save(subscriber); |
|
40 |
// } |
|
41 |
// @RequestMapping(value = "/subscriber/{email}", method = RequestMethod.DELETE) |
|
42 |
// public void deleteSubscriber(@PathVariable(value="email", required = true) String email) throws ContentNotFoundException { |
|
43 |
// Subscriber subscriber = subscriberDAO.findByEmail(email); |
|
44 |
// if(subscriber == null){ |
|
45 |
// throw new ContentNotFoundException("Subscribers not found"); |
|
46 |
// } |
|
47 |
// subscriberDAO.delete(subscriber.getId()); |
|
48 |
// |
|
49 |
// } |
|
48 | 50 |
|
49 |
} |
|
50 |
|
|
51 | 51 |
} |
Also available in: Unified diff
[Trunk | Admin Tools]:
1. SubscriberController.java & PortalSubscribersController.java: Commented POST/ DELETE methods from controllers related to subscribers (these files will be deleted after migration of roles to AAI).
2. StatisticsController.java: Commented all methods (file and statistics schema in general need update - currently not working).