[
https://issues.apache.org/jira/browse/USERGRID-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Russo updated USERGRID-1181:
------------------------------------
Sprint: On Deck
> Allow notification entities to be deleted if they are not "in progress"
> -----------------------------------------------------------------------
>
> Key: USERGRID-1181
> URL: https://issues.apache.org/jira/browse/USERGRID-1181
> Project: Usergrid
> Issue Type: Story
> Reporter: Michael Russo
> Assignee: Michael Russo
>
> Update NotificationsService to be allow removal of notifications that are not
> in a processing state:
> {code}
> @Override
> protected boolean isDeleteAllowed(ServiceContext context, Entity entity) {
> Notification notification = (Notification) entity;
> Notification.State state = notification.getState();
> return !(state.equals(Notification.State.CREATED) ||
> state.equals(Notification.State.STARTED) ||
> state.equals(Notification.State.SCHEDULED));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)