1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.api.ldap.extras.controls.ad;
21
22
23 import org.apache.directory.api.asn1.ber.AbstractContainer;
24 import org.apache.directory.api.ldap.codec.api.LdapApiService;
25
26
27
28
29
30
31
32
33 public class AdDirSyncContainer extends AbstractContainer
34 {
35
36 private AdDirSync control;
37
38 private LdapApiService codec;
39
40
41
42
43
44
45
46 public AdDirSyncContainer( LdapApiService codec )
47 {
48 super();
49 this.codec = codec;
50 this.control = new AdDirSyncDecorator( codec );
51 grammar = AdDirSyncGrammar.getInstance();
52 setTransition( AdDirSyncStatesEnum.START_STATE );
53 }
54
55
56
57
58
59
60
61 public AdDirSyncContainer( LdapApiService codec, AdDirSync control )
62 {
63 super();
64 this.codec = codec;
65 this.control = control;
66 grammar = AdDirSyncGrammar.getInstance();
67 setTransition( AdDirSyncStatesEnum.START_STATE );
68 }
69
70
71
72
73
74 public AdDirSync getAdDirSyncControl()
75 {
76 return control;
77 }
78
79
80
81
82
83
84
85
86 public void setAdDirSyncControl( AdDirSync control )
87 {
88 this.control = control;
89 }
90
91
92 public LdapApiService getCodecService()
93 {
94 return codec;
95 }
96
97
98
99
100
101 @Override
102 public void clean()
103 {
104 super.clean();
105 control = null;
106 }
107 }