You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Michael Russo (JIRA)" <ji...@apache.org> on 2015/12/13 03:15:46 UTC

[jira] [Updated] (USERGRID-1181) Allow notification entities to be deleted if they are not "in progress"

     [ 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)