# Deprecated API

## Contents

- Deprecated Annotation Types
- Deprecated Fields
- Deprecated Methods

- Deprecated Annotation Types
  Annotation Type and Description
  com.holonplatform.core.beans.Email Use the `Email` constraint of the Bean Validation API 2.x instead
  com.holonplatform.core.beans.NotBlank Use the `NotBlank` constraint of the Bean Validation API 2.x instead
  com.holonplatform.core.beans.NotEmpty Use the `NotEmpty` constraint of the Bean Validation API 2.x instead
  com.holonplatform.core.beans.NotNegative Use the `Positive` or `PositiveOrZero` constraint of the Bean Validation API 2.x instead

- Deprecated Fields
  Field and Description
  com.holonplatform.auth.jwt.JwtConfigProperties.PRIVATE_KEY Use `JwtConfigProperties.PRIVATE_KEY_SOURCE` and related configuration properties to configure the JWT sign private key. The key encoding can be specified using the `JwtConfigProperties.PRIVATE_KEY_ENCODING` configuration property
  com.holonplatform.auth.jwt.JwtConfigProperties.PRIVATE_KEY_FILE Use `JwtConfigProperties.PRIVATE_KEY_SOURCE` and related configuration properties to configure the JWT sign private key. The key source can be specified using the default prefixes `JwtConfigProperties.KEY_SOURCE_FILE_PREFIX` and `JwtConfigProperties.KEY_SOURCE_CLASSPATH_PREFIX`
  com.holonplatform.auth.jwt.JwtConfigProperties.PUBLIC_KEY Use `JwtConfigProperties.PUBLIC_KEY_SOURCE` and related configuration properties to configure the JWT sign public key. The key encoding can be specified using the `JwtConfigProperties.PUBLIC_KEY_ENCODING` configuration property
  com.holonplatform.auth.jwt.JwtConfigProperties.PUBLIC_KEY_FILE Use `JwtConfigProperties.PUBLIC_KEY_SOURCE` and related configuration properties to configure the JWT sign public key. The key source can be specified using the default prefixes `JwtConfigProperties.KEY_SOURCE_FILE_PREFIX` and `JwtConfigProperties.KEY_SOURCE_CLASSPATH_PREFIX`

