public class NotificationWebServiceImpl extends BaseDriverWebService<eu.dnetlib.api.functionality.NotificationService> implements NotificationWebService
NotificationWebService,
NotificationService,
NotificationWebServiceExceptionservice| Constructor and Description |
|---|
NotificationWebServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(eu.dnetlib.domain.functionality.NotificationQuery query)
Add a query.
|
void |
addSchedule(eu.dnetlib.domain.functionality.NotificationSchedule schedule)
Add a schedule.
|
void |
addSubscription(eu.dnetlib.domain.functionality.NotificationSubscription subscription)
Add a subscription.
|
void |
disableSchedule(String queryId)
Disable a schedule
|
void |
disableSubscription(String queryId,
URL alertService)
Disable a subscription.
|
void |
enableSchedule(String queryId)
Enable a schedule
|
void |
enableSubscription(String queryId,
URL alertService)
Enable a subscription.
|
eu.dnetlib.domain.functionality.ResultPage |
executeQuery(String queryId,
String resultId,
Date fromDate,
Date toDate,
int limit,
int offset)
Execute a query and return the generated result.
|
eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationEvent> |
getEvents(int pageNumber,
int pageSize)
Retrieve a page of events.
|
eu.dnetlib.domain.functionality.NotificationResult |
getPreviousResult(String queryId,
Date date,
String resultId)
Retrieve a result of the previous event of an event of a query.
|
eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationQuery> |
getQueries(int pageNumber,
int pageSize)
Retrieve a page of queries.
|
eu.dnetlib.domain.functionality.NotificationResult |
getResult(String queryId,
Date date,
String resultId)
Retrieve a result of an event of a query.
|
eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationResult> |
getResults(int pageNumber,
int pageSize)
Retrieve a page of results.
|
eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationSchedule> |
getSchedules(int pageNumber,
int pageSize)
Retrieve a page of schedules
|
eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationSubscription> |
getSubscriptions(int pageSize,
int pageNumber)
Retrieve a page of subscriptions
|
SortedSet<String> |
getSupportedQueryLanguages()
Retrieve all the supported languages in which queries can be expressed.
|
void |
removeQuery(String queryId)
Remove a query.
|
void |
removeSchedule(String queryId)
Remove a schedule.
|
void |
removeSubscription(String queryId,
URL alertService)
Remove a subscription.
|
identify, notify, setService, startpublic SortedSet<String> getSupportedQueryLanguages()
NotificationWebServicegetSupportedQueryLanguages in interface NotificationWebServicepublic eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationQuery> getQueries(int pageNumber,
int pageSize)
throws NotificationWebServiceException
NotificationWebServicegetQueries in interface NotificationWebServicepageNumber - the number of the page to retrievepageSize - the size of the page to retrieveNotificationWebServiceException - if any errors occurpublic void addQuery(eu.dnetlib.domain.functionality.NotificationQuery query)
throws NotificationWebServiceException
NotificationWebServiceaddQuery in interface NotificationWebServicequery - the query to addNotificationWebServiceException - if any errors occurpublic void removeQuery(String queryId) throws NotificationWebServiceException
NotificationWebServiceremoveQuery in interface NotificationWebServicequeryId - the unique identifier of the query to removeNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.ResultPage executeQuery(String queryId, String resultId, Date fromDate, Date toDate, int limit, int offset) throws NotificationWebServiceException
NotificationWebServiceexecuteQuery in interface NotificationWebServicequeryId - the unique identifier of the query to executeresultId - the unique result identifier to usefromDate - the from date to usetoDate - the to date to uselimit - the limit to useoffset - the offset to useNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationSchedule> getSchedules(int pageNumber,
int pageSize)
throws NotificationWebServiceException
NotificationWebServicegetSchedules in interface NotificationWebServicepageNumber - the number of the page to retrievepageSize - the size of the page to retrieveNotificationWebServiceException - if any errors occurpublic void addSchedule(eu.dnetlib.domain.functionality.NotificationSchedule schedule)
throws NotificationWebServiceException
NotificationWebServiceaddSchedule in interface NotificationWebServiceschedule - the schedule to addNotificationWebServiceException - if any errors occurpublic void enableSchedule(String queryId) throws NotificationWebServiceException
NotificationWebServiceenableSchedule in interface NotificationWebServicequeryId - the unique identifier of the query whose schedule to enableNotificationWebServiceException - if any errors occurpublic void disableSchedule(String queryId) throws NotificationWebServiceException
NotificationWebServicedisableSchedule in interface NotificationWebServicequeryId - the unique identifier of the query whose schedule to disableNotificationWebServiceException - if any errors occurpublic void removeSchedule(String queryId) throws NotificationWebServiceException
NotificationWebServiceremoveSchedule in interface NotificationWebServicequeryId - the unique identifier of the query of the schedule to removeNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationEvent> getEvents(int pageNumber,
int pageSize)
throws NotificationWebServiceException
NotificationWebServicegetEvents in interface NotificationWebServicepageNumber - the number of the page to retrievepageSize - the size of the page to retrieveNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationResult> getResults(int pageNumber,
int pageSize)
throws NotificationWebServiceException
NotificationWebServicegetResults in interface NotificationWebServicepageNumber - the number of the page to retrievepageSize - the size of the page to retrieveNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.NotificationResult getResult(String queryId, Date date, String resultId) throws NotificationWebServiceException
NotificationWebServicegetResult in interface NotificationWebServicequeryId - the unique identifier of the query of the event of the result to retrievedate - the date corresponding to the event of the result to retrieveresultId - the unique identifier of the result to retrieveNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.NotificationResult getPreviousResult(String queryId, Date date, String resultId) throws NotificationWebServiceException
NotificationWebServicegetPreviousResult in interface NotificationWebServicequeryId - the unique identifier of the query of the event of the result to retrievedate - the date corresponding to the next event of the event whose result to retrieveresultId - the unique identifier of the result to retrieveNotificationWebServiceException - if any errors occurpublic eu.dnetlib.domain.functionality.ObjectPage<eu.dnetlib.domain.functionality.NotificationSubscription> getSubscriptions(int pageSize,
int pageNumber)
throws NotificationWebServiceException
NotificationWebServicegetSubscriptions in interface NotificationWebServicepageSize - the number of the page to retrievepageNumber - the size of the page to retrieveNotificationWebServiceException - if any errors occurpublic void addSubscription(eu.dnetlib.domain.functionality.NotificationSubscription subscription)
throws NotificationWebServiceException
NotificationWebServiceaddSubscription in interface NotificationWebServicesubscription - the subscription to addNotificationWebServiceException - if any errors occurpublic void enableSubscription(String queryId, URL alertService) throws NotificationWebServiceException
NotificationWebServiceenableSubscription in interface NotificationWebServicequeryId - the unique identifier of the query of the schedule of the subscription to enablealertService - the URL of the alert service to enableNotificationWebServiceException - if any errors occurpublic void disableSubscription(String queryId, URL alertService) throws NotificationWebServiceException
NotificationWebServicedisableSubscription in interface NotificationWebServicequeryId - the unique identifier of the query of the schedule of the subscription to disablealertService - the URL of the alert service to disableNotificationWebServiceException - if any errors occurpublic void removeSubscription(String queryId, URL alertService) throws NotificationWebServiceException
NotificationWebServiceremoveSubscription in interface NotificationWebServicequeryId - the unique identifier of the query of the schedule of the subscription to removealertService - the URL of the alert service to removeNotificationWebServiceException - if any errors occurCopyright © 2017. All rights reserved.