Package org.forgerock.opendj.config
Class Deprecated
- java.lang.Object
-
- org.forgerock.opendj.config.Deprecated
-
public final class Deprecated extends Object
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
Constructors Constructor Description Deprecated(AbstractManagedObjectDefinition<?,?> d, String propertyName, boolean forRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessage
getDeprecationMessage()
Gets the deprecation message.LocalizableMessage
getFullDeprecationMessage()
Gets the full deprecation message with reason of deprecation and existing alternative(s).Condition
getIsEnabledCondition()
Gets the isEnabledCondition of this deprecated definition.com.forgerock.opendj.util.Version
getSince()
Gets thesince
property of this deprecated definition.boolean
isForRemoval()
Gets theforRemoval
of this deprecated definition.
-
-
-
Constructor Detail
-
Deprecated
public Deprecated(AbstractManagedObjectDefinition<?,?> d, String propertyName, boolean forRemoval, com.forgerock.opendj.util.Version since, Condition isEnabledCondition)
Public constructor.- Parameters:
d
- 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.forRemoval
- Is component deprecated for removal in future release.since
- The version that indicates when this component was deprecated for removalisEnabledCondition
- A condition under which the deprecation is considered to be enabled.
-
-
Method Detail
-
isForRemoval
public boolean isForRemoval()
Gets theforRemoval
of this deprecated definition.- Returns:
- Returns the
forRemoval
of this deprecated definition.
-
getSince
public com.forgerock.opendj.util.Version getSince()
Gets thesince
property of this deprecated definition.- Returns:
- Returns the
since
property of this deprecated definition.
-
getIsEnabledCondition
public Condition getIsEnabledCondition()
Gets the isEnabledCondition of this deprecated definition.- Returns:
- Returns the isEnabledCondition of this deprecated definition.
-
getDeprecationMessage
public LocalizableMessage getDeprecationMessage()
Gets the deprecation message.- Returns:
- Short localizable deprecation message.
-
getFullDeprecationMessage
public LocalizableMessage getFullDeprecationMessage()
Gets the full deprecation message with reason of deprecation and existing alternative(s).- Returns:
- Full localizable deprecation message.
-
-