directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1395749 - in /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core: ConnectionCoreConstants.java io/jndi/LdifModificationLogger.java io/jndi/LdifSearchLogger.java
Date Mon, 08 Oct 2012 20:06:43 GMT
Author: seelmann
Date: Mon Oct  8 20:06:42 2012
New Revision: 1395749

URL: http://svn.apache.org/viewvc?rev=1395749&view=rev
Log:
Fix compilation failures, constant from DateTime class was removed.

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifModificationLogger.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifSearchLogger.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java?rev=1395749&r1=1395748&r2=1395749&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
Mon Oct  8 20:06:42 2012
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.studio.connection.core;
 
+import java.util.TimeZone;
+
 
 /**
  * Constants for the connection core plugin.
@@ -47,6 +49,9 @@ public final class ConnectionCoreConstan
     /** The date format of the modification logger */
     public static final String DATEFORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"; //$NON-NLS-1$
 
+    /** Defines an UTC/GMT time zone */
+    public static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone( "UTC" );
+
     /** The constant used to identify if certificates for secure connections should be validated
*/
     public static final String PREFERENCE_VALIDATE_CERTIFICATES = "validateCertificates";
//$NON-NLS-1$
 

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifModificationLogger.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifModificationLogger.java?rev=1395749&r1=1395748&r2=1395749&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifModificationLogger.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifModificationLogger.java
Mon Oct  8 20:06:42 2012
@@ -51,7 +51,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.message.Referral;
 import org.apache.directory.shared.ldap.model.name.Dn;
 import org.apache.directory.shared.ldap.model.name.Rdn;
-import org.apache.directory.shared.util.DateUtils;
 import org.apache.directory.shared.util.Strings;
 import org.apache.directory.studio.connection.core.Connection;
 import org.apache.directory.studio.connection.core.Connection.AliasDereferencingMethod;
@@ -229,7 +228,7 @@ public class LdifModificationLogger impl
         {
             Logger logger = loggers.get( id );
             DateFormat df = new SimpleDateFormat( ConnectionCoreConstants.DATEFORMAT );
-            df.setTimeZone( DateUtils.UTC_TIME_ZONE );
+            df.setTimeZone( ConnectionCoreConstants.UTC_TIME_ZONE );
 
             if ( ex != null )
             {

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifSearchLogger.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifSearchLogger.java?rev=1395749&r1=1395748&r2=1395749&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifSearchLogger.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/jndi/LdifSearchLogger.java
Mon Oct  8 20:06:42 2012
@@ -49,7 +49,6 @@ import javax.naming.ldap.Control;
 import org.apache.commons.lang.StringUtils;
 import org.apache.directory.shared.ldap.model.message.Referral;
 import org.apache.directory.shared.ldap.model.url.LdapUrl;
-import org.apache.directory.shared.util.DateUtils;
 import org.apache.directory.studio.connection.core.Connection;
 import org.apache.directory.studio.connection.core.Connection.AliasDereferencingMethod;
 import org.apache.directory.studio.connection.core.ConnectionCoreConstants;
@@ -218,7 +217,7 @@ public class LdifSearchLogger implements
         {
             Logger logger = loggers.get( id );
             DateFormat df = new SimpleDateFormat( ConnectionCoreConstants.DATEFORMAT );
-            df.setTimeZone( DateUtils.UTC_TIME_ZONE );
+            df.setTimeZone( ConnectionCoreConstants.UTC_TIME_ZONE );
 
             if ( ex != null )
             {



Mime
View raw message