/* (non-Javadoc)
@see com.ibm.ws.sib.processor.runtime.SIMPTopicSpaceControllable#deleteLocalSubscriptionControlByID(java.lang.String)
318
public void deleteLocalSubscriptionControlByID(String id) 
  throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException, 
         SIDurableSubscriptionNotFoundException, SIDestinationLockedException, SIResourceException, SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "deleteLocalSubscriptionControlByID", id);
    
    assertMessageHandlerNotCorrupt();

    ControllableSubscription sub = getSubscription(id);

    if (!sub.isDurable())
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(
          tc,
          "deleteLocalSubscriptionControlByID",
          "SIMPIncorrectCallException");
          
      throw new SIMPIncorrectCallException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_DELETE_ERROR_CWSIP0272",
          new Object[]{id},
          null));  
    }
    
    HashMap durableSubs = destinationManager.getDurableSubscriptionsTable();    

    synchronized (durableSubs)
    {
      // Look up the consumer dispatcher for this subId in the system durable subs list
      ConsumerDispatcher cd = 
        (ConsumerDispatcher) durableSubs.get(sub.getConsumerDispatcherState().getSubscriberID());
      
      // Does the subscription exist, if it doesn't, throw a 
      // SIDestinationNotFoundException
      if (cd == null)
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
          SibTr.exit(tc, "deleteSubscription", "SIMPControllableNotFoundException");
          
        throw new SIMPControllableNotFoundException(          
          nls.getFormattedMessage(
            "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0146",
            new Object[] { sub.getConsumerDispatcherState().getSubscriberID(),
                           messageProcessor.getMessagingEngineName() },
          null));
      }        

      // Obtain the destination from the queueing points
      DestinationHandler destination = cd.getDestination();

      // Call the deleteDurableSubscription method on the destination
      // NOTE: this assumes the durable subscription is always local
      destination.deleteDurableSubscription(sub.getConsumerDispatcherState().getSubscriberID(), 
                                            messageProcessor.getMessagingEngineName());
    }

    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "deleteLocalSubscriptionControlByID");
  }
1202749
public ResultType deleteConditionalMenu(String menuId) {
        BeanUtil.requireNonNull(menuId, "menuid is null");
        LOG.debug("删除个性化菜单.....");
        String url = BASE_API_URL + "cgi-bin/menu/delconditional?access_token=#";
        Map<String, String> params = new HashMap<String, String>();
        params.put("menuid", menuId);
        BaseResponse response = executePost(url, JSONUtil.toJson(params));
        return ResultType.get(response.getErrcode());
    }
645809
public void billingAccount_timeCondition_serviceName_condition_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
		String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}";
		StringBuilder sb = path(qPath, billingAccount, serviceName, id);
		exec(qPath, "DELETE", sb.toString(), null);
	}
60232
public Observable<ServiceResponse<Void>> deleteImageRegionsWithServiceResponseAsync(UUID projectId, List<String> regionIds) {
        if (projectId == null) {
            throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
        }
        if (regionIds == null) {
            throw new IllegalArgumentException("Parameter regionIds is required and cannot be null.");
        }
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        Validator.validate(regionIds);
        String regionIdsConverted = this.client.serializerAdapter().serializeList(regionIds, CollectionFormat.CSV);
        return service.deleteImageRegions(projectId, regionIdsConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() {
                @Override
                public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<Void> clientResponse = deleteImageRegionsDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
1339149
public static void deleteCPDefinitionLink(long cpDefinitionLinkId)
		throws com.liferay.portal.kernel.exception.PortalException {
		getService().deleteCPDefinitionLink(cpDefinitionLinkId);
	}
591691
@Override
    public void setDurableSubscriptionHome(String value) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setDurableSubscriptionHome", value);
        jcaManagedConnectionFactory.setDurableSubscriptionHome(value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setDurableSubscriptionHome");
    }
851210
@Override
	public com.liferay.commerce.model.CommerceSubscriptionEntry deleteCommerceSubscriptionEntry(
		com.liferay.commerce.model.CommerceSubscriptionEntry commerceSubscriptionEntry) {
		return _commerceSubscriptionEntryLocalService.deleteCommerceSubscriptionEntry(commerceSubscriptionEntry);
	}
314944
public void deleteSystemDestination(JsDestinationAddress destAddr) throws SIResourceException, SINotPossibleInCurrentConfigurationException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "deleteSystemDestination", new Object[] { destAddr });

        BaseDestinationHandler destinationHandler = null;

        DestinationTypeFilter filter = new DestinationTypeFilter();
        filter.VISIBLE = Boolean.TRUE;
        filter.ALIAS = Boolean.FALSE;
        filter.FOREIGN_DESTINATION = Boolean.FALSE;
        DestinationHandler dh =
                        destinationIndex.findByName(destAddr.getDestinationName(), messageProcessor.getMessagingEngineBus(), filter);

        try
        {
            checkDestinationHandlerExists(
                                          dh != null,
                                          destAddr.getDestinationName(),
                                          messageProcessor.getMessagingEngineName());
        } catch (SITemporaryDestinationNotFoundException e)
        {
            // // FFDC
            FFDCFilter.processException(
                                        e,
                                        "com.ibm.ws.sib.processor.impl.DestinationManager.deleteSystemDestination",
                                        "1:5408:1.508.1.7",
                                        this);

            // This shouldn't occur as the Connection will create a valid system destination.
            // Or validate that the destination address passed in is a system destination

            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(tc, "deleteSystemDestination", "SIErrorException");

            throw new SIErrorException(
                            nls.getFormattedMessage(
                                                    "INTERNAL_MESSAGING_ERROR_CWSIP0003",
                                                    new Object[] { "com.ibm.ws.sib.processor.impl.DestinationManager",
                                                                  "1:5421:1.508.1.7",
                                                                  e,
                                                                  destAddr.getDestinationName() },
                                                    null),
                            e);
        }

        destinationHandler = (BaseDestinationHandler) dh;

        deleteSystemDestination(destinationHandler);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "deleteSystemDestination");
    }
581665
public void deleteService(String serviceId) {

        DeleteServiceRequest deleteServiceRequest = new DeleteServiceRequest().withId(serviceId);
        getDiscoveryClient().deleteService(deleteServiceRequest);

    }
36020
public static com.liferay.commerce.model.CommerceSubscriptionEntry deleteCommerceSubscriptionEntry(
		com.liferay.commerce.model.CommerceSubscriptionEntry commerceSubscriptionEntry) {
		return getService()
				   .deleteCommerceSubscriptionEntry(commerceSubscriptionEntry);
	}
863370
@Override
	public void removeByCPDefinitionOptionRelId(long CPDefinitionOptionRelId) {
		for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : findByCPDefinitionOptionRelId(
				CPDefinitionOptionRelId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionOptionValueRel);
		}
	}
851860
@Override
	public void removeByCPD_T(long CPDefinitionId, String type) {
		for (CPDefinitionLink cpDefinitionLink : findByCPD_T(CPDefinitionId,
				type, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLink);
		}
	}
810606
private ControllableSubscription getSubscription(String id) 
  throws SIMPControllableNotFoundException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getSubscription", id);
      
    //id is assumed to be SIBUuid12
    SIBUuid12 uuid = new SIBUuid12(id);
    SubscriptionTypeFilter filter = new SubscriptionTypeFilter();
    filter.LOCAL = Boolean.TRUE;
    ControllableSubscription sub = getSubscriptionIndex().findByUuid(uuid, filter);
    
    // If the sub is null, throw an exception
    if (sub == null)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(
          tc,
          "getLocalSubscriptionControlByID",
          "SIMPControllableNotFoundException");
          
      throw new SIMPControllableNotFoundException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_NOT_FOUND_ERROR_CWSIP0271",
          new Object[]{id},
          null));  
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getSubscription", sub);
    
    return sub;
  }
170957
private void deletePubsubSubscription(String subscription) throws IOException {
    if (pubsubClient == null) {
      pubsubClient = newPubsubClient(options.as(PubsubOptions.class)).build();
    }
    if (executeNullIfNotFound(pubsubClient.projects().subscriptions().get(subscription)) != null) {
      pubsubClient.projects().subscriptions().delete(subscription).execute();
    }
  }
579397
@Override
	public void removeByCPSpecificationOptionId(long CPSpecificationOptionId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByCPSpecificationOptionId(
				CPSpecificationOptionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
26468
public SIMPLocalQueuePointControllable getLocalQueuePointControlByID(String id)
    throws SIMPInvalidRuntimeIDException,
           SIMPControllableNotFoundException,
           SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getLocalQueuePointControlByID", new Object[] { id });

    SIMPLocalQueuePointControllable control = null;
    
    // Extract destination uuid and msgStore id
    String [] tokens = id.split(RuntimeControlConstants.QUEUE_ID_INSERT);
    
    if (tokens.length > 0)
    {
      DestinationHandler dest = 
        destinationManager.getDestinationInternal(new SIBUuid12(tokens[0]), false);
        
      if (dest != null)
      {
        try
        {
          control = (SIMPLocalQueuePointControllable) findControllableFromItemStream((SIMPItemStream)dest, tokens[1]);
        }
        catch (ClassCastException e)
        {
          // FFDC
          FFDCFilter.processException(
            e,
            "com.ibm.ws.sib.processor.runtime.MessageProcessorControl.getLocalQueuePointControlByID",
            "1:550:1.52", 
            this);
          
          SIMPControllableNotFoundException finalE =
            new SIMPControllableNotFoundException(
              nls.getFormattedMessage(
                "INTERNAL_MESSAGING_ERROR_CWSIP0002",
                new Object[] {"MessageProcessorControl.getLocalQueuePointControlByID",
                              "1:558:1.52", 
                              id},
                null));

          SibTr.exception(tc, finalE);
                  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getLocalQueuePointControlByID", finalE);
          throw finalE;
        }
      }
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getLocalQueuePointControlByID");

    return control;
  }
796681
public void deleteMQLinkLocalization(SIBUuid8 mqLinkUuid)
                    throws SINotPossibleInCurrentConfigurationException,
                    SIResourceException
    {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(
                        tc,
                        "deleteMQLinkLocalization",
                        new Object[] { mqLinkUuid });

        // Get the destination
        LinkTypeFilter filter = new LinkTypeFilter();
        filter.MQLINK = Boolean.TRUE;

        // includeInvisible?
        // filter.VISIBLE = Boolean.TRUE;

        MQLinkHandler mqLinkHandler =
                        (MQLinkHandler) linkIndex.findByMQLinkUuid(mqLinkUuid, filter);

        checkMQLinkExists(
                          mqLinkHandler != null,
                          mqLinkUuid.toString());

        //The lock on the destinationManager is taken to stop 2 threads creating the same
        //destination and also to synchronize dynamic deletes with the
        //creation of aliases.  This stops an alias destination being created that targets a
        //destination in the process of being deleted.
        synchronized (this)
        {

            synchronized (mqLinkHandler)
            {
                //  Get the MQLinkManager
                MQLinkManager mqlinkManager = getMQLinkManager();

                // remove from the list - we won't attempt to delete it until requested
                // by the MQLink component
                linkIndex.cleanup(mqLinkHandler);
                linkIndex.defer(mqLinkHandler);

                // Call MQLink component in order to alert it to the deletion
                // MP will be called back to delete its resources.
                try
                {
                    mqlinkManager.delete(mqLinkHandler.getMQLinkObject());
                } catch (SIResourceException e)
                {
                    // No FFDC code needed

                    SibTr.exception(tc, e);
                } catch (SIException e)
                {
                    // No FFDC code needed

                    SibTr.exception(tc, e);
                }

                //Add all the localisations to the set of those requiring clean-up
                mqLinkHandler.addAllLocalisationsForCleanUp();

                //Clear the set of ME's that localise the destination
                mqLinkHandler.clearLocalisingUuidsSet();

                // Deregister the link from TRM/WLM
                mqLinkHandler.deregisterLink();

            } // eof syncronized on mqLinkHandler

            // Close all connections to the localisation
            // Ensure that before calling these methods, the destination is marked
            // to-be-deleted or is marked as deleted, to avoid any new producers and
            // consumers attaching after we have closed the currently attached ones.
            mqLinkHandler.closeProducers();
            mqLinkHandler.closeConsumers();

            //Delete all aliases that target this destination
            mqLinkHandler.deleteTargettingAliases();
        } // eof synchronized on DestinationManager

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "deleteMQLinkLocalization");

        return;
    }