- Deprecated Methods
  Method and Description
  com.holonplatform.core.datastore.operation.commons.BulkInsertOperation.add(Map<Path<?>, Object>) Use `BulkInsertOperation.add(Iterable)`
  com.holonplatform.auth.Realm.Builder.authenticator(Authenticator<T>) Use `Realm.Builder.withAuthenticator(Authenticator)`
  com.holonplatform.auth.Realm.Builder.authorizer(Authorizer<P>) Use `Realm.Builder.withAuthorizer(Authorizer)`
  com.holonplatform.auth.jwt.JwtTokenBuilder.buildJwtToken(JwtConfiguration, Authentication, String) Use `JwtTokenBuilder.get()` to obtain the default `JwtTokenBuilder` on which to call the `JwtTokenBuilder.buildJwt(JwtConfiguration, Authentication, String)` method
  com.holonplatform.core.property.Property.Builder.configuration(ConfigProperty<C>, C) Use `Property.Builder.withConfiguration(ConfigProperty, Object)`
  com.holonplatform.core.property.PropertySet.Builder.configuration(ConfigProperty<C>, C) Use `PropertySet.Builder.withConfiguration(ConfigProperty, Object)`
  com.holonplatform.core.property.Property.Builder.configuration(String, Object) Use `Property.Builder.withConfiguration(String, Object)`
  com.holonplatform.core.property.PropertySet.Builder.configuration(String, Object) Use `PropertySet.Builder.withConfiguration(String, Object)`
  com.holonplatform.core.beans.BeanPropertySet.create(Class<? extends T>, Path<?>) The root bean property path will always be a `Path.FinalPath` typed on bean class and with the bean class name as path name. Use `BeanPropertySet.create(Class)` instead.
  com.holonplatform.core.datastore.relational.SubQuery.create(Datastore) Datastore parameter is no longer required, use `SubQuery.create()` instead
  com.holonplatform.core.datastore.relational.SubQuery.create(Datastore, Class<? extends T>) Datastore parameter is no longer required, use `SubQuery.create(Class)` instead
  com.holonplatform.core.datastore.relational.SubQuery.create(Datastore, QueryProjection<T>) Datastore parameter is no longer required, use `SubQuery.create(QueryProjection)` instead
  com.holonplatform.auth.Account.Builder.detail(ConfigProperty<T>, T) Use `Account.Builder.withDetail(ConfigProperty, Object)`
  com.holonplatform.auth.Account.Builder.detail(String, Object) Use `Account.Builder.withDetail(String, Object)`
  com.holonplatform.core.beans.BeanIntrospector.getPropertySet(Class<? extends T>, Path<?>) The root bean property path will always be a `Path.FinalPath` typed on bean class and with the bean class name as path name. Use `BeanIntrospector.getPropertySet(Class)` instead.
  com.holonplatform.core.property.PropertySet.join(PropertySet<? extends P>...) Using this method causes the loss of any property set configuration and/or identifier property declaration. Use the default PropertySet builder to compose a new PropertySet from different property sources.
  com.holonplatform.auth.Realm.Builder.listener(Authentication.AuthenticationListener) Use withAuthenticationListener(AuthenticationListener)
  com.holonplatform.core.i18n.LocalizationContext.Builder.messageProvider(MessageProvider) Use `LocalizationContext.Builder.withMessageProvider(MessageProvider)`
  com.holonplatform.core.datastore.operation.commons.BulkInsertOperation.operationPaths(Path<?>[]) Use `BulkInsertOperation.propertySet(Iterable)`
  com.holonplatform.core.datastore.operation.commons.BulkInsertOperation.operationPaths(PropertySet<?>) Use `BulkInsertOperation.propertySet(Iterable)`
  com.holonplatform.core.ParameterSet.Builder.parameter(ConfigProperty<T>, T) Use `ParameterSet.Builder.withParameter(ConfigProperty, Object)`
  com.holonplatform.auth.Authentication.Builder.parameter(ConfigProperty<T>, T) Use `Authentication.Builder.withParameter(ConfigProperty, Object)`
  com.holonplatform.core.ParameterSet.Builder.parameter(String, Object) Use `ParameterSet.Builder.withParameter(String, Object)`
  com.holonplatform.auth.Authentication.Builder.parameter(String, Object) Use `Authentication.Builder.withParameter(String, Object)`
  com.holonplatform.core.ParameterSet.Builder.parameters(Map<String, Object>) Use `ParameterSet.Builder.withParameters(Map)`
  com.holonplatform.core.ParameterSet.Builder.parameters(ParameterSet) Use `ParameterSet.Builder.withParameters(ParameterSet)`
  com.holonplatform.auth.Account.Builder.permission(Permission) Use `Account.Builder.withPermission(Permission)`
  com.holonplatform.auth.Authentication.Builder.permission(Permission) Use `Authentication.Builder.withPermission(Permission)`
  com.holonplatform.auth.Account.Builder.permission(String) Use `Account.Builder.withPermission(String)`
  com.holonplatform.auth.Authentication.Builder.permission(String) Use `Authentication.Builder.withPermission(String)`
  com.holonplatform.auth.jwt.JwtAuthenticator.Builder.requiredClaim(String) Use `JwtAuthenticator.Builder.withRequiredClaim(String)`
  com.holonplatform.core.beans.BeanPropertyInspector.requireProperty(String) Use `BeanPropertyInspector.property(String)`
  com.holonplatform.core.beans.BeanPropertyInspector.requireProperty(String, Class<T>) Use `BeanPropertyInspector.property(String, Class)`
  com.holonplatform.auth.Realm.Builder.resolver(AuthenticationToken.AuthenticationTokenResolver<?>) Use withResolver(AuthenticationTokenResolver)
  com.holonplatform.core.property.Property.Builder.validator(Validator<T>) Use `Property.Builder.withValidator(Validator)`

Copyright © 2019 The Holon Platform. All rights reserved.