directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1538364 - /directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java
Date Sun, 03 Nov 2013 13:49:14 GMT
Author: kayyagari
Date: Sun Nov  3 13:49:14 2013
New Revision: 1538364

URL: http://svn.apache.org/r1538364
Log:
formatting

Modified:
    directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java

Modified: directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java?rev=1538364&r1=1538363&r2=1538364&view=diff
==============================================================================
--- directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java
(original)
+++ directory/escimo/trunk/ldap/src/main/java/org/apache/directory/scim/ldap/handlers/ActiveAttributeHandler.java
Sun Nov  3 13:49:14 2013
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.scim.ldap.handlers;
 
+
 import org.apache.directory.api.ldap.model.constants.PasswordPolicySchemaConstants;
 import org.apache.directory.api.ldap.model.entry.Attribute;
 import org.apache.directory.api.ldap.model.entry.Entry;
@@ -29,6 +30,7 @@ import org.apache.directory.scim.schema.
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+
 /**
  * TODO ActiveAttributeHandler.
  *
@@ -38,44 +40,46 @@ public class ActiveAttributeHandler exte
 {
 
     private static final Logger LOG = LoggerFactory.getLogger( ActiveAttributeHandler.class
);
-    
+
+
     @Override
     public void read( BaseType bt, Object srcResource, RequestContext ctx ) throws Exception
     {
-        if( !bt.getName().equals( "active" ) )
+        if ( !bt.getName().equals( "active" ) )
         {
-            LOG.debug( "ActiveAttributeHandler can  only be called on the active attribute,
invalid attribute name {}", bt.getName() );
+            LOG.debug( "ActiveAttributeHandler can  only be called on the active attribute,
invalid attribute name {}",
+                bt.getName() );
             return;
         }
-        
+
         Entry entry = ( Entry ) srcResource;
-        
+
         Attribute lockAt = entry.get( PasswordPolicySchemaConstants.PWD_ACCOUNT_LOCKED_TIME_AT
);
-        
+
         SimpleAttribute st = null;
-        
-        if( lockAt != null )
+
+        if ( lockAt != null )
         {
             try
             {
-                if( "000001010000Z".equals( lockAt.getString() ) )
+                if ( "000001010000Z".equals( lockAt.getString() ) )
                 {
                     st = new SimpleAttribute( bt.getName(), Boolean.FALSE );
                 }
             }
-            catch( LdapException e )
+            catch ( LdapException e )
             {
                 LOG.warn( "Failed to get the value for the attribute {}", bt.getName(), e
);
                 throw e;
             }
         }
-        
+
         if ( st == null )
         {
             st = new SimpleAttribute( bt.getName(), Boolean.TRUE );
         }
-        
+
         ctx.getCoreResource().addAttribute( bt.getUri(), st );
     }
 
-    }
+}



Mime
View raw message