/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsSelectHelper}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. * @since 2.1.5 */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) public boolean isScopeRelevant(CredentialsSelectHelper.WrappedCredentialsStore wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }
/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsSelectHelper}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. * @since 2.1.5 */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) public boolean isScopeRelevant(CredentialsSelectHelper.WrappedCredentialsStore wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }
/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsStoreAction}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) @RestrictedSince("2.1.5") public boolean isScopeRelevant(CredentialsStoreAction.CredentialsWrapper wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }
/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsStoreAction}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) @RestrictedSince("2.1.5") public boolean isScopeRelevant(CredentialsStoreAction.DomainWrapper wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }
/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsStoreAction}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) @RestrictedSince("2.1.5") public boolean isScopeRelevant(CredentialsStoreAction.CredentialsWrapper wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }
/** * Similar to {@link #isScopeRelevant()} but used by {@link CredentialsStoreAction}. * * @param wrapper the wrapper for the domain that is going to contain the credential. * @return {@code true} if there is more than one {@link CredentialsScope} that can be used for the specified * object. */ @SuppressWarnings("unused") // used by stapler @Restricted(NoExternalUse.class) @RestrictedSince("2.1.5") public boolean isScopeRelevant(CredentialsStoreAction.DomainWrapper wrapper) { if (wrapper != null) { return isScopeRelevant(wrapper.getStore().getContext()); } CredentialsStoreAction action = Stapler.getCurrentRequest().findAncestorObject(CredentialsStoreAction.class); if (action != null) { return isScopeRelevant(action.getStore().getContext()); } return isScopeRelevant(); }