From 5f9ccac52b25265d38c85c0d23be6f8f91dc74d6 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 09 Sep 2016 09:45:26 +0000
Subject: [PATCH] OPENDJ-3089 Remove syntaxes, matching rules factories, associated tests

---
 opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeSyntax.java |   59 +----------------------------------------------------------
 1 files changed, 1 insertions(+), 58 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeSyntax.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeSyntax.java
index 2852277..4fc037c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeSyntax.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeSyntax.java
@@ -18,8 +18,7 @@
 package org.opends.server.schema;
 
 import static org.opends.messages.SchemaMessages.*;
-import static org.opends.server.schema.SchemaConstants.*;
-import static org.opends.server.util.ServerConstants.*;
+import static org.opends.server.util.ServerConstants.TIME_ZONE_UTC;
 
 import java.util.Calendar;
 import java.util.Date;
@@ -31,10 +30,6 @@
 import org.forgerock.opendj.ldap.ByteSequence;
 import org.forgerock.opendj.ldap.ByteString;
 import org.forgerock.opendj.ldap.ResultCode;
-import org.forgerock.opendj.ldap.schema.Schema;
-import org.forgerock.opendj.ldap.schema.Syntax;
-import org.forgerock.opendj.server.config.server.AttributeSyntaxCfg;
-import org.opends.server.api.AttributeSyntax;
 import org.opends.server.types.DirectoryException;
 
 /**
@@ -45,7 +40,6 @@
  * offset like "-0500" for representing values that are not in UTC.
  */
 public class GeneralizedTimeSyntax
-       extends AttributeSyntax<AttributeSyntaxCfg>
 {
   private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
 
@@ -54,57 +48,6 @@
       TimeZone.getTimeZone(TIME_ZONE_UTC);
 
   /**
-   * Creates a new instance of this syntax.  Note that the only thing that
-   * should be done here is to invoke the default constructor for the
-   * superclass.  All initialization should be performed in the
-   * <CODE>initializeSyntax</CODE> method.
-   */
-  public GeneralizedTimeSyntax()
-  {
-    super();
-  }
-
-  /** {@inheritDoc} */
-  @Override
-  public Syntax getSDKSyntax(Schema schema)
-  {
-    return schema.getSyntax(SchemaConstants.SYNTAX_GENERALIZED_TIME_OID);
-  }
-
-  /**
-   * Retrieves the common name for this attribute syntax.
-   *
-   * @return  The common name for this attribute syntax.
-   */
-  @Override
-  public String getName()
-  {
-    return SYNTAX_GENERALIZED_TIME_NAME;
-  }
-
-  /**
-   * Retrieves the OID for this attribute syntax.
-   *
-   * @return  The OID for this attribute syntax.
-   */
-  @Override
-  public String getOID()
-  {
-    return SYNTAX_GENERALIZED_TIME_OID;
-  }
-
-  /**
-   * Retrieves a description for this attribute syntax.
-   *
-   * @return  A description for this attribute syntax.
-   */
-  @Override
-  public String getDescription()
-  {
-    return SYNTAX_GENERALIZED_TIME_DESCRIPTION;
-  }
-
-  /**
    * Retrieves the generalized time representation of the provided date.
    *
    * @param  d  The date to retrieve in generalized time form.

--
Gitblit v1.10.0