| | |
| | | |
| | | |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.TimeZone; |
| | | import java.util.concurrent.locks.ReentrantLock; |
| | | |
| | | import org.opends.server.admin.std.server.OrderingMatchingRuleCfg; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.DirectoryException; |
| | | |
| | | |
| | | import org.opends.server.types.InitializationException; |
| | | |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import static org.opends.server.loggers.ErrorLogger.*; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import static org.opends.server.schema.SchemaConstants.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class defines the generalizedTimeOrderingMatch matching rule defined in |
| | | * X.520 and referenced in RFC 2252. |
| | |
| | | */ |
| | | private static final DebugTracer TRACER = getTracer(); |
| | | |
| | | |
| | | |
| | | /** |
| | | * The serial version identifier required to satisfy the compiler because this |
| | | * class implements the <CODE>java.io.Serializable</CODE> interface. This |
| | |
| | | |
| | | |
| | | /** |
| | | * The lock that will be used to provide threadsafe access to the date |
| | | * formatter. |
| | | */ |
| | | private static ReentrantLock dateFormatLock; |
| | | |
| | | |
| | | |
| | | /** |
| | | * The date formatter that will be used to convert dates into generalized time |
| | | * values. Note that all interaction with it must be synchronized. |
| | | */ |
| | | private static SimpleDateFormat dateFormat; |
| | | |
| | | |
| | | |
| | | /** |
| | | * The time zone used for UTC time. |
| | | */ |
| | | private static TimeZone utcTimeZone; |
| | | |
| | | |
| | | |
| | | /* |
| | | * Create the date formatter that will be used to construct and parse |
| | | * normalized generalized time values. |
| | | */ |
| | | static |
| | | { |
| | | utcTimeZone = TimeZone.getTimeZone("UTC"); |
| | | |
| | | dateFormat = new SimpleDateFormat(DATE_FORMAT_GENERALIZED_TIME); |
| | | dateFormat.setLenient(false); |
| | | dateFormat.setTimeZone(utcTimeZone); |
| | | |
| | | dateFormatLock = new ReentrantLock(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new instance of this generalizedTimeMatch matching rule. |
| | | */ |
| | | public GeneralizedTimeOrderingMatchingRule() |