1 /* 2 * Copyright 2004 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 package org.apache.ldap.server.schema; 18 19 import java.util.List; 20 21 import javax.naming.NamingException; 22 23 import org.slf4j.Logger; 24 import org.slf4j.LoggerFactory; 25 26 27 /*** 28 * An adapter for an OidRegistryMonitor. 29 * 30 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 31 * @version $Rev: 280870 $ 32 */ 33 public class OidRegistryMonitorAdapter implements OidRegistryMonitor 34 { 35 private static final Logger log = LoggerFactory.getLogger( OidRegistryMonitorAdapter.class ); 36 37 /* (non-Javadoc) 38 * @see org.apache.ldap.server.schema.OidRegistryMonitor#getOidWithOid( 39 * java.lang.String) 40 */ 41 public void getOidWithOid( String oid ) 42 { 43 } 44 45 46 /* (non-Javadoc) 47 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolved( 48 * java.lang.String, java.lang.String) 49 */ 50 public void oidResolved( String name, String oid ) 51 { 52 } 53 54 55 /* (non-Javadoc) 56 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolved( 57 * java.lang.String, java.lang.String, java.lang.String) 58 */ 59 public void oidResolved( String name, String normalized, String oid ) 60 { 61 } 62 63 64 /* (non-Javadoc) 65 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolutionFailed( 66 * java.lang.String, javax.naming.NamingException) 67 */ 68 public void oidResolutionFailed( String name, NamingException fault ) 69 { 70 if ( fault != null ) 71 { 72 log.warn( "Failed to resolve OID: " + name, fault ); 73 } 74 } 75 76 77 /* (non-Javadoc) 78 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidDoesNotExist( 79 * java.lang.String, javax.naming.NamingException) 80 */ 81 public void oidDoesNotExist( String oid, NamingException fault ) 82 { 83 if ( fault != null ) 84 { 85 log.warn( "OID doesn't exist: " + oid, fault ); 86 } 87 } 88 89 90 /* (non-Javadoc) 91 * @see org.apache.ldap.server.schema.OidRegistryMonitor#nameResolved( 92 * java.lang.String, java.lang.String) 93 */ 94 public void nameResolved( String oid, String name ) 95 { 96 } 97 98 99 /* (non-Javadoc) 100 * @see org.apache.ldap.server.schema.OidRegistryMonitor#namesResolved( 101 * java.lang.String, java.util.List) 102 */ 103 public void namesResolved( String oid, List names ) 104 { 105 } 106 107 108 /* (non-Javadoc) 109 * @see org.apache.ldap.server.schema.OidRegistryMonitor#registered( 110 * java.lang.String, java.lang.String) 111 */ 112 public void registered( String name, String oid ) 113 { 114 } 115 }