syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreapatrice...@apache.org
Subject [syncope] branch master updated: passing also propagation statuses to after logic action
Date Tue, 12 Mar 2019 16:28:44 GMT
This is an automated email from the ASF dual-hosted git repository.

andreapatricelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 899aa09  passing also propagation statuses to after logic action
899aa09 is described below

commit 899aa0956245a87dbf04865874aa13ccf0edff5a
Author: Andrea Patricelli <andreapatricelli@apache.org>
AuthorDate: Tue Mar 12 17:28:10 2019 +0100

    passing also propagation statuses to after logic action
---
 .../main/java/org/apache/syncope/core/logic/AbstractAnyLogic.java | 6 +++---
 .../org/apache/syncope/core/provisioning/api/LogicActions.java    | 8 +++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/AbstractAnyLogic.java
b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/AbstractAnyLogic.java
index 9ae073c..c27e5c9 100644
--- a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/AbstractAnyLogic.java
+++ b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/AbstractAnyLogic.java
@@ -167,7 +167,7 @@ public abstract class AbstractAnyLogic<TO extends AnyTO, C extends
AnyCR, U exte
         TO any = input;
 
         for (LogicActions action : actions) {
-            any = action.afterCreate(any);
+            any = action.afterCreate(any, statuses);
         }
 
         ProvisioningResult<TO> result = new ProvisioningResult<>();
@@ -198,7 +198,7 @@ public abstract class AbstractAnyLogic<TO extends AnyTO, C extends
AnyCR, U exte
         TO any = input;
 
         for (LogicActions action : actions) {
-            any = action.afterUpdate(any);
+            any = action.afterUpdate(any, statuses);
         }
 
         ProvisioningResult<TO> result = new ProvisioningResult<>();
@@ -214,7 +214,7 @@ public abstract class AbstractAnyLogic<TO extends AnyTO, C extends
AnyCR, U exte
         TO any = input;
 
         for (LogicActions action : actions) {
-            any = action.afterDelete(any);
+            any = action.afterDelete(any, statuses);
         }
 
         ProvisioningResult<TO> result = new ProvisioningResult<>();
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/LogicActions.java
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/LogicActions.java
index 4c57dee..5c5b766 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/LogicActions.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/LogicActions.java
@@ -18,9 +18,11 @@
  */
 package org.apache.syncope.core.provisioning.api;
 
+import java.util.List;
 import org.apache.syncope.common.lib.request.AnyCR;
 import org.apache.syncope.common.lib.request.AnyUR;
 import org.apache.syncope.common.lib.to.AnyTO;
+import org.apache.syncope.common.lib.to.PropagationStatus;
 
 /**
  * Interface for actions to be performed during business logic execution.
@@ -31,7 +33,7 @@ public interface LogicActions {
         return input;
     }
 
-    default <A extends AnyTO> A afterCreate(A input) {
+    default <A extends AnyTO> A afterCreate(A input, List<PropagationStatus>
statuses) {
         return input;
     }
 
@@ -39,7 +41,7 @@ public interface LogicActions {
         return input;
     }
 
-    default <A extends AnyTO> A afterUpdate(A input) {
+    default <A extends AnyTO> A afterUpdate(A input, List<PropagationStatus>
statuses) {
         return input;
     }
 
@@ -47,7 +49,7 @@ public interface LogicActions {
         return input;
     }
 
-    default <A extends AnyTO> A afterDelete(A input) {
+    default <A extends AnyTO> A afterDelete(A input, List<PropagationStatus>
statuses) {
         return input;
     }
 }


Mime
View raw message