Retrieve the UserRegistryService for the specified id.

@param id UserRegistryService id to retrieve
@return A non-null UserRegistryService instance.
970971
private UserRegistryService getUserRegistryService(String id) {
        UserRegistryService service = userRegistry.getService(id);
        if (service == null) {
            throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
        }
        return service;
    }
1222843
public RegisteredService get(final long id) {
        val keys = new HashMap<String, AttributeValue>();
        keys.put(ColumnNames.ID.getColumnName(), new AttributeValue(String.valueOf(id)));
        return getRegisteredServiceByKeys(keys);
    }
360713
public UserScenario getUserScenario(int id) {
        return invoke(USER_SCENARIOS, id,
                new RequestClosure<JsonObject>() {
                    @Override
                    public JsonObject call(Invocation.Builder request) {
                        return request.get(JsonObject.class);
                    }
                },
                new ResponseClosure<JsonObject, UserScenario>() {
                    @Override
                    public UserScenario call(JsonObject json) {
                        return new UserScenario(json);
                    }
                }
        );
    }
523441
@ReadOperation(produces = {ActuatorMediaType.V2_JSON, "application/vnd.cas.services+yaml", MediaType.APPLICATION_JSON_VALUE})
    public RegisteredService fetchService(@Selector final String id) {
        if (NumberUtils.isDigits(id)) {
            return this.servicesManager.findServiceBy(Long.parseLong(id));
        }
        return this.servicesManager.findServiceBy(id);
    }
1204899
@Restricted(NoExternalUse.class)
    public User getUser(String id) {
        return User.getById(id, User.ALLOW_USER_CREATION_VIA_URL && hasPermission(Jenkins.ADMINISTER));
    }
1029318
public User getUser(String id) {
        return db.query("SELECT * FROM Users WHERE id = ?",
                new ResultSetExtractor<User>() {
                    public User extractData(ResultSet rs)
                            throws SQLException {
                        if (rs.next()) {
                            return getUser(rs);
                        } else {
                            return null;
                        }
                    }
                },
                Integer.parseInt(id));
    }
178321
private AuthenticationService getAuthenticationService(String id) {
        AuthenticationService service = authentication.getService(id);
        if (service == null) {
            throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
        }
        return service;
    }
761875
public ProxyPolicyHandler getProxyPolicyHandler(String id) {
    return (id != null && this.proxyPolicyHandlers != null) ?
        (ProxyPolicyHandler)this.proxyPolicyHandlers.get(id) :
        null;
    }
715957
private UserRegistry getUserRegistryFromConfiguration() throws RegistryException {
        String[] refIds = this.refId;
        if (refIds == null || refIds.length == 0) {
            // Can look for config.source = file
            // If thats set, and we're missing this, we can error.
            // If its not set, we don't have configuration from the
            // file and we should try to resolve if we have one instance defined?
            Tr.error(tc, "USER_REGISTRY_SERVICE_CONFIG_ERROR_NO_REFID");
            throw new RegistryException(TraceNLS.getFormattedMessage(
                                                                     this.getClass(),
                                                                     TraceConstants.MESSAGE_BUNDLE,
                                                                     "USER_REGISTRY_SERVICE_CONFIG_ERROR_NO_REFID",
                                                                     null,
                                                                     "CWWKS3000E: A configuration error has occurred. There is no configured refId parameter for the userRegistry configuration."));
        } else if (refIds.length == 1) {
            return getUserRegistry(refIds[0]);
        } else {
            // Multiple refIds, we'll use the UserRegistryProxy.
            List<UserRegistry> delegates = new ArrayList<UserRegistry>();
            for (String refId : refIds) {
                delegates.add(getUserRegistry(refId));
            }
            return new UserRegistryProxy(realm, delegates);
        }
    }
28332
private String getErrorForUnknownService(String id) {
		StringBuffer error = new StringBuffer();
		error.append("Services path: " + ServiceConfigurationManager.CONFIGURATION_DIR);
		error.append("The service with id: " + id + " is not registered");

		error.append("\n Available services are: ");

		Set<String> keys = serviceManager.getRegisteredConfigurations().keySet();

		Iterator<String> it = keys.iterator();

		while (it.hasNext()) {
			error.append(it.next()).append(" ");
		}

		return error.toString();
	}
1026120
@Override
    public Optional<Identification> getIdentification(String id) {
        return Optional.ofNullable(registered.get(id))
                .map(IdentificationImpl::createIdentification);
    }
899402
public Observable<SubscriptionInner> getAsync(String subscriptionId) {
        return getWithServiceResponseAsync(subscriptionId).map(new Func1<ServiceResponse<SubscriptionInner>, SubscriptionInner>() {
            @Override
            public SubscriptionInner call(ServiceResponse<SubscriptionInner> response) {
                return response.body();
            }
        });
    }
1199714
public UserScenarioValidation getUserScenarioValidation(int id) {
        return invoke(USER_SCENARIO_VALIDATIONS, id,
                new RequestClosure<JsonObject>() {
                    @Override
                    public JsonObject call(Invocation.Builder request) {
                        return request.get(JsonObject.class);
                    }
                },
                new ResponseClosure<JsonObject, UserScenarioValidation>() {
                    @Override
                    public UserScenarioValidation call(JsonObject json) {
                        return new UserScenarioValidation(json);
                    }
                }
        );
    }
501025
private PluginDefinition pluginById(String id) {
        PluginDefinition def = pluginRegistry.get(id);
        
        if (def == null) {
            throw new PluginException(EXC_UNKNOWN_PLUGIN, null, null, id);
        }
        
        return def;
    }
432486
public T getProvider(final String id) {
        return (T) beanFactory.getBean(providerFactory.beanName(id));
    }
1185918
private String getUserAccessId(String userName) {

        try {
            SecurityService securityService = securityServiceRef.getService();
            UserRegistryService userRegistryService = securityService.getUserRegistryService();
            UserRegistry userRegistry = userRegistryService.getUserRegistry();
            String realm = userRegistry.getRealm();
            String uniqueId = userRegistry.getUniqueUserId(userName);
            return AccessIdUtil.createAccessId(AccessIdUtil.TYPE_USER, realm, uniqueId);
        } catch (EntryNotFoundException e) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Caught exception getting the access id for "
                             + userName + ": " + e);
            }
        } catch (RegistryException e) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Caught exception getting the access id for "
                             + userName + ": " + e);
            }
        }
        return null;
    }
717670
@SuppressWarnings("unchecked")
    public <M extends T> M byId(ID id) {
        return (M) server().find(getModelType(), id);
    }