Tabnine Logo
DeprecationSupport.warn
Code IndexAdd Tabnine to your IDE (free)

How to use
warn
method
in
net.shibboleth.utilities.java.support.primitive.DeprecationSupport

Best Java code snippets using net.shibboleth.utilities.java.support.primitive.DeprecationSupport.warn (Showing top 20 results out of 315)

origin: net.shibboleth.idp/idp-attribute-resolver-spring

  /**
   * Constructor.  Added purely to generate the deprecation warning.
   */
  public AbstractDataConnectorParser() {
    super();
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null, super.getClass().getName());
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-api

/**
 * {@inheritDoc}
 *
 * @deprecated Use {@link #setAttributeNames} instead
 * @see        #setAttributeNames
 */
@Override @Deprecated public void setDependencyAttributeId(@Nullable final String attributeId) {
  DeprecationSupport.warn(ObjectType.METHOD,
      "ResolverDataConnectorDependency#setDependencyAttributeId(String)",
      null, "#setAttributeNames(Collection<String>)");
  super.setDependencyAttributeId(attributeId);
}
origin: net.shibboleth.idp/idp-saml-impl

/** {@inheritDoc} */
@Override
protected void doInitialize() throws ComponentInitializationException {
  super.doInitialize();
  
  DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param query to search the database
 * @deprecated - use the property setters
 */
@Deprecated public FormatExecutableStatementBuilder(@Nonnull final String query) {
  DeprecationSupport.warn(ObjectType.METHOD, "FormatExecutableStatementBuilder(String)", null, null);
  sqlQuery = Constraint.isNotNull(query, "SQL query can not be null");
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param attrName the name to filter on.
 * @deprecated use the property setter instead
 */
@Deprecated public IdPAttributePrincipalValuesFunction(@Nonnull final String attrName) {
  attributeName = Constraint.isNotNull(attrName, "Attribute Name should be non-null");
  DeprecationSupport.warn(ObjectType.METHOD, 
      "IdPAttributePrincipalValuesFunction(String)", null, null);
}
origin: net.shibboleth.idp/idp-installer

/**
 * Constructor.
 * 
 * @param file file to output to.
 * @throws FileNotFoundException if the file cannot be found.
 */
public MetadataGenerator(@Nonnull final File file) throws FileNotFoundException {
  DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
  final File nonnullFile = Constraint.isNotNull(file, "provided file must be nonnull");
  final FileOutputStream outStream = new FileOutputStream(nonnullFile);
  writer = new BufferedWriter(new OutputStreamWriter(outStream));
  endpoints = EnumSet.allOf(Endpoints.class);
}
origin: net.shibboleth.idp/idp-installer

  /** {@inheritDoc} */
  @Override
  public void execute() {
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
    try {
      tool.changeKey();
    } catch (final Exception e) {
      log("Build failed", e, Project.MSG_ERR);
      throw new BuildException(e);
    }
  }
}
origin: net.shibboleth.idp/idp-installer

  @Override 
  /** {@inheritDoc} */
  public void execute() {
    DeprecationSupport.warn(ObjectType.CLASS, this.getClass().getName(), null , ".impl");
    try {
      generator.generate();
    } catch (final Exception e) {
      log("Build failed", e, Project.MSG_ERR);
      throw new BuildException(e);
    }
  }
}
origin: net.shibboleth.idp/idp-core

/** {@inheritDoc} */
@Override
protected void doInitialize() throws ComponentInitializationException {
  
  for (final Map.Entry<String,String> entry : deprecatedProperties.entrySet()) {
    if (applicationContext.getEnvironment().containsProperty(entry.getKey())) {
      DeprecationSupport.warn(ObjectType.PROPERTY, entry.getKey(), null, entry.getValue());
    }
  }
  for (final String name : deadProperties) {
    if (applicationContext.getEnvironment().containsProperty(name)) {
      log.warn("property '{}' is no longer supported", name);
    }
  }
}

origin: net.shibboleth.idp/idp-saml-impl

/** {@inheritDoc} */
@Override protected void doInitialize() throws ComponentInitializationException {
  super.doInitialize();
  if (null == idGenerator) {
    throw new ComponentInitializationException("Id generator must be non null");
  }
  
  DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, "via NameID Generation configuration");
}
origin: net.shibboleth.idp/idp-attribute-filter-spring

/** {@inheritDoc} */
@Override protected void doNativeParse(@Nonnull final Element element, @Nonnull final ParserContext parserContext,
    @Nonnull final BeanDefinitionBuilder builder) {
  super.doNativeParse(element, parserContext, builder);
  
  DeprecationSupport.warn(ObjectType.XSITYPE, SCHEMA_TYPE_AFP.toString(),
      parserContext.getReaderContext().getResource().getDescription(), null);
}

origin: net.shibboleth.idp/idp-attribute-resolver-spring

/**
 * Creates a new V2Parser with the supplied LDAPDirectory element.
 * 
 * @param config LDAPDirectory element
 * @param prefix the parent's log prefix
 */
public V2Parser(@Nonnull final Element config, @Nonnull final String prefix) {
  Constraint.isNotNull(config, "LDAPDirectory element cannot be null");
  configElement = config;
  logPrefix = prefix; 
  // warn about deprecated (removed?) attribute
  if (AttributeSupport.hasAttribute(config, new QName("mergeResults"))) {
    DeprecationSupport.warn(ObjectType.ATTRIBUTE,  "mergeResults", prefix, null);
  }
}
origin: net.shibboleth.idp/idp-attribute-filter-spring

