/** * @return the system user associated with this link */ @Nullable String getSystemUser();
/** * @return the password for the system user account. (May be null if the system user does not exist) */ @Nullable String getSystemPassword();
/** * @return the token associated with the system user */ @Nullable String getSystemUserToken();
/** * @return the UTC date of when the system user token is to expire. (May be null if the system user does not exist) */ @Nullable Date getSystemTokenExpiry();
String promptForDistroVersion(String distroGroupId, String distroArtifactId, String distroVersion, String distroName, VersionsHelper versionsHelper, @Nullable String customMessage);
void promptForRefAppVersionIfMissing(Server server, VersionsHelper versionsHelper, @Nullable String customMessage) throws MojoExecutionException;
/** * A name (but not necessarily their real name) that uniquely identifies the user. Some * products may only identify users by a key (generally not exposed to the UI) or email * address so this may be null or empty. * @return if it exists, the user's unique (but not necessarily real) name, otherwise null. */ @Nullable @JsonProperty(JSON_PROPERTY_USER_NAME) public String getName() { return name; }
/** * An email address for the user. Some products may use the email address to uniquely identify * users. This may be null or empty for products that don't mandate email addresses for their * users. * @return if it exists, the user's email address, otherwise null. */ @Nullable @JsonProperty(JSON_PROPERTY_USER_EMAIL) public String getEmail() { return email; }
/** * The user's extra small picture or avatar URI. * @return if it exists, the user's extra small picture or avatar URI, otherwise null. */ @Nullable @JsonProperty(JSON_PROPERTY_EXTRA_SMALL_PICTURE_URI) public String getExtraSmallPictureURI() { return extraSmallPictureURI; }
/** * A key that is generally not exposed through the product's UI which uniquely identifies * the user. Some products may only identify users by a user name or email address so this * may be null or empty. * @return if it exists, the user's unique key, otherwise null. */ @Nullable @JsonProperty(JSON_PROPERTY_USER_KEY) public String getKey() { return key; }
/** * Return the current value whether is null or not. If this is true and the * next call to {@link #take()} or {@link #take(long, TimeUnit)} will not * block. * * @return the current reference or null if there is none. */ @Nullable public V peek() { return ref.get(); }
/** * The user's full real name. * @return if it exists, the user's full real name, otherwise null. */ @Nullable @JsonProperty(JSON_PROPERTY_USER_DISPLAY_NAME) public String getDisplayName() { return displayName; }
/** * Set the value * * @param value maybe null */ private void internalSet(@Nullable final V value) { ref.set(value); latch.release(); } }
@Nullable public String extractRequestCorrelationId(RequestInfo requestInfo) { return requestInfo.getB3TraceId(); }
private String promptForVersion(Map<String, String> optionsMap, @Nullable String customMessage) { String message = customMessage != null ? customMessage : DISTRIBUTION_VERSION_PROMPT; String version = promptForMissingValueWithOptions(message, null, "distribution artifact", Lists.newArrayList(optionsMap.keySet()), "Please specify %s", REFERENCEAPPLICATION_2_4); String artifact = optionsMap.get(version); if (artifact != null) { return artifact; } else { return version; } }
@Nullable @StringLength (StringLength.UNLIMITED) String getConnectDescriptor();
@Override public UserReferenceSet build( final int maxUsers, @Nullable final Set<String> projectKeys) throws SearchException { logger.debug("Building UserReferenceSet..."); final Set<UserReference> userReferences = new HashSet<UserReference>(maxUsers); searchForUserNames(userReferences, maxUsers, projectKeys); UserReferenceSet userReferenceSet = new UserReferenceSet(userReferences); return userReferenceSet; }
private String runProcessAndGetFirstResponseLine(String command, @Nullable String params, boolean quiet) { Process process = null; List<String> lines = null; try { if (params != null) { process = new ProcessBuilder(command, params).redirectErrorStream(true).start(); } else { process = new ProcessBuilder(command).redirectErrorStream(true).start(); } lines = IOUtils.readLines(process.getInputStream()); process.waitFor(); } catch (InterruptedException | IOException e) { System.out.println(e.getMessage()); } if (process != null && process.exitValue() == 0) { if (lines != null) { return lines.get(0); } else { return null; } } else { return null; } }
public String promptForRefAppVersion(VersionsHelper versionsHelper, @Nullable String customMessage) { Set<String> versions = new LinkedHashSet<>(versionsHelper.getVersionAdvice(SDKConstants.getReferenceModule("2.3.1"), MAX_OPTIONS_SIZE)); versions.addAll(SDKConstants.SUPPPORTED_REFAPP_VERSIONS_2_3_1_OR_LOWER); Map<String, String> optionsMap = getDistroVersionsOptionsMap(versions, versionsHelper, REFAPP_OPTION_TMPL, REFAPP_ARTIFACT_TMPL); return promptForVersion(optionsMap, customMessage); }
@Override public String promptForDistroVersion(String distroGroupId, String distroArtifactId, String distroVersion, String distroName, VersionsHelper versionsHelper, @Nullable String customMessage) { final String optionTemplate = distroName + " %s"; final String artifacttemplate = distroGroupId + ":" + distroArtifactId + ":" + "%s"; Set<String> versions = new LinkedHashSet<>(versionsHelper.getVersionAdvice(SDKConstants.getDistroModule(distroGroupId, distroArtifactId, distroVersion), MAX_OPTIONS_SIZE)); Map<String, String> optionsMap = getDistroVersionsOptionsMap(versions, versionsHelper, optionTemplate, artifacttemplate); return promptForVersion(optionsMap, customMessage); }