/* (non-Javadoc)
@see com.ibm.ws.sib.processor.runtime.SIMPMessageProcessorControllable#getLocalSubscriptionControlByID(java.lang.String)
494442
public SIMPLocalSubscriptionControllable getLocalSubscriptionControlByID(String id) throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getLocalSubscriptionControlByID");    

    SIMPIterator topicSpaces = getTopicSpaceIterator();
    SIMPLocalSubscriptionControllable localSub = null;
        
    while(topicSpaces.hasNext())
    {
      Topicspace ts = (Topicspace) topicSpaces.next();
      SIMPIterator subs = ts.getLocalSubscriptionIterator();
      while (subs.hasNext())
      {
        SIMPLocalSubscriptionControllable sub = 
          (SIMPLocalSubscriptionControllable)subs.next();
          
        if (sub.getId().equals(id))
        {
          localSub = sub;
          break;
        }
      }
      
      if (localSub != null)
        break;
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getLocalSubscriptionControlByID", localSub);    
    return localSub;
  }
694497
protected String getLocalType (int oid)
    {
        String type = _auxes.get(oid);
        return (type == null) ? PLACE_CHAT_TYPE : type;
    }
1197002
public String getTransactionId() throws SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getTransactionId");

    assertValidControllable();

    String id = null;
    PersistentTranId pTranId = msgItem.getTransactionId();
    if (pTranId != null)
    {
      id = pTranId.toTMString();
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getTransactionId", id);
    return id;
  }
1267382
public static String getLocalizedDescription( Description description ) throws Exception {
        // try to get the language
        Class< ? > annotationclass = Description.class;
        return getLocalizedString(description, annotationclass);
    }
692945
function createdDescriptionCallback(description)
    {
        scope._conn.setLocalDescription(description)
        .then(function()
        {
            if(scope.onDescription)
            {
                scope.onDescription(scope,JSON.stringify({'sdp': scope._conn.localDescription}));
            }
        })
        .catch(onErrorCallback);
    }
260870
public String getTransactionId() throws SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getTransactionId");
    
    assertValidControllable();    
    
    String id = null;
    SIMPMessage msg = null;
    try
    {
      msg = getSIMPMessage();
    }
    catch (SIResourceException e)
    {
      // No FFDC code needed  
      SIMPRuntimeOperationFailedException finalE =
        new SIMPRuntimeOperationFailedException(
          nls.getFormattedMessage(
            "INTERNAL_MESSAGING_ERROR_CWSIP0003",
            new Object[] {"QueuedMessage.getTransactionId",
                          "1:389:1.66",
                          e,
                          Long.toString(_messageID)},
            null), e,
            "INTERNAL_MESSAGING_ERROR_CWSIP0003", new Object[] {Long.toString(_messageID)});
  
      SibTr.exception(tc, finalE);
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
        SibTr.exit(tc, "getTransactionId", finalE);
      throw finalE;
    } 
    
    if (msg != null)
    {
      PersistentTranId pTranId = msg.getTransactionId();
      if (pTranId != null)
      {
        id = pTranId.toTMString(); 
      }
    }
      
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getTransactionId", id);
    return id;
  }
505725
public String getLocalName() {
        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        // 321485
        String name = this._request.getLocalName();
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"getLocalName", " name --> " + name);
        }
        return name;
    }
653741
public String getDescription()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getDescription");
    String desc = _foreignBus.getDescription();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getDescription", desc);      
    return desc;
  }
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;
    }
193803
public String getIdValue(final URI id) {
        if (id == null) {
            return null;
        }
        final URI localId = id.normalize();
        return idMap.get(localId);
    }
1279355
public static LocalVariableAnnotation getParameterLocalVariableAnnotation(Method method, int local) {
        LocalVariableAnnotation lva = getLocalVariableAnnotation(method, local, 0, 0);
        if (lva.isNamed()) {
            lva.setDescription(LocalVariableAnnotation.PARAMETER_NAMED_ROLE);
        } else {
            lva.setDescription(LocalVariableAnnotation.PARAMETER_ROLE);
        }
        return lva;
    }
255518
public ApiResponse<SubscriptionEnvelope> getSubscriptionWithHttpInfo(String subId) throws ApiException {
        com.squareup.okhttp.Call call = getSubscriptionValidateBeforeCall(subId, null, null);
        Type localVarReturnType = new TypeToken<SubscriptionEnvelope>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
73289
public SIMPTopicSpaceControllable getTopicSpaceControlByID(String id)
    throws SIMPInvalidRuntimeIDException,
           SIMPControllableNotFoundException,
           SIMPException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getTopicSpaceControlByID", new Object[] { id });
    
    DestinationTypeFilter filter = new DestinationTypeFilter();
    filter.QUEUE = Boolean.FALSE;
      
    SIMPTopicSpaceControllable control =
      (SIMPTopicSpaceControllable) getMessageHandlerControlByID(id, filter);
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getTopicSpaceControlByID", control);

    return control;        
  }
278499
@Override
    public String getGlobalId() {

        if (_globalId == null) {
            _globalId = Util.toHexString(getXid().getGlobalTransactionId());
        }

        return _globalId;
    }
606534
public SubscriptionDefinition querySubscription(String subId) 
  throws SIDurableSubscriptionNotFoundException, SINotPossibleInCurrentConfigurationException, SIIncorrectCallException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "querySubscription", subId);

    checkStarted();
    
    if (subId == null)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "querySubscription", "Exception SubId null");

      throw new SIIncorrectCallException(
        nls.getFormattedMessage(
          "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0072",
          new Object[] { null,
                         messageProcessor.getMessagingEngineName() },
          null));
    }

    ConsumerDispatcherState subState = 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(subId);

      if (cd == null)
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          SibTr.exit(tc, "querySubscription", "Subscription not found");

        throw new SIDurableSubscriptionNotFoundException(
          nls.getFormattedMessage(
            "SUBSCRIPTION_DOESNT_EXIST_ERROR_CWSIP0072",
            new Object[] { subId,
                           messageProcessor.getMessagingEngineName() },
            null));
      }

      // Obtain the subscription state from the consumer dispatcher
      subState = cd.getConsumerDispatcherState();
    }
    
    DestinationHandler dest = null;
    try
    {    
      dest = 
        destinationManager.getDestination(subState.getTopicSpaceUuid(), true);
    }
    catch (SITemporaryDestinationNotFoundException e)
    {
      // No FFDC code needed 
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "querySubscription", "SINotPossibleInCurrentConfigurationException");
      throw new SINotPossibleInCurrentConfigurationException(e.getMessage());
    }

    // Create subscription definition
    SubscriptionDefinition subDef =
      new SubscriptionDefinitionImpl(
        dest.getName(),
        subState.getSelectionCriteria().getDiscriminator(),
        subState.getSelectionCriteria().getSelectorString(),
        subState.getSelectionCriteria().getSelectorDomain().toInt(),
        subState.getUser(),
        subState.isNoLocal(),
        subState.getDurableHome());

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

    return subDef;
  }
735392
function (oControl) {
			// Allow specification of desired controlId as changing ids later on is not possible
			//This has to be the view relative ID
			if (oControl._sapui_controlId) {
				return oControl._sapui_controlId;
			}
			return oControl.getId().replace(oView.createId(""), "");
		}
230517
private I_CmsContextMenuEntry createShowLocaleMenuEntry() {

        Map<String, CmsLocaleLinkBean> localeLinkBeans = CmsContainerpageController.get().getData().getLocaleLinkBeans();
        if ((localeLinkBeans == null) || localeLinkBeans.isEmpty()) {
            return null;
        }

        CmsContextMenuEntry parentEntry = new CmsContextMenuEntry(this, null, new I_CmsContextMenuCommand() {

            public void execute(
                CmsUUID innerStructureId,
                I_CmsContextMenuHandler handler,
                CmsContextMenuEntryBean bean) {

                // do nothing
            }

            public A_CmsContextMenuItem getItemWidget(
                CmsUUID innerStructureId,
                I_CmsContextMenuHandler handler,
                CmsContextMenuEntryBean bean) {

                return null;
            }

            public boolean hasItemWidget() {

                return false;
            }

        });
        CmsContextMenuEntryBean parentBean = new CmsContextMenuEntryBean();

        parentBean.setLabel(
            org.opencms.ade.containerpage.client.Messages.get().key(
                org.opencms.ade.containerpage.client.Messages.GUI_SHOW_LOCALE_0));
        parentBean.setActive(true);
        parentBean.setVisible(true);
        parentEntry.setBean(parentBean);
        List<I_CmsContextMenuEntry> subEntries = Lists.newArrayList();

        for (Map.Entry<String, CmsLocaleLinkBean> entry : localeLinkBeans.entrySet()) {
            String label = entry.getKey();
            final CmsLocaleLinkBean linkBean = entry.getValue();
            CmsContextMenuEntry childEntry = new CmsContextMenuEntry(this, null, new I_CmsContextMenuCommand() {

                public void execute(
                    CmsUUID structureId,
                    I_CmsContextMenuHandler handler,
                    CmsContextMenuEntryBean bean) {

                    if (linkBean.getError() != null) {
                        CmsNotification.get().sendAlert(Type.WARNING, linkBean.getError());
                    } else if (linkBean.getLink() != null) {
                        Window.Location.assign(linkBean.getLink());
                    }
                }

                public A_CmsContextMenuItem getItemWidget(
                    CmsUUID structureId,
                    I_CmsContextMenuHandler handler,
                    CmsContextMenuEntryBean bean) {

                    return null;
                }

                public boolean hasItemWidget() {

                    return false;
                }
            });
            CmsContextMenuEntryBean childBean = new CmsContextMenuEntryBean();
            childBean.setLabel(label);
            childBean.setActive(true);
            childBean.setVisible(true);
            childEntry.setBean(childBean);
            subEntries.add(childEntry);
        }
        parentEntry.setSubMenu(subEntries);
        if (subEntries.isEmpty()) {
            return null;
        } else {
            return parentEntry;
        }
    }