KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > aciitemeditor > ACIItemValueWithContext


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20 package org.apache.directory.ldapstudio.aciitemeditor;
21
22
23 import org.apache.directory.ldapstudio.browser.core.model.IConnection;
24 import org.apache.directory.ldapstudio.browser.core.model.IEntry;
25
26
27 /**
28  * The ACIItemValueContext is used to pass contextual
29  * information to the opened ACIItemDialog.
30  *
31  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
32  * @version $Rev$, $Date$
33  */

34 public class ACIItemValueWithContext
35 {
36
37     /** The connection, used to browse the directory. */
38     private IConnection connection;
39
40     /** The entry. */
41     private IEntry entry;
42
43     /** The ACI item. */
44     private String JavaDoc aciItemValue;
45
46
47     /**
48      * Creates a new instance of ACIItemValueContext.
49      *
50      * @param aciItemValue the ACI item value
51      * @param connection the connection
52      * @param entry the entry
53      */

54     public ACIItemValueWithContext( IConnection connection, IEntry entry, String JavaDoc aciItemValue )
55     {
56         this.connection = connection;
57         this.entry = entry;
58         this.aciItemValue = aciItemValue;
59     }
60
61
62     /**
63      * Gets the aci item value.
64      *
65      * @return the aciItemValue
66      */

67     public String JavaDoc getACIItemValue()
68     {
69         return aciItemValue;
70     }
71
72
73     /**
74      * @return the connection
75      */

76     public IConnection getConnection()
77     {
78         return connection;
79     }
80
81
82     /**
83      * @return the entry
84      */

85     public IEntry getEntry()
86     {
87         return entry;
88     }
89     
90     
91     /**
92      * {@inheritDoc}
93      */

94     public String JavaDoc toString()
95     {
96         return aciItemValue == null ? "" : aciItemValue; //$NON-NLS-1$
97
}
98
99 }
Popular Tags