syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1533512 - /syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java
Date Fri, 18 Oct 2013 15:30:20 GMT
Author: fmartelli
Date: Fri Oct 18 15:30:20 2013
New Revision: 1533512

URL: http://svn.apache.org/r1533512
Log:
Missing resource name building the PropagationTaskTO from PropagationTask

Modified:
    syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java

Modified: syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java?rev=1533512&r1=1533511&r2=1533512&view=diff
==============================================================================
--- syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java
(original)
+++ syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java
Fri Oct 18 15:30:20 2013
@@ -20,6 +20,7 @@ package org.apache.syncope.core.rest.dat
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.syncope.common.to.AbstractAttributableTO;
+import org.apache.syncope.common.to.PropagationTaskTO;
 import org.apache.syncope.common.to.AttributeTO;
 import org.apache.syncope.common.to.MembershipTO;
 import org.apache.syncope.common.to.RoleTO;
@@ -252,6 +253,7 @@ public class TaskDataBinder {
                     throw new ClassCastException("taskUtil is type Propagation but task is
not PropagationTask: "
                             + task.getClass().getName());
                 }
+                ((PropagationTaskTO) taskTO).setResource(((PropagationTask) task).getResource().getName());
                 break;
 
             case SCHED:



Mime
View raw message