/* (non-Javadoc)
@see org.apereo.portal.portlet.registry.IPortletWindowRegistry#getPortletWindowId(java.lang.String)
321406
@Override
    public PortletWindowIdImpl getPortletWindowId(
            HttpServletRequest request, String portletWindowId) {
        Validate.notNull(portletWindowId, "portletWindowId can not be null");

        final String entityIdStr = PortletWindowIdStringUtils.parsePortletEntityId(portletWindowId);
        final String instanceId;
        if (!PortletEntityIdStringUtils.hasCorrectNumberOfParts(entityIdStr)
                || !PortletWindowIdStringUtils.hasCorrectNumberOfParts(portletWindowId)) {
            throw new IllegalArgumentException(
                    "Provided portlet window ID '" + portletWindowId + "' is not valid");
        }

        if (PortletWindowIdStringUtils.hasPortletWindowInstanceId(portletWindowId)) {
            instanceId = PortletWindowIdStringUtils.parsePortletWindowInstanceId(portletWindowId);
        } else {
            instanceId = null;
        }

        final IPortletEntity portletEntity =
                this.portletEntityRegistry.getPortletEntity(request, entityIdStr);
        if (portletEntity == null) {
            throw new IllegalArgumentException(
                    "No parent IPortletEntity found for id '"
                            + entityIdStr
                            + "' from portlet window id: "
                            + portletWindowId);
        }

        return createPortletWindowId(instanceId, portletEntity.getPortletEntityId());
    }
1153179
public ApplicationID getApplicationID() throws IOException {
    final String url = "ws/v1/cluster/apps/new-application";
    final HttpPost post = preparePost(url);
    try (final CloseableHttpResponse response = this.httpClient.execute(post, this.httpClientContext)) {
      final String message = IOUtils.toString(response.getEntity().getContent());
      final ApplicationID result = this.objectMapper.readValue(message, ApplicationID.class);
      return result;
    }
  }
1217788
@Override
    public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId) {
        IPortletUrlBuilder portletUrlBuilder;

        synchronized (this.portletUrlBuilders) {
            portletUrlBuilder = this.portletUrlBuilders.get(portletWindowId);
            if (portletUrlBuilder == null) {
                portletUrlBuilder = new FailSafePortletUrlBuilder(portletWindowId, this);
                this.portletUrlBuilders.put(portletWindowId, portletUrlBuilder);
            }
        }

        return portletUrlBuilder;
    }
981565
function getClientId() {
    if (window && window.device) {
        return window.device.uuid;
    }
    if (navigator && navigator.device) {
        return navigator.device.uuid;
    }
    if (window && window.localStorage) {
        var clientId = window.localStorage.getItem(CLIENT_ID_TAG);
        if (!clientId) {
            clientId = uuidGenerator();
            localStorage.setItem(CLIENT_ID_TAG, clientId);
        }
        return clientId;
    } else {
        throw Error("Cannot create and store client id");
    }
}
1212563
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getId");
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getId", aoBrowserSession.toString());
    return aoBrowserSession.toString();
  }
543233
@Override
    public WebserviceEndpoint getWebserviceEndpoint(String portComponentName) {
        if (portComponentName == null)
            return null;
        WebserviceEndpoint returnValue = webserviceEndpointTypeMap.get(portComponentName);

        if (returnValue == null && delegate != null)
            return delegate.getWebserviceEndpoint(portComponentName);

        return returnValue;
    }
179558
protected UrlState determineUrlState(
            final IPortletWindow portletWindow,
            final IPortletUrlBuilder targetedPortletUrlBuilder) {
        final WindowState requestedWindowState;
        if (targetedPortletUrlBuilder == null) {
            requestedWindowState = null;
        } else {
            requestedWindowState = targetedPortletUrlBuilder.getWindowState();
        }

        return determineUrlState(portletWindow, requestedWindowState);
    }
453426
@Override
    public PortletDelegationDispatcher createRequestDispatcher(
            PortletRequest portletRequest, IPortletDefinitionId delegatePortletDefinitionId) {
        final HttpServletRequest request =
                this.portalRequestUtils.getPortletHttpRequest(portletRequest);

        final String windowID = portletRequest.getWindowID();
        final IPortletWindowId parentPortletWindowId =
                this.portletWindowRegistry.getPortletWindowId(request, windowID);

        final IPortletEntity delegatePortletEntity =
                this.portletEntityRegistry.getOrCreateDelegatePortletEntity(
                        request, parentPortletWindowId, delegatePortletDefinitionId);
        final IPortletEntityId delegatePortletEntityId = delegatePortletEntity.getPortletEntityId();

        final IPortletWindow delegatePortletWindow =
                this.portletWindowRegistry.createDelegatePortletWindow(
                        request, delegatePortletEntityId, parentPortletWindowId);

        final IPerson person = this.personManager.getPerson(request);
        final int userId = person.getID();

        return new PortletDelegationDispatcherImpl(
                delegatePortletWindow,
                userId,
                portalRequestUtils,
                personManager,
                portletRenderer,
                portalUrlProvider,
                portletDelegationManager);
    }
45019
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getId");
    String id = _sourceStream.getID();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getId", id);
    return 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;
    }
190921
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getName");    
    String id = getUUID().toString();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getName", id);      
    return id;
  }
409027
@Override
    public String getPortalUserName(final int uPortalUID) {
        final List<String> results =
                this.jdbcOperations.queryForList(
                        "SELECT USER_NAME FROM UP_USER WHERE USER_ID=?", String.class, uPortalUID);
        return DataAccessUtils.singleResult(results);
    }
412619
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getId");
      SibTr.exit(tc, "getId", Long.toString(_messageID));
    }
    return ""+_messageID;
  }
341484
protected PortletRequestInfoImpl getTargetedPortletRequestInfo(
            final PortalRequestInfoImpl portalRequestInfo,
            final PortletRequestInfoImpl targetedPortletRequestInfo,
            final IPortletWindowId targetedPortletWindowId) {

        if (targetedPortletWindowId == null) {
            return targetedPortletRequestInfo;
        }

        return portalRequestInfo.getPortletRequestInfo(targetedPortletWindowId);
    }
584576
public QuickWidget findWidgetByStringId(QuickWidgetType type, int windowId, String stringId) {

    String text = desktopUtils.getString(stringId, true);
    return findWidgetByText(type, windowId, text);
  }
376519
@Override
    public void doPortletAction(
            IPortletWindowId portletWindowId,
            HttpServletRequest request,
            HttpServletResponse response) {
        final long timeout = getPortletActionTimeout(portletWindowId, request);

        final IPortletExecutionWorker<Long> portletActionExecutionWorker =
                this.portletWorkerFactory.createActionWorker(request, response, portletWindowId);
        portletActionExecutionWorker.submit();

        try {
            portletActionExecutionWorker.get(timeout);
        } catch (Exception e) {
            // put the exception into the error map for the session
            final Map<IPortletWindowId, Exception> portletFailureMap = getPortletErrorMap(request);
            portletFailureMap.put(portletWindowId, e);
        }

        // If the worker is still running add it to the hung-workers queue
        if (!portletActionExecutionWorker.isComplete()) {
            cancelWorker(request, portletActionExecutionWorker);
        }

        // Is this portlet permitted to emit events?  (Or is it disablePortletEvents=true?)
        final IPortletWindow portletWindow =
                portletWindowRegistry.getPortletWindow(request, portletWindowId);
        IPortletDefinition portletDefinition =
                portletWindow.getPortletEntity().getPortletDefinition();
        IPortletDefinitionParameter disablePortletEvents =
                portletDefinition.getParameter(DISABLE_PORTLET_EVENTS_PARAMETER);
        if (disablePortletEvents != null && Boolean.parseBoolean(disablePortletEvents.getValue())) {
            logger.info(
                    "Ignoring portlet events for portlet '{}' because they have been disabled.",
                    portletDefinition.getFName());
        } else {
            // Proceed with events...
            final PortletEventQueue portletEventQueue =
                    this.eventCoordinationService.getPortletEventQueue(request);
            this.doPortletEvents(portletEventQueue, request, response);
        }
    }
251386
@Override
	public String getId() {
		StringBuilder strId = new StringBuilder();
		strId.append(id);
		if (nextProcessor != null) {
			strId.append(",").append(nextProcessor.getId());
		}
		return strId.toString();
	}