Class NotificationServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.NotificationServiceImpl
-
- All Implemented Interfaces:
JAXRSService,NotificationService
@Service public class NotificationServiceImpl extends AbstractService implements NotificationService
-
-
Field Summary
Fields Modifier and Type Field Description protected NotificationLogiclogic-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description NotificationServiceImpl(NotificationLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionJob(JobAction action)Executes an action on the notification job.javax.ws.rs.core.Responsecreate(NotificationTO notificationTO)Creates a new notification.voiddelete(String key)Deletes the notification matching the given key.JobTOgetJob()Returns details about notification job.List<NotificationTO>list()Returns a list of all notifications.NotificationTOread(String key)Returns notification with matching key.voidupdate(NotificationTO notificationTO)Updates the notification matching the given key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final NotificationLogic logic
-
-
Constructor Detail
-
NotificationServiceImpl
public NotificationServiceImpl(NotificationLogic logic)
-
-
Method Detail
-
create
public javax.ws.rs.core.Response create(NotificationTO notificationTO)
Description copied from interface:NotificationServiceCreates a new notification.- Specified by:
createin interfaceNotificationService- Parameters:
notificationTO- Creates a new notification.- Returns:
- Response object featuring Location header of created notification
-
read
public NotificationTO read(String key)
Description copied from interface:NotificationServiceReturns notification with matching key.- Specified by:
readin interfaceNotificationService- Parameters:
key- key of notification to be read- Returns:
- notification with matching key
-
list
public List<NotificationTO> list()
Description copied from interface:NotificationServiceReturns a list of all notifications.- Specified by:
listin interfaceNotificationService- Returns:
- list of all notifications.
-
update
public void update(NotificationTO notificationTO)
Description copied from interface:NotificationServiceUpdates the notification matching the given key.- Specified by:
updatein interfaceNotificationService- Parameters:
notificationTO- notification to be stored
-
delete
public void delete(String key)
Description copied from interface:NotificationServiceDeletes the notification matching the given key.- Specified by:
deletein interfaceNotificationService- Parameters:
key- key for notification to be deleted
-
getJob
public JobTO getJob()
Description copied from interface:NotificationServiceReturns details about notification job.- Specified by:
getJobin interfaceNotificationService- Returns:
- details about notification job
-
actionJob
public void actionJob(JobAction action)
Description copied from interface:NotificationServiceExecutes an action on the notification job.- Specified by:
actionJobin interfaceNotificationService- Parameters:
action- action to execute
-
-