01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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 java.util.Map;
20:
21: import javax.naming.directory.DirContext;
22:
23: import org.apache.cocoon.ProcessingException;
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 {
32: String ROLE = EntryManager.class.getName();
33:
34: int ADD_ATTRIBUTE = DirContext.ADD_ATTRIBUTE;
35: int REMOVE_ATTRIBUTE = DirContext.REMOVE_ATTRIBUTE;
36: int REPLACE_ATTRIBUTE = DirContext.REPLACE_ATTRIBUTE;
37:
38: public void create(String entry_name, Map entity_attributes)
39: throws ProcessingException;
40:
41: public Map get(String entry_name) throws ProcessingException;
42:
43: public Map find(Map match_attributes) throws ProcessingException;
44:
45: public Map find(String context, Map match_attributes)
46: throws ProcessingException;
47:
48: public void modify(String entry_name, int mod_operand,
49: Map mod_attributes) throws ProcessingException;
50:
51: public void remove(String entry_name) throws ProcessingException;
52:
53: }
|