directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cp...@apache.org
Subject [6/7] directory-fortress-core git commit: made all the manager serializalbe
Date Sat, 20 Feb 2016 14:52:06 GMT
made all the manager serializalbe


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/0522bf05
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/0522bf05
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/0522bf05

Branch: refs/heads/master
Commit: 0522bf05dc59529fb56e3f60a956fb234306af3c
Parents: 88a2298
Author: clp207 <clp207@psu.edu>
Authored: Sat Feb 20 09:40:11 2016 -0500
Committer: clp207 <clp207@psu.edu>
Committed: Sat Feb 20 09:40:11 2016 -0500

----------------------------------------------------------------------
 .../directory/fortress/core/impl/AccelMgrImpl.java    |  3 ++-
 .../directory/fortress/core/impl/AccessMgrImpl.java   |  3 ++-
 .../directory/fortress/core/impl/AdminMgrImpl.java    | 14 +++++++-------
 .../directory/fortress/core/impl/AuditMgrImpl.java    |  9 +++++----
 .../directory/fortress/core/impl/ConfigMgrImpl.java   |  7 ++++---
 .../fortress/core/impl/DelAccessMgrImpl.java          |  3 ++-
 .../directory/fortress/core/impl/DelAdminMgrImpl.java |  3 ++-
 .../fortress/core/impl/DelReviewMgrImpl.java          |  9 +++++----
 .../directory/fortress/core/impl/GroupMgrImpl.java    |  9 +++++----
 .../directory/fortress/core/impl/ReviewMgrImpl.java   | 13 +++++++------
 10 files changed, 41 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/AccelMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/AccelMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/AccelMgrImpl.java
index ad105f5..021aa15 100644
--- a/src/main/java/org/apache/directory/fortress/core/impl/AccelMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/AccelMgrImpl.java
@@ -20,6 +20,7 @@
 package org.apache.directory.fortress.core.impl;
 
 
+import java.io.Serializable;
 import java.util.List;
 
 import org.apache.directory.fortress.core.AccelMgr;
