Package org.forgerock.opendj.config
Record Class Deprecated
java.lang.Object
java.lang.Record
org.forgerock.opendj.config.Deprecated
- Record Components:
definition- The managed object definitionpropertyName- The property name of managed object that is marked as deprecated. Must benullwhen the deprecation applies to the managed object itself.isForRemoval- Is component deprecated for removal in future release.since- The version that indicates where this component was deprecated for removalisEnabledCondition- A condition under which the deprecation is considered to be enabled.
public record Deprecated(AbstractManagedObjectDefinition<?,?> definition, String propertyName, boolean isForRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition)
extends Record
Holds deprecation information of configuration objects or properties. These can be:
- Deprecated (for removal): the configuration object or property has been replaced with an improved version, and it is no longer under development. Example : SNMP connection handler. There are better alternatives (Prometheus), this feature is based on a library that is no longer maintained and unlikely to compile in future.
- Legacy (not recommended): where configuration object or property is not a best practice anymore but is supported for interoperability and migration reasons. Example : DIGEST-MD5 SASL mechanism. This SASL mechanism uses cryptography with known weaknesses and shouldn't be used in production. However, for interoperability with legacy systems, it may be supported.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated(AbstractManagedObjectDefinition<?, ?> definition, String propertyName, boolean isForRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition) Creates an instance of aDeprecatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.Gets the deprecation message.Gets the full deprecation message with reason of deprecation and existing alternative(s).final inthashCode()Returns a hash code value for this object.Returns the value of theisEnabledConditionrecord component.booleanReturns the value of theisForRemovalrecord component.Returns the value of thepropertyNamerecord component.com.forgerock.opendj.util.Versionsince()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Deprecated
public Deprecated(AbstractManagedObjectDefinition<?, ?> definition, String propertyName, boolean isForRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition) Creates an instance of aDeprecatedrecord class.- Parameters:
definition- the value for thedefinitionrecord componentpropertyName- the value for thepropertyNamerecord componentisForRemoval- the value for theisForRemovalrecord componentsince- the value for thesincerecord componentisEnabledCondition- the value for theisEnabledConditionrecord component
-
-
Method Details
-
getDeprecationMessage
Gets the deprecation message.- Returns:
- Short localizable deprecation message.
-
getFullDeprecationMessage
Gets the full deprecation message with reason of deprecation and existing alternative(s).- Returns:
- Full localizable deprecation message.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-
isForRemoval
public boolean isForRemoval()Returns the value of theisForRemovalrecord component.- Returns:
- the value of the
isForRemovalrecord component
-
since
public com.forgerock.opendj.util.Version since()Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-
isEnabledCondition
Returns the value of theisEnabledConditionrecord component.- Returns:
- the value of the
isEnabledConditionrecord component
-