package org.xdi.config.oxtrust;

import java.util.List;

import org.gluu.persist.model.base.Entry;
import org.gluu.site.ldap.persistence.annotation.LdapAttribute;
import org.gluu.site.ldap.persistence.annotation.LdapDN;
import org.gluu.site.ldap.persistence.annotation.LdapEntry;
import org.gluu.site.ldap.persistence.annotation.LdapJsonObject;
import org.gluu.site.ldap.persistence.annotation.LdapObjectClass;
import org.xdi.model.passport.PassportConfiguration;

/**
 * @author Shekhar L.
 * @author Yuriy Movchan Date: 12/06/2016
 * @Date 07/17/2016
 */

@LdapEntry
@LdapObjectClass(values = { "top", "oxPassportConfiguration" })
public class LdapOxPassportConfiguration extends Entry {

    private static final long serialVersionUID = -8451013277721189767L;

    @LdapDN
    private String dn;

    @LdapJsonObject
    @LdapAttribute(name = "gluuPassportConfiguration")
    private List<PassportConfiguration> passportConfigurations;

    @LdapAttribute(name = "gluuStatus")
    private String status;

    public List<PassportConfiguration> getPassportConfigurations() {
        return passportConfigurations;
    }

    public void setPassportConfigurations(List<PassportConfiguration> passportConfigurations) {
        this.passportConfigurations = passportConfigurations;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}

@@ -30,32 +30,8 @@
 t;%0A%0A
-import java.util.List;%0A%0A
 impo
@@ -660,20 +660,17 @@
 ntry %7B%0A%0A
-    
+%09
 private 
@@ -733,21 +733,17 @@
 7L;%0A
-%0A    
+%09
 @LdapDN%0A
     
@@ -738,20 +738,17 @@
 @LdapDN%0A
-    
+%09
 private 
@@ -758,21 +758,17 @@
 ing dn;%0A
-%0A    
+%09
 @LdapJso
@@ -775,20 +775,17 @@
 nObject%0A
-    
+%09
 @LdapAtt
@@ -827,28 +827,25 @@
 ation%22)%0A
-    
+%09
 private 
 List%3CPas
@@ -836,21 +836,16 @@
 private 
-List%3C
 Passport
@@ -849,33 +849,32 @@
 ortConfiguration
-%3E
  passportConfigu
@@ -883,96 +883,113 @@
 tion
-s
 ;%0A%0A
-    @LdapAttribute(name = %22gluuStatus%22)%0A    private String status;%0A%0A    
+%09public String getDn() %7B%0A%09%09return dn;%0A%09%7D%0A%0A%09public void setDn(String dn) %7B%0A%09%09this.dn = dn;%0A%09%7D%0A%0A%09
 public 
-List%3C
 Pass
@@ -1005,17 +1005,16 @@
 guration
-%3E
  getPass
@@ -1030,30 +1030,23 @@
 guration
-s
 () %7B%0A
-        
+%09%09
 return p
@@ -1061,38 +1061,31 @@
 onfiguration
-s
 ;%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 public void 
@@ -1112,15 +1112,9 @@
 tion
-s(List%3C
+(
 Pass
@@ -1134,9 +1134,8 @@
 tion
-%3E
  pas
@@ -1152,29 +1152,22 @@
 guration
-s
 ) %7B%0A
-        
+%09%09
 this.pas
@@ -1184,17 +1184,16 @@
 guration
-s
  = passp
@@ -1212,158 +1212,11 @@
 tion
-s
 ;%0A
-    %7D%0A%0A    public String getStatus() %7B%0A        return status;%0A    %7D%0A%0A    public void setStatus(String status) %7B%0A        this.status = status;%0A    %7D%0A
+%09%7D
 %0A%7D%0A

Change the LdapoxpassportConfiguration class that matches need schema structure #119