@@ -73,7 +74,7 @@ import org.apache.directory.fortress.core.util.VUtil;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AccelMgrImpl extends Manageable implements AccelMgr
+public class AccelMgrImpl extends Manageable implements AccelMgr, Serializable
 {
     private static final String CLS_NM = AccessMgrImpl.class.getName();
     private static final AcceleratorDAO aDao = new org.apache.directory.fortress.core.impl.AcceleratorDAO();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
index 5b390c9..465973b 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/AccessMgrImpl.java
@@ -20,6 +20,7 @@
 package org.apache.directory.fortress.core.impl;
 
 
+import java.io.Serializable;
 import java.util.List;
 import java.util.Set;
 
@@ -75,7 +76,7 @@ import org.apache.directory.fortress.core.util.VUtil;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AccessMgrImpl extends Manageable implements AccessMgr
+public class AccessMgrImpl extends Manageable implements AccessMgr, Serializable
 {
     private static final String CLS_NM = AccessMgrImpl.class.getName();
     private static final UserP userP = new UserP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/AdminMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/AdminMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/AdminMgrImpl.java
index 92b8104..2326d2b 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/AdminMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/AdminMgrImpl.java
@@ -20,10 +20,15 @@
 package org.apache.directory.fortress.core.impl;
 
 
+import java.io.Serializable;
 import java.util.List;
 import java.util.Set;
 
 import org.apache.commons.collections.CollectionUtils;
+import org.apache.directory.fortress.core.AdminMgr;
+import org.apache.directory.fortress.core.GlobalErrIds;
+import org.apache.directory.fortress.core.GlobalIds;
+import org.apache.directory.fortress.core.SecurityException;
 import org.apache.directory.fortress.core.model.AdminRole;
 import org.apache.directory.fortress.core.model.ConstraintUtil;
 import org.apache.directory.fortress.core.model.Hier;
@@ -34,15 +39,10 @@ import org.apache.directory.fortress.core.model.Role;
 import org.apache.directory.fortress.core.model.SDSet;
 import org.apache.directory.fortress.core.model.User;
 import org.apache.directory.fortress.core.model.UserRole;
+import org.apache.directory.fortress.core.util.VUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.directory.fortress.core.AdminMgr;
-import org.apache.directory.fortress.core.GlobalErrIds;
-import org.apache.directory.fortress.core.GlobalIds;
-import org.apache.directory.fortress.core.SecurityException;
-import org.apache.directory.fortress.core.util.VUtil;
-
 
 /**
  * This class performs administrative functions to provision Fortress RBAC entities into
the LDAP directory.  These APIs
@@ -83,7 +83,7 @@ import org.apache.directory.fortress.core.util.VUtil;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public final class AdminMgrImpl extends Manageable implements AdminMgr
+public final class AdminMgrImpl extends Manageable implements AdminMgr, Serializable
 {
     private static final String CLS_NM = AdminMgrImpl.class.getName();
     private static final AdminRoleP adminP = new AdminRoleP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/AuditMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/AuditMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/AuditMgrImpl.java
index 8b4a25b..3004b1a 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/AuditMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/AuditMgrImpl.java
@@ -19,20 +19,21 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
+import java.util.List;
+
 import org.apache.commons.lang.StringUtils;
 import org.apache.directory.fortress.core.AuditMgr;
 import org.apache.directory.fortress.core.GlobalErrIds;
+import org.apache.directory.fortress.core.ReviewMgr;
 import org.apache.directory.fortress.core.ReviewMgrFactory;
 import org.apache.directory.fortress.core.SecurityException;
-import org.apache.directory.fortress.core.ReviewMgr;
 import org.apache.directory.fortress.core.model.AuthZ;
 import org.apache.directory.fortress.core.model.Bind;
 import org.apache.directory.fortress.core.model.Mod;
 import org.apache.directory.fortress.core.model.User;
 import org.apache.directory.fortress.core.model.UserAudit;
 
-import java.util.List;
-
 /**
  * This object performs searches across <a href="http://www.openldap.org/">OpenLDAP</a>'s
slapd access log.  The access log 
  * events are persisted in <a href="http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html">BDB</a>
and 
@@ -105,7 +106,7 @@ import java.util.List;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AuditMgrImpl extends Manageable implements AuditMgr
+public class AuditMgrImpl extends Manageable implements AuditMgr, Serializable
 {
     private static final String CLS_NM = AuditMgrImpl.class.getName();
     private static final AuditP auditP = new AuditP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/ConfigMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/ConfigMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/ConfigMgrImpl.java
index 5fb06f9..5dea257 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/ConfigMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/ConfigMgrImpl.java
@@ -19,11 +19,12 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
+import java.util.Properties;
+
 import org.apache.directory.fortress.core.ConfigMgr;
 import org.apache.directory.fortress.core.SecurityException;
 
-import java.util.Properties;
-
 
 /**
  * This Manager impl supplies CRUD methods used to manage properties stored within the ldap
directory.
@@ -38,7 +39,7 @@ import java.util.Properties;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ConfigMgrImpl implements ConfigMgr
+public class ConfigMgrImpl implements ConfigMgr, Serializable
 {
     private static final ConfigP cfgP = new ConfigP();
 

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/DelAccessMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/DelAccessMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/DelAccessMgrImpl.java
index 62e7797..6f9484c 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/DelAccessMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/DelAccessMgrImpl.java
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
 import java.util.List;
 import java.util.Set;
 import java.util.TreeSet;
@@ -62,7 +63,7 @@ import org.apache.directory.fortress.core.util.VUtil;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class DelAccessMgrImpl extends AccessMgrImpl implements DelAccessMgr
+public class DelAccessMgrImpl extends AccessMgrImpl implements DelAccessMgr, Serializable
 {
     private static final String CLS_NM = DelAccessMgrImpl.class.getName();
     private static final UserP userP = new UserP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/DelAdminMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/DelAdminMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/DelAdminMgrImpl.java
index 3e10247..e7a3c79 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/DelAdminMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/DelAdminMgrImpl.java
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
 import java.util.List;
 import java.util.Set;
 
@@ -59,7 +60,7 @@ import org.apache.directory.fortress.core.util.VUtil;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public final class DelAdminMgrImpl extends Manageable implements DelAdminMgr
+public final class DelAdminMgrImpl extends Manageable implements DelAdminMgr, Serializable
 {
     private static final String CLS_NM = DelAdminMgrImpl.class.getName();
     private static final OrgUnitP ouP = new OrgUnitP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/DelReviewMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/DelReviewMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/DelReviewMgrImpl.java
index 58ee215..c8b6deb 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/DelReviewMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/DelReviewMgrImpl.java
@@ -19,17 +19,18 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
+import java.util.List;
+
+import org.apache.directory.fortress.core.DelReviewMgr;
 import org.apache.directory.fortress.core.GlobalErrIds;
 import org.apache.directory.fortress.core.SecurityException;
-import org.apache.directory.fortress.core.DelReviewMgr;
 import org.apache.directory.fortress.core.model.AdminRole;
 import org.apache.directory.fortress.core.model.OrgUnit;
 import org.apache.directory.fortress.core.model.User;
 import org.apache.directory.fortress.core.model.UserAdminRole;
 import org.apache.directory.fortress.core.util.VUtil;
 
-import java.util.List;
-
 /**
  * This class implements the ARBAC02 DelReviewMgr interface for performing policy interrogation
of provisioned Fortress 
  * ARBAC entities that reside in LDAP directory.
@@ -50,7 +51,7 @@ import java.util.List;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class DelReviewMgrImpl extends Manageable implements DelReviewMgr
+public class DelReviewMgrImpl extends Manageable implements DelReviewMgr, Serializable
 {
     private static final String CLS_NM = DelReviewMgrImpl.class.getName();
     private static final UserP userP = new UserP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/GroupMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/GroupMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/GroupMgrImpl.java
index 3a09944..dce47e2 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/GroupMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/GroupMgrImpl.java
@@ -19,6 +19,10 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.directory.fortress.core.GlobalErrIds;
 import org.apache.directory.fortress.core.GroupMgr;
@@ -28,9 +32,6 @@ import org.apache.directory.fortress.core.SecurityException;
 import org.apache.directory.fortress.core.model.Group;
 import org.apache.directory.fortress.core.model.User;
 
-import java.util.ArrayList;
-import java.util.List;
-
 
 /**
  * This Manager impl supplies CRUD methods used to manage groups stored within the ldap directory.
@@ -40,7 +41,7 @@ import java.util.List;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class GroupMgrImpl extends Manageable implements GroupMgr
+public class GroupMgrImpl extends Manageable implements GroupMgr, Serializable
 {
     private static final String CLS_NM = GroupMgrImpl.class.getName();
     private static final GroupP GROUP_P = new GroupP();

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/0522bf05/src/main/java/org/apache/directory/fortress/core/impl/ReviewMgrImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/impl/ReviewMgrImpl.java b/src/main/java/org/apache/directory/fortress/core/impl/ReviewMgrImpl.java
index 70d16d2..0b04f28 100755
--- a/src/main/java/org/apache/directory/fortress/core/impl/ReviewMgrImpl.java
+++ b/src/main/java/org/apache/directory/fortress/core/impl/ReviewMgrImpl.java
@@ -19,6 +19,12 @@
  */
 package org.apache.directory.fortress.core.impl;
 
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.directory.fortress.core.GlobalErrIds;
 import org.apache.directory.fortress.core.ReviewMgr;
@@ -32,11 +38,6 @@ import org.apache.directory.fortress.core.model.User;
 import org.apache.directory.fortress.core.model.UserRole;
 import org.apache.directory.fortress.core.util.VUtil;
 
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
 /**
  * This class performs administrative review functions on already provisioned Fortress RBAC
entities
  * that reside in LDAP directory.  These APIs map directly to similar named APIs specified
by ANSI and NIST RBAC models.
@@ -76,7 +77,7 @@ import java.util.Set;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ReviewMgrImpl extends Manageable implements ReviewMgr
+public class ReviewMgrImpl extends Manageable implements ReviewMgr, Serializable
 {
     private static final String CLS_NM = ReviewMgrImpl.class.getName();
     private static final UserP userP = new UserP();


Mime
View raw message