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 NotificationLogic
logic
-
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 void
actionJob(JobAction action)
Executes an action on the notification job.javax.ws.rs.core.Response
create(NotificationTO notificationTO)
Creates a new notification.void
delete(String key)
Deletes the notification matching the given key.JobTO
getJob()
Returns details about notification job.List<NotificationTO>
list()
Returns a list of all notifications.NotificationTO
read(String key)
Returns notification with matching key.void
update(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:NotificationService
Creates a new notification.- Specified by:
create
in 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:NotificationService
Returns notification with matching key.- Specified by:
read
in interfaceNotificationService
- Parameters:
key
- key of notification to be read- Returns:
- notification with matching key
-
list
public List<NotificationTO> list()
Description copied from interface:NotificationService
Returns a list of all notifications.- Specified by:
list
in interfaceNotificationService
- Returns:
- list of all notifications.
-
update
public void update(NotificationTO notificationTO)
Description copied from interface:NotificationService
Updates the notification matching the given key.- Specified by:
update
in interfaceNotificationService
- Parameters:
notificationTO
- notification to be stored
-
delete
public void delete(String key)
Description copied from interface:NotificationService
Deletes the notification matching the given key.- Specified by:
delete
in interfaceNotificationService
- Parameters:
key
- key for notification to be deleted
-
getJob
public JobTO getJob()
Description copied from interface:NotificationService
Returns details about notification job.- Specified by:
getJob
in interfaceNotificationService
- Returns:
- details about notification job
-
actionJob
public void actionJob(JobAction action)
Description copied from interface:NotificationService
Executes an action on the notification job.- Specified by:
actionJob
in interfaceNotificationService
- Parameters:
action
- action to execute
-
-