KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > ldap > ExternalParticipants


1 /* ExternalParticipants.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

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  // This is not a real WfMC DTD element, but it is introduced to help
21
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 JavaDoc[] {
28          "AllListed",
29          "organizationalUnit",
30          "organizationalRole",
31          "person",
32          "organizationalPerson",
33          "inetOrgPerson",
34       },0) {
35             // to enable manual enterance of object class
36
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 JavaDoc[] {
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