syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject svn commit: r1485957 - in /syncope/trunk/common/src/main/java/org/apache/syncope/common/mod: ReferenceMod.java RoleMod.java
Date Fri, 24 May 2013 08:03:03 GMT
Author: jbernhardt
Date: Fri May 24 08:03:03 2013
New Revision: 1485957

URL: http://svn.apache.org/r1485957
Log:
SYNCOPE-285 Added missing JAX-B Annotations

Modified:
    syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/ReferenceMod.java
    syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/RoleMod.java

Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/ReferenceMod.java
URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/ReferenceMod.java?rev=1485957&r1=1485956&r2=1485957&view=diff
==============================================================================
--- syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/ReferenceMod.java (original)
+++ syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/ReferenceMod.java Fri
May 24 08:03:03 2013
@@ -18,6 +18,9 @@
  */
 package org.apache.syncope.common.mod;
 
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
 import org.apache.syncope.common.AbstractBaseBean;
 
 /**
@@ -25,6 +28,8 @@ import org.apache.syncope.common.Abstrac
  * current reference id; use a ReferenceMod with a null id to try to reset the reference
id; use a ReferenceMod with a
  * not null id to specify a new reference id.
  */
+@XmlRootElement(name = "referenceMod")
+@XmlType
 public class ReferenceMod extends AbstractBaseBean {
 
     private static final long serialVersionUID = -4188817853738067677L;

Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/RoleMod.java
URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/RoleMod.java?rev=1485957&r1=1485956&r2=1485957&view=diff
==============================================================================
--- syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/RoleMod.java (original)
+++ syncope/trunk/common/src/main/java/org/apache/syncope/common/mod/RoleMod.java Fri May
24 08:03:03 2013
@@ -19,8 +19,16 @@
 package org.apache.syncope.common.mod;
 
 import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
 import org.codehaus.jackson.annotate.JsonIgnore;
 
+@XmlRootElement(name = "roleMod")
+@XmlType
 public class RoleMod extends AbstractAttributableMod {
 
     private static final long serialVersionUID = 7455805264680210747L;
@@ -105,6 +113,8 @@ public class RoleMod extends AbstractAtt
         this.inheritVirtualAttributes = inheritVirtualAttributes;
     }
 
+    @XmlElement(name = "entitlement")
+    @XmlElementWrapper(name = "entitlements")
     public List<String> getEntitlements() {
         return entitlements;
     }



Mime
View raw message