/** {@inheritDoc} */
@Override protected void doNativeParse(@Nonnull final Element element, @Nonnull final ParserContext parserContext,
    @Nonnull final BeanDefinitionBuilder builder) {
  super.doNativeParse(element, parserContext, builder);
  
  DeprecationSupport.warn(ObjectType.XSITYPE, SCHEMA_TYPE_AFP.toString(),
      parserContext.getReaderContext().getResource().getDescription(), null);
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param query to search the database
 * @param timeout search timeout
 * @deprecated - use the property setters
 */
@Deprecated public FormatExecutableStatementBuilder(@Nonnull final String query, @Nonnull final int timeout) {
  DeprecationSupport.warn(ObjectType.METHOD, "FormatExecutableStatementBuilder(String, int)", null, null);
  sqlQuery = Constraint.isNotNull(query, "SQL query can not be null");
  setQueryTimeout((int) Constraint.isGreaterThanOrEqual(0, timeout, "Query timeout must be greater than zero"));
}

origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Creates a new DataSource validator.
 * 
 * @param source to validate
 * @deprecated - use the property setters
 */
@Deprecated public DataSourceValidator(final DataSource source) {
  DeprecationSupport.warn(ObjectType.METHOD, "DataSourceValidator(DataSource)", null, "DataSourceValidator()");
  dataSource = source;
  try {
    initialize();
  } catch (final ComponentInitializationException e) {
    throw new ConstraintViolationException("Invalid parameterization.");
  }
}
origin: net.shibboleth.idp/idp-profile-spring

/** {@inheritDoc} */
@Override protected void doParse(final Element element, final ParserContext parserContext,
    final BeanDefinitionBuilder builder) {
   DeprecationSupport.warn(ObjectType.XSITYPE, TYPE_NAME.toString(),
      parserContext.getReaderContext().getResource().getDescription(), null);
  
  final List<Element> children =
      ElementSupport.getChildElements(element, AbstractMetadataProviderParser.METADATA_FILTER_ELEMENT_NAME);
  if (null != children && !children.isEmpty()) {
    builder.addPropertyValue("filters", SpringSupport.parseCustomElements(children, parserContext));
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Creates a new DataSource validator.
 * 
 * @param source to validate
 * @param throwOnError whether {@link #validate()} should throw or log errors
 * @deprecated - use the property setters
 */
@Deprecated public DataSourceValidator(final DataSource source, final boolean throwOnError) {
  DeprecationSupport.warn(ObjectType.METHOD, "DataSourceValidator(DataSource, boolean)",
      null, "DataSourceValidator()");
  dataSource = source;
  throwOnValidateError = throwOnError;
  try {
    initialize();
  } catch (final ComponentInitializationException e) {
    throw new ConstraintViolationException("Invalid parameterization.");
  }
}

origin: net.shibboleth.idp/idp-profile-spring

/** {@inheritDoc} */
@Override protected void doParse(final Element element, final ParserContext parserContext,
    final BeanDefinitionBuilder builder) {
  final List<Element> schemaNameElements = ElementSupport.getChildElements(element, EXTENSION_SCHEMA_NAME);
  if (element.hasAttributeNS(null, "schemaBuilderRef")) {
    builder.addConstructorArgReference(StringSupport.trimOrNull(element
        .getAttributeNS(null, "schemaBuilderRef")));
  } else {
    builder.addConstructorArgReference("shibboleth.SchemaBuilder");
  }
  if (null != schemaNameElements && !schemaNameElements.isEmpty()) {
    DeprecationSupport.warn(ObjectType.ELEMENT, "ExtensionSchema", null, null);
    builder.addConstructorArgValue(SpringSupport.getElementTextContentAsManagedList(schemaNameElements));
  }
}
origin: net.shibboleth.idp/idp-attribute-resolver-impl

/**
 * Constructor.
 * 
 * @param filter used for the LDAP search
 * @deprecated - use the property setters
 */
@Deprecated public ParameterizedExecutableSearchFilterBuilder(@Nonnull final String filter) {
  DeprecationSupport.warn(ObjectType.METHOD, "ParameterizedExecutableSearchFilterBuilder(String)",
      null, "ParameterizedExecutableSearchFilterBuilder()");
  setSearchFilter(filter);
  try {
    initialize();
  } catch (final ComponentInitializationException e) {
    throw new ConstraintViolationException("Invalid parameterization.");
  }
}

origin: net.shibboleth.idp/idp-saml-impl

/** Factory used to generate a specific Connector. 
 * @param activationCondition - the activationCondition
 * @return an appropriate FlowDescriptor 
 */
public static SubjectCanonicalizationFlowDescriptor c14LegacyPrincipalConnectorFactory(
      @ParameterName(name="activationCondition") Predicate<ProfileRequestContext> activationCondition)
{
  DeprecationSupport.warn(ObjectType.BEAN, "c14n/LegacyPrincipalConnector", "c14n/subject-c14n.xml", "<remove>");
  final SubjectCanonicalizationFlowDescriptor result = new SubjectCanonicalizationFlowDescriptor ();
  result.setActivationCondition(activationCondition);
  return result;
}
net.shibboleth.utilities.java.support.primitiveDeprecationSupportwarn

Popular methods of DeprecationSupport

  • warnOnce

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • String (java.lang)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now