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 benull
when 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
ConstructorDescriptionDeprecated
(AbstractManagedObjectDefinition<?, ?> definition, String propertyName, boolean isForRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition) Creates an instance of aDeprecated
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinition
record component.final boolean
Indicates 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 int
hashCode()
Returns a hash code value for this object.Returns the value of theisEnabledCondition
record component.boolean
Returns the value of theisForRemoval
record component.Returns the value of thepropertyName
record component.com.forgerock.opendj.util.Version
since()
Returns the value of thesince
record component.final String
toString()
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 aDeprecated
record class.- Parameters:
definition
- the value for thedefinition
record componentpropertyName
- the value for thepropertyName
record componentisForRemoval
- the value for theisForRemoval
record componentsince
- the value for thesince
record componentisEnabledCondition
- the value for theisEnabledCondition
record 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 thedefinition
record component.- Returns:
- the value of the
definition
record component
-
propertyName
Returns the value of thepropertyName
record component.- Returns:
- the value of the
propertyName
record component
-
isForRemoval
public boolean isForRemoval()Returns the value of theisForRemoval
record component.- Returns:
- the value of the
isForRemoval
record component
-
since
public com.forgerock.opendj.util.Version since()Returns the value of thesince
record component.- Returns:
- the value of the
since
record component
-
isEnabledCondition
Returns the value of theisEnabledCondition
record component.- Returns:
- the value of the
isEnabledCondition
record component
-