Retrieves the details of an existing subscription schedule. You only need to supply the unique
subscription schedule identifier that was returned upon subscription schedule creation.
10236
public static SubscriptionSchedule retrieve(String schedule) throws StripeException {
    return retrieve(schedule, (Map<String, Object>) null, (RequestOptions) null);
  }
1288024
public String getSubscriptionId(FhirContext theFhirContext) {
		String retVal = null;
		if (getSubscription() != null) {
			retVal = getSubscription().getIdElement(theFhirContext).getValue();
		}
		return retVal;
	}
898273
public String getSubscriberId()
    {
      if (tc.isEntryEnabled())
        SibTr.entry(tc, "getSubscriberId");

      String subscriberId = _consumerDispatcher.getConsumerDispatcherState().getSubscriberID();
      
      if (tc.isEntryEnabled())
        SibTr.exit(tc, "getSubscriberId", subscriberId);
      return subscriberId;
    }
1324684
def get_url_for_schedule(self, schedule):
        
        url = self._get_url(schedule)
        if url is None:
            return None
        response = DAO.getURL(url, {"Accept": "application/json"})
        if response.status != 200:
            raise DataFailureException(url, response.status, response.data)

        data = json.loads(response.data)

        if "ubsLink" in data:
            return data["ubsLink"][0]["search"]
806962
@Override
  public IScheduleBuilder <ISimpleTrigger> getScheduleBuilder ()
  {
    final SimpleScheduleBuilder sb = SimpleScheduleBuilder.simpleSchedule ()
                                                          .withIntervalInMilliseconds (getRepeatInterval ())
                                                          .withRepeatCount (getRepeatCount ());

    switch (getMisfireInstruction ())
    {
      case MISFIRE_INSTRUCTION_FIRE_NOW:
        sb.withMisfireHandlingInstructionFireNow ();
        break;
      case MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT:
        sb.withMisfireHandlingInstructionNextWithExistingCount ();
        break;
      case MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT:
        sb.withMisfireHandlingInstructionNextWithRemainingCount ();
        break;
      case MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT:
        sb.withMisfireHandlingInstructionNowWithExistingCount ();
        break;
      case MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT:
        sb.withMisfireHandlingInstructionNowWithRemainingCount ();
        break;
    }

    return sb;
  }
276628
@Override
    public java.util.concurrent.Future<GetSubscriptionAttributesResult> getSubscriptionAttributesAsync(String subscriptionArn) {

        return getSubscriptionAttributesAsync(new GetSubscriptionAttributesRequest().withSubscriptionArn(subscriptionArn));
    }
286261
private void getArtistData() {
        mRetrievedTracks.clear();
        mAdapter.notifyDataSetChanged();

        mTracksSubscription =
                mCheerleaderClient.getArtistTracks()
                        .subscribeOn(Schedulers.io())
                        .observeOn(AndroidSchedulers.mainThread())
                        .subscribe(displayTracks());

        mProfileSubscription =
                mCheerleaderClient.getArtistProfile()
                        .observeOn(AndroidSchedulers.mainThread())
                        .subscribeOn(Schedulers.io())
                        .subscribe(displayArtist());
    }
487101
public static ScheduledExecutorService getScheduledExecutorService() {
        CHFWBundle c = instance.get().get();
        if (null != c) {
            return c.scheduledExecutor;
        }
        return null;
    }
182935
def get_netid_subscriptions(netid, subscription_codes):
    
    url = _netid_subscription_url(netid, subscription_codes)
    response = get_resource(url)
    return _json_to_subscriptions(response)
909617
public Subscription getSubscription(Reference reference) {
		return getResourceFactory().getApiResource(
				"/subscription/" + reference.toURLFragment(false)).get(
				Subscription.class);
	}
403445
private Map<UUID, DateTime> getNextTransitionsForSubscriptions(final BillingEventSet billingEvents) {

        final DateTime now = clock.getUTCNow();
        final Map<UUID, DateTime> result = new HashMap<UUID, DateTime>();
        for (final BillingEvent evt : billingEvents) {
            final UUID subscriptionId = evt.getSubscriptionId();
            final DateTime evtEffectiveDate = evt.getEffectiveDate();
            if (evtEffectiveDate.compareTo(now) <= 0) {
                continue;
            }
            final DateTime nextUpcomingPerSubscriptionDate = result.get(subscriptionId);
            if (nextUpcomingPerSubscriptionDate == null || nextUpcomingPerSubscriptionDate.compareTo(evtEffectiveDate) > 0) {
                result.put(subscriptionId, evtEffectiveDate);
            }
        }
        return result;
    }
1083570
def organization_subscription_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/organization_subscriptions/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
709991
public Subscription reactivateSubscription(final Subscription subscription) {
        return doPUT(Subscription.SUBSCRIPTION_RESOURCE + "/" + subscription.getUuid() + "/reactivate",
                     subscription, Subscription.class);
    }
477136
def get_subscriptions(self, publication_id=None, owner_id=None,
                          since_when=None, limit_to=200, max_calls=None,
                          start_record=0, verbose=False):
        
        query = "SELECT Objects() FROM Subscription"

        # collect all where parameters into a list of
        # (key, operator, value) tuples
        where_params = []

        if owner_id:
            where_params.append(('owner', '=', "'%s'" % owner_id))
        if publication_id:
            where_params.append(('publication', '=', "'%s'" % publication_id))
        if since_when:
            d = datetime.date.today() - datetime.timedelta(days=since_when)
            where_params.append(
                ('LastModifiedDate', ">", "'%s 00:00:00'" % d))

        if where_params:
            query += " WHERE "
            query += " AND ".join(
                ["%s %s %s" % (p[0], p[1], p[2]) for p in where_params])

        subscription_list = self.get_long_query(
            query, limit_to=limit_to, max_calls=max_calls,
            start_record=start_record, verbose=verbose)

        return subscription_list
683009
def find_behind_subscriptions():
    
    subscriptions = Subscription.objects.filter(
        active=True, completed=False, process_status=0
    ).values_list("id", flat=True)
    for subscription_id in subscriptions.iterator():
        calculate_subscription_lifecycle.delay(str(subscription_id))
1127385
@Override
    public String getSubscribeId(String fname) throws PortalException {

        // see if a given subscribe id is already in the map
        String subId = mFnameMap.get(fname);
        if (subId == null) {
            // see if a given subscribe id is already in the layout
            subId = man.getSubscribeId(fname);
        }

        // obtain a description of the transient channel and
        // assign a new transient channel id
        if (subId == null) {
            try {
                IPortletDefinition chanDef =
                        PortletDefinitionRegistryLocator.getPortletDefinitionRegistry()
                                .getPortletDefinitionByFname(fname);
                if (chanDef != null) {
                    // assign a new id
                    subId = getNextSubscribeId();
                    mFnameMap.put(fname, subId);
                    mSubIdMap.put(subId, fname);
                    mChanMap.put(subId, chanDef);
                }
            } catch (Exception e) {
                log.error(
                        "TransientUserLayoutManagerWrapper::getSubscribeId() : "
                                + "an exception encountered while trying to obtain "
                                + "ChannelDefinition for fname \""
                                + fname
                                + "\" : "
                                + e);
                subId = null;
            }
        }
        return subId;
    }
1372587
public SubscriptionScheduleRevisionCollection revisions() throws StripeException {
    return revisions((Map<String, Object>) null, (RequestOptions) null);
  }