Disables mobile push notifications for current item reference.

@return Current item reference
510680
public ItemRef disablePushNotifications(){
    pushNotificationsEnabled = false;    
    Event ev = new Event(null, this.table.name, this.primaryKeyValue, this.secondaryKeyValue, false, false, pushNotificationsEnabled,  null);
    ArrayList<String> channels = new ArrayList<String>();
    channels.add(ev.getChannelName());
    context.disablePushNotificationsForChannels(channels);
    
    return this;
  }
1322255
public PushedNotifications getFailedNotifications() {
		PushedNotifications filteredList = new PushedNotifications(this);
		for (PushedNotification notification : this) {
			if (!notification.isSuccessful()) {
				filteredList.add(notification);
			}
		}
		return filteredList;
	}
154935
def stop(self):
        
        self._context.remove_service_listener(self)
        if self.services:
            return [
                (service, reference)
                for reference, service in self.services.items()
            ]

        return None
166180
def stop(cls):
        
        manager = LocationManager.instance()
        if manager:
            for l in manager.listeners:
                manager.removeUpdates(l)
            manager.listeners = []
677425
public function disableMerchantEmail()
    {
        $this->data->email = new stdClass;
        $this->data->email->merchant = new stdClass;

        $this->data->email->merchant->enabled = false;

        return $this;
    }
732024
@Override
    public final void releaseIfDiscardable() throws SevereMessageStoreException
    {
        boolean unlink = false; // flag so we can unlink outside sync block
        if (isStoreNever())
        {
            synchronized (this)
            {
                if (ItemLinkState.STATE_AVAILABLE == _itemLinkState)
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        SibTr.debug(this, tc, "removing STORE_NEVER item as a result of discard");

                    ListStatistics stats = getParentStatistics();
                    synchronized (stats)
                    {
                        stats.decrementAvailable();
                        stats.decrementTotal(_inMemoryItemSize);
                    }

                    _itemLinkState = ItemLinkState.STATE_NOT_STORED;
                    unlink = true;
                }
            }
        }

        if (unlink)
        {
            getMessageStoreImpl().unregister(this);
            unlink();
        }
    }
908147
public com.google.api.ads.adwords.axis.v201809.cm.FeedItemDevicePreference getDevicePreference() {
        return devicePreference;
    }
1097650
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceNotificationTemplateImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
413531
function getPushInfo()
    {
        if ($this->pushInfo == null) {
            $this->pushInfo = new PushInfo();
            $this->pushInfo->set_invalidAPN(true);
            $this->pushInfo->set_invalidMPN(true);
        }

        return $this->pushInfo;
    }
852759
public static function cancelAllNonPersistent()
    {
        foreach (static::getAllNotifications() as $id => $notification) {
            if (Notification::TYPE_PERSISTENT != $notification->type) {
                static::removeNotification($id);
            }
        }
    }
584638
public static function getAllNotificationsToDisplay()
    {
        $notifications = static::getAllNotifications();

        uasort($notifications, function ($n1, $n2) {
            /** @var Notification $n1 */ /** @var Notification $n2 */
            if ($n1->getPriority() == $n2->getPriority()) {
                return 0;
            }

            return $n1->getPriority() > $n2->getPriority() ? -1 : 1;
        });

        return $notifications;
    }
1153704
public MaterialSection setNotifications(int notifications) {
        String textNotification;

        textNotification = String.valueOf(notifications);

        if(notifications < 1) {
            textNotification = "";
        }
        if(notifications > 99) {
            textNotification = "99+";
        }

        this.notifications.setText(textNotification);
        numberNotifications = notifications;

        return this;
    }
1116836
public Notification getNotification() {
    try {
      Notification notif = notifications.take();
      log.debug("Dequeued notification {}", notif);
      return notif;
    } catch (InterruptedException e) {
      log.info("Interrupted while polling notifications' queue");
      return null;
    }
  }
1270637
public function callback_dismiss_notification() {
        if ( isset( $_POST['namespace'] ) || isset( $_POST['id'] ) ) {
            $namespace = $_POST['namespace'];
            $id = $_POST['id'];

			$n_class = get_class();
            $notify = new $n_class( $namespace );
            $notify->hide_notification( $id );
        }
        exit;
    }
531140
public Collection clearUnrestoredMessages()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "clearUnrestoredMessages");

    Collection returnCollection = unrestoredMsgIds;
    // bug fix
    unrestoredMsgIds = new ArrayList();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "clearUnrestoredMessages", returnCollection);
    return  returnCollection;
  }
82846
public long getCurrentSelection() {
        IDrawerItem drawerItem = mDrawerBuilder.getDrawerItem(getCurrentSelectedPosition());
        if (drawerItem != null) {
            return drawerItem.getIdentifier();
        }
        return -1;
    }
1165139
protected function getNotifications() {
        if (!$this->_notifications) {
            $this->_notifications = new NotificationList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['sid']
            );
        }

        return $this->_notifications;
    }