1 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 ; 22 import org.apache.cocoon.ProcessingException; 23 24 25 30 31 public interface EntryManager extends Component { 32 String 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 entry_name, Map entity_attributes) throws ProcessingException ; 38 39 public Map get(String entry_name) throws ProcessingException; 40 41 public Map find(Map match_attributes) throws ProcessingException; 42 43 public Map find(String context, Map match_attributes) throws ProcessingException; 44 45 public void modify(String entry_name, int mod_operand, Map mod_attributes) throws ProcessingException; 46 47 } 48 49 | Popular Tags |