directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject [directory-fortress-enmasse] 01/01: FC-262 - remove the extraneous entity reads
Date Sat, 16 Mar 2019 17:23:24 GMT
This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-enmasse.git

commit ab200c4154066b5938cbc23bbc20539f9eeba7cc
Author: Shawn McKinney <smckinney@apache.org>
AuthorDate: Sat Mar 16 12:23:15 2019 -0500

    FC-262 - remove the extraneous entity reads
---
 .../org/apache/directory/fortress/rest/AdminMgrImpl.java     | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/main/java/org/apache/directory/fortress/rest/AdminMgrImpl.java b/src/main/java/org/apache/directory/fortress/rest/AdminMgrImpl.java
index df1110d..25a6078 100644
--- a/src/main/java/org/apache/directory/fortress/rest/AdminMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/rest/AdminMgrImpl.java
@@ -129,9 +129,7 @@ class AdminMgrImpl extends AbstractMgrImpl
             adminMgr.setAdmin( request.getSession() );
             User inUser = (User) request.getEntity();
             adminMgr.changePassword( inUser, inUser.getNewPassword() );
-            ReviewMgr reviewMgr = ReviewMgrFactory.createInstance( request.getContextId()
);
-            User outUser = reviewMgr.readUser( inUser );
-            response.setEntity( outUser );
+            response.setEntity( inUser );
         }
         catch ( SecurityException se )
         {
@@ -152,9 +150,7 @@ class AdminMgrImpl extends AbstractMgrImpl
             adminMgr.setAdmin( request.getSession() );
             User inUser = (User) request.getEntity();
             adminMgr.lockUserAccount( inUser );
-            ReviewMgr reviewMgr = ReviewMgrFactory.createInstance( request.getContextId()
);
-            User outUser = reviewMgr.readUser( inUser );
-            response.setEntity( outUser );
+            response.setEntity( inUser );
         }
         catch ( SecurityException se )
         {
@@ -175,9 +171,7 @@ class AdminMgrImpl extends AbstractMgrImpl
             adminMgr.setAdmin( request.getSession() );
             User inUser = (User) request.getEntity();
             adminMgr.unlockUserAccount( inUser );
-            ReviewMgr reviewMgr = ReviewMgrFactory.createInstance( request.getContextId()
);
-            User outUser = reviewMgr.readUser( inUser );
-            response.setEntity( outUser );
+            response.setEntity( inUser );
         }
         catch ( SecurityException se )
         {


Mime
View raw message