1 10 11 package org.enhydra.jawe.ldap; 12 13 14 import org.enhydra.jawe.xml.*; 15 import org.enhydra.jawe.xml.elements.*; 16 import org.enhydra.jawe.xml.panels.*; 17 18 import java.util.*; 19 20 public class ExternalParticipants extends XMLComplexElement { 22 private XMLAttribute host=new XMLAttribute("Host"); 23 private XMLAttribute port=new XMLAttribute("Port"); 24 25 private XMLAttribute baseDN=new XMLAttribute("BaseDN"); 26 private XMLAttribute objectClassFilter=new XMLAttribute("ObjectClassFilter", 27 new String [] { 28 "AllListed", 29 "organizationalUnit", 30 "organizationalRole", 31 "person", 32 "organizationalPerson", 33 "inetOrgPerson", 34 },0) { 35 public XMLPanel getPanel () { 37 return new XMLComboPanel(this,null,XMLPanel.BOX_LAYOUT,false,true); 38 } 39 }; 40 41 private XMLAttribute searchScope=new XMLAttribute("SearchScope", 42 new String [] { 43 "SCOPE_ONE", 44 "SCOPE_SUB" 45 },1); 46 47 private Security security=new Security(); 48 49 public ExternalParticipants ( 50 org.enhydra.jawe.xml.elements.Package p) { 51 52 super(); 53 54 host.setValue("localhost"); 55 host.setRequired(true); 56 port.setValue("389"); 57 port.setRequired(true); 58 complexStructure.add(host); 59 complexStructure.add(port); 60 complexStructure.add(baseDN); 61 complexStructure.add(objectClassFilter); 62 complexStructure.add(searchScope); 63 complexStructure.add(security); 64 } 65 66 } 67 | Popular Tags |