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 LocalizableMessagegetDeprecationMessage()Gets the deprecation message.LocalizableMessagegetFullDeprecationMessage()Gets the full deprecation message with reason of deprecation and existing alternative(s).ConditiongetIsEnabledCondition()Gets the isEnabledCondition of this deprecated definition.com.forgerock.opendj.util.VersiongetSince()Gets thesinceproperty of this deprecated definition.booleanisForRemoval()Gets theforRemovalof 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 benullwhen 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 theforRemovalof this deprecated definition.- Returns:
- Returns the
forRemovalof this deprecated definition.
-
getSince
public com.forgerock.opendj.util.Version getSince()
Gets thesinceproperty of this deprecated definition.- Returns:
- Returns the
sinceproperty 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.
-
-