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:14:46 UTC
[jira] [Created] (USERGRID-1181) Allow notification entities to be
deleted if they are not "in progress"
Michael Russo created USERGRID-1181:
---------------------------------------
Summary: 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)