/** * An instance of {@link Proc}, which has an internal workaround for JENKINS-23271. * It presumes that the instance of the object is guaranteed to be used after the {@link Proc#join()} call. * See <a href="https://jenkins-ci.org/issue/23271">JENKINS-23271</a> * @author Oleg Nenashev */ @Restricted(NoExternalUse.class) public interface ProcWithJenkins23271Patch { // Empty marker interface } }
/** * @return true if {@link AbstractLazyLoadRunMap#AbstractLazyLoadRunMap} was called with a non-null param, or {@link RunMap#load(Job, RunMap.Constructor)} was called */ @Restricted(NoExternalUse.class) public final boolean baseDirInitialized() { return dir != null; }
/** * Get the {@link Nodes} object that handles maintaining individual {@link Node}s. * @return The Nodes object. */ @Restricted(NoExternalUse.class) public Nodes getNodesObject() { // TODO replace this with something better when we properly expose Nodes. return nodes; }
/** * Backdoor for {@link Fingerprint} to set itself to its facets. * Public only because this needs to be accessible to {@link Fingerprint}. Do not call this method directly. */ @Restricted(NoExternalUse.class) public void _setOwner(Fingerprint fingerprint) { assert fingerprint!=null; this.fingerprint = fingerprint; } }
/** * Determine if the legacy token is still present */ @Restricted(NoExternalUse.class) public boolean hasLegacyToken(){ return apiToken != null; }
/** * Does not revoke the token stored in the store */ @Restricted(NoExternalUse.class) public void deleteApiToken(){ this.apiToken = null; }
/** * Used by {@link WebAppMain#contextInitialized(ServletContextEvent)} and * {@link WebAppMain#contextDestroyed(ServletContextEvent)} to identify the classloader and JVM which started * {@link Jenkins} * * @param jenkinsJVM {@code true} if and only if this is the classloader and JVM that started {@link Jenkins}. */ @Restricted(NoExternalUse.class) protected static void setJenkinsJVM(boolean jenkinsJVM) { JenkinsJVM.jenkinsJVM = jenkinsJVM; } }
/** * Check if the relative path is really a descendant of this folder, following the symbolic links. * Meant to be used in coordination with {@link #child(String)}. * * TODO un-restrict it in a weekly after the patch */ @Restricted(NoExternalUse.class) public boolean isDescendant(String childRelativePath) throws IOException { return false; }
/** * TODO un-restrict it in a weekly after the patch */ @Override @Restricted(NoExternalUse.class) public boolean supportIsDescendant() { return true; }
/** * Thrown if an account creation was attempted but failed due to invalid data being entered into a form. * * @author Philipp Nowak */ @Restricted(NoExternalUse.class) public class AccountCreationFailedException extends Exception { public AccountCreationFailedException(String message) { super(message); } }
@Restricted(NoExternalUse.class) public static final class RevokeAllSelectedUserAndUuid { public String userId; public String uuid; } }
@Restricted(NoExternalUse.class) public static final class ToolInstallerList { /** * the list of {@link ToolInstallerEntry} */ public ToolInstallerEntry [] list; }
@Restricted(DoNotUse.class) @Override public void setDisabled(boolean disabled) { this.disabled = disabled; }
@Restricted(NoExternalUse.class) /*package*/ interface WithComputedChecksums { String getComputedSHA1(); String getComputedSHA256(); String getComputedSHA512(); }
@Restricted(NoExternalUse.class) // table.jelly public static final class MetadataCache { private final Map<String, Object> data = new HashMap<>(); public <T> T of(String key, Class<T> type, Supplier<T> func) { return type.cast(data.computeIfAbsent(key, _ignored -> func.get())); } }
/** * Returns the set of warnings * @return the set of warnings * @since 2.40 */ @Restricted(NoExternalUse.class) public Set<Warning> getWarnings() { return this.warnings; }
/** * TODO un-restrict it in a weekly after the patch */ @Override @Restricted(NoExternalUse.class) public boolean supportIsDescendant() { return true; }
@Restricted(NoExternalUse.class) static class UrlFactory { public URL newURL(String location) throws MalformedURLException { return new URL(location); } }
/** * If set, a currently active setup wizard - e.g. installation * * @since 2.0 */ @Restricted(NoExternalUse.class) public SetupWizard getSetupWizard() { return setupWizard; }
/** * Gets the file’s Unix mode, if meaningful. * If the file is symlink (see {@link #readLink}), the mode is that of the link target, not the link itself. * @return for example, 0644 ~ {@code rw-r--r--}; -1 by default, meaning unknown or inapplicable * @throws IOException if checking the mode failed * @since 2.118 */ @Restricted(Beta.class) public int mode() throws IOException { return -1; }