/*
 * Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved.
 *
 * The contents of this file are subject to the CCM Public
 * License (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the
 * License at http://www.redhat.com/licenses/ccmpl.html.
 *
 * Software distributed under the License is distributed on an
 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
 * or implied. See the License for the specific language
 * governing rights and limitations under the License.
 *
 */
package com.arsdigita.search.intermedia;

import com.arsdigita.domain.DomainObject;
import com.arsdigita.domain.DomainObjectObserver;
import com.arsdigita.persistence.DataObject;
import com.arsdigita.persistence.PersistenceException;
import java.util.HashMap;

import org.apache.log4j.Logger;



/**
 * Using this class is no longer required, it will be removed
 * in a future release. A global observer checks to see if
 * you implement Searchable, or prefereably have registered
 * a MetadataProvider adapter
 * @see com.arsdigita.search.MetadataProvider
 * @deprecated use MetadataProvider instead of Searchable
 **/
public class SearchableObserver implements DomainObjectObserver {
    public static final String versionId = "$Id: //core-platform/dev/src/com/arsdigita/search/intermedia/SearchableObserver.java#3 $ by $Author: dennis $, $DateTime: 2004/04/07 16:07:11 $";

    private static final Logger s_log = Logger.getLogger(SearchableObserver.class);

    /**
     * Constructor.  Makes sure that only objects that implement Searchable
     * use this observer.
     **/
    public SearchableObserver(Searchable searchableObject) {
        super();
    }


    public void set(DomainObject dobj,
                    String name,
                    Object old_value,
                    Object new_value) {
    }
    public void add(DomainObject dobj,
                    String name, DataObject dataObject) { }
    public void remove(DomainObject dobj,
                       String name, DataObject dataObject) { }
    public void clear(DomainObject dobj, String name) { }

    public void beforeSave(DomainObject dobj) throws PersistenceException {
    }
    public void afterSave(DomainObject dobj) throws PersistenceException {
    }
    public void beforeDelete(DomainObject dobj) throws PersistenceException {
    }
    public void afterDelete(DomainObject dobj) throws PersistenceException {
    }

}
