Merge "Issue #2459 - Last change from unscheduled to deactivated." into omaha_14.2.1
Former-commit-id: 2f969c1e6ef6dfa1e6ee83a0fd32d9983f8dfa88
This commit is contained in:
commit
7515cbcc6c
2 changed files with 9 additions and 1 deletions
|
@ -40,6 +40,7 @@ import com.raytheon.uf.viz.datadelivery.subscription.SubscriptionService.IForceA
|
|||
* Dec 4, 2012 1286 djohnson Initial creation
|
||||
* May 28, 2013 1650 djohnson More information when failing to schedule subscriptions.
|
||||
* Jan 17, 2014 2459 mpduff Change gui usage of unscheduled to deactivated.
|
||||
* Jan 26, 2014 2459 mpduff Change unscheduled label to deactivated.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -92,7 +93,7 @@ public class CancelForceApplyAndIncreaseLatencyDisplayText implements
|
|||
+ " and leave in a Deactivated status";
|
||||
}
|
||||
return titleCaseActionText + " " + name
|
||||
+ " and unschedule the others";
|
||||
+ " and deactivate the others";
|
||||
case EDIT_SUBSCRIPTIONS:
|
||||
return "Edit the "
|
||||
+ ((singleSubscription) ? "subscription" : "subscriptions");
|
||||
|
|
|
@ -45,7 +45,9 @@ import com.raytheon.uf.common.datadelivery.registry.GriddedTime;
|
|||
import com.raytheon.uf.common.datadelivery.registry.InitialPendingSubscription;
|
||||
import com.raytheon.uf.common.datadelivery.registry.PendingSubscription;
|
||||
import com.raytheon.uf.common.datadelivery.registry.PointTime;
|
||||
import com.raytheon.uf.common.datadelivery.registry.RecurringSubscription;
|
||||
import com.raytheon.uf.common.datadelivery.registry.Subscription;
|
||||
import com.raytheon.uf.common.datadelivery.registry.Subscription.SubscriptionState;
|
||||
import com.raytheon.uf.common.datadelivery.registry.Time;
|
||||
import com.raytheon.uf.common.datadelivery.registry.handlers.DataDeliveryHandlers;
|
||||
import com.raytheon.uf.common.datadelivery.registry.handlers.IPendingSubscriptionHandler;
|
||||
|
@ -94,6 +96,7 @@ import com.raytheon.uf.viz.datadelivery.utils.DataDeliveryUtils;
|
|||
* Oct 12, 2013 2460 dhladky restored adhoc subscriptions to registry storage.
|
||||
* Oct 22, 2013 2292 mpduff Removed subscriptionOverlapService.
|
||||
* Nov 07, 2013 2291 skorolev Used showText() method for "Shared Subscription" message.
|
||||
* Jan 26, 2014 2259 mpduff Turn off subs to be deactivated.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -768,6 +771,10 @@ public class SubscriptionService implements ISubscriptionService {
|
|||
continue;
|
||||
}
|
||||
unscheduledSub.setUnscheduled(true);
|
||||
if (unscheduledSub instanceof RecurringSubscription) {
|
||||
((RecurringSubscription) unscheduledSub)
|
||||
.setSubscriptionState(SubscriptionState.OFF);
|
||||
}
|
||||
subscriptionHandler.update(unscheduledSub);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue