KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > naming > EntryManager


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

17 package org.apache.cocoon.components.naming;
18
19 import org.apache.avalon.framework.component.*;
20 import javax.naming.directory.*;
21 import java.util.Map JavaDoc;
22 import org.apache.cocoon.ProcessingException;
23
24
25 /**
26  * The <code>EntryManager</code> is an Avalon Component for managing the Entries in a Javax Naming Directory.
27  * This is the interface implemented by {@link org.apache.cocoon.components.naming.LDAPEntryManager LDAPEntryManager}.
28  * @author Jeremy Quinn <a HREF="http://apache.org/~jeremy">http://apache.org/~jeremy</a>.
29  */

30
31 public interface EntryManager extends Component {
32     String JavaDoc ROLE = EntryManager.class.getName();
33     int ADD_ATTRIBUTE = DirContext.ADD_ATTRIBUTE;
34     int REMOVE_ATTRIBUTE = DirContext.REMOVE_ATTRIBUTE;
35     int REPLACE_ATTRIBUTE = DirContext.REPLACE_ATTRIBUTE;
36     
37     public void create(String JavaDoc entry_name, Map JavaDoc entity_attributes) throws ProcessingException ;
38     
39     public Map JavaDoc get(String JavaDoc entry_name) throws ProcessingException;
40
41     public Map JavaDoc find(Map JavaDoc match_attributes) throws ProcessingException;
42
43     public Map JavaDoc find(String JavaDoc context, Map JavaDoc match_attributes) throws ProcessingException;
44     
45     public void modify(String JavaDoc entry_name, int mod_operand, Map JavaDoc mod_attributes) throws ProcessingException;
46     
47 }
48
49
Popular Tags