All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.ldap.test.DummyDirContext Maven / Gradle / Ivy

There is a newer version: 3.2.10
Show newest version
/*
 * Copyright 2005-2013 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.ldap.test;

import java.util.Hashtable;

import javax.naming.Binding;
import javax.naming.Context;
import javax.naming.Name;
import javax.naming.NameClassPair;
import javax.naming.NameParser;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.ModificationItem;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;

/**
 * @author Mattias Hellborg Arthursson
 */
public class DummyDirContext implements DirContext {

	@Override
	public Attributes getAttributes(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Attributes getAttributes(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Attributes getAttributes(Name name, String[] attrIds) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Attributes getAttributes(String name, String[] attrIds) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void modifyAttributes(Name name, int modOp, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void modifyAttributes(String name, int modOp, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void bind(Name name, Object obj, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void bind(String name, Object obj, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rebind(Name name, Object obj, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rebind(String name, Object obj, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext createSubcontext(String name, Attributes attrs) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext getSchema(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext getSchema(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext getSchemaClassDefinition(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public DirContext getSchemaClassDefinition(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn)
			throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(String name, Attributes matchingAttributes,
			String[] attributesToReturn) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(Name name, String filter, SearchControls cons)
			throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(String name, String filter, SearchControls cons)
			throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs,
			SearchControls cons) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs,
			SearchControls cons) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object lookup(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object lookup(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void bind(Name name, Object obj) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void bind(String name, Object obj) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rebind(Name name, Object obj) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rebind(String name, Object obj) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void unbind(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void unbind(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rename(Name oldName, Name newName) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void rename(String oldName, String newName) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration list(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration list(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration listBindings(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NamingEnumeration listBindings(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void destroySubcontext(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void destroySubcontext(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Context createSubcontext(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Context createSubcontext(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object lookupLink(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object lookupLink(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NameParser getNameParser(Name name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public NameParser getNameParser(String name) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Name composeName(Name name, Name prefix) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public String composeName(String name, String prefix) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object addToEnvironment(String propName, Object propVal) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Object removeFromEnvironment(String propName) throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public Hashtable getEnvironment() throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public void close() throws NamingException {
		throw new UnsupportedOperationException();
	}

	@Override
	public String getNameInNamespace() throws NamingException {
		throw new UnsupportedOperationException();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy