syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [syncope] branch 2_1_X updated: Including NotificationManager and AuditManager in the platform report
Date Mon, 21 Jan 2019 12:33:32 GMT
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 268fefa  Including NotificationManager and AuditManager in the platform report
268fefa is described below

commit 268fefa5a5766c3de3783c9d8bd09d4ecc82d6e7
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
AuthorDate: Mon Jan 21 13:30:08 2019 +0100

    Including NotificationManager and AuditManager in the platform report
---
 .../apache/syncope/common/lib/info/PlatformInfo.java | 20 ++++++++++++++++++++
 .../org/apache/syncope/core/logic/SyncopeLogic.java  | 12 ++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/info/PlatformInfo.java
b/common/lib/src/main/java/org/apache/syncope/common/lib/info/PlatformInfo.java
index 805c8c7..5e585b9 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/info/PlatformInfo.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/info/PlatformInfo.java
@@ -54,6 +54,10 @@ public class PlatformInfo implements Serializable {
 
         private String groupProvisioningManager;
 
+        private String notificationManager;
+
+        private String auditManager;
+
         public String getPropagationTaskExecutor() {
             return propagationTaskExecutor;
         }
@@ -93,6 +97,22 @@ public class PlatformInfo implements Serializable {
         public void setGroupProvisioningManager(final String groupProvisioningManager) {
             this.groupProvisioningManager = groupProvisioningManager;
         }
+
+        public String getNotificationManager() {
+            return notificationManager;
+        }
+
+        public void setNotificationManager(final String notificationManager) {
+            this.notificationManager = notificationManager;
+        }
+
+        public String getAuditManager() {
+            return auditManager;
+        }
+
+        public void setAuditManager(final String auditManager) {
+            this.auditManager = auditManager;
+        }
     }
 
     @XmlRootElement(name = "workflowInfo")
diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/SyncopeLogic.java b/core/logic/src/main/java/org/apache/syncope/core/logic/SyncopeLogic.java
index f5eee14..edeaecd 100644
--- a/core/logic/src/main/java/org/apache/syncope/core/logic/SyncopeLogic.java
+++ b/core/logic/src/main/java/org/apache/syncope/core/logic/SyncopeLogic.java
@@ -79,12 +79,14 @@ import org.apache.syncope.core.persistence.api.entity.group.TypeExtension;
 import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
 import org.apache.syncope.core.persistence.api.entity.policy.PasswordPolicy;
 import org.apache.syncope.core.provisioning.api.AnyObjectProvisioningManager;
+import org.apache.syncope.core.provisioning.api.AuditManager;
 import org.apache.syncope.core.provisioning.api.ConnIdBundleManager;
 import org.apache.syncope.core.provisioning.api.EntitlementsHolder;
 import org.apache.syncope.core.provisioning.api.GroupProvisioningManager;
 import org.apache.syncope.core.provisioning.api.UserProvisioningManager;
 import org.apache.syncope.core.provisioning.api.cache.VirAttrCache;
 import org.apache.syncope.core.provisioning.api.data.GroupDataBinder;
+import org.apache.syncope.core.provisioning.api.notification.NotificationManager;
 import org.apache.syncope.core.provisioning.api.propagation.PropagationTaskExecutor;
 import org.apache.syncope.core.spring.security.AuthContextUtils;
 import org.apache.syncope.core.workflow.api.AnyObjectWorkflowAdapter;
@@ -187,6 +189,12 @@ public class SyncopeLogic extends AbstractLogic<EntityTO> {
     private VirAttrCache virAttrCache;
 
     @Autowired
+    private NotificationManager notificationManager;
+
+    @Autowired
+    private AuditManager auditManager;
+
+    @Autowired
     private PasswordGenerator passwordGenerator;
 
     @Autowired
@@ -249,6 +257,10 @@ public class SyncopeLogic extends AbstractLogic<EntityTO> {
                         setPropagationTaskExecutor(AopUtils.getTargetClass(propagationTaskExecutor).getName());
                 PLATFORM_INFO.getProvisioningInfo().
                         setVirAttrCache(AopUtils.getTargetClass(virAttrCache).getName());
+                PLATFORM_INFO.getProvisioningInfo().
+                        setNotificationManager(AopUtils.getTargetClass(notificationManager).getName());
+                PLATFORM_INFO.getProvisioningInfo().
+                        setAuditManager(AopUtils.getTargetClass(auditManager).getName());
 
                 PLATFORM_INFO.setPasswordGenerator(AopUtils.getTargetClass(passwordGenerator).getName());
 


Mime
View raw message