001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2008 Sun Microsystems, Inc.
015 */
016
017package org.opends.guitools.controlpanel.event;
018
019import org.opends.server.types.Entry;
020
021/**
022 * Method that describes that an entry has changed.  This is used by the LDAP
023 * entry editors.
024 *
025 */
026public class LDAPEntryChangedEvent
027{
028  private Object source;
029  private Entry entry;
030
031  /**
032   * Constructor of the event.
033   * @param source the source of the event.
034   * @param entry the entry that has been modified (the object contains the new
035   * values of the entry).
036   */
037  public LDAPEntryChangedEvent(Object source, Entry entry)
038  {
039    this.source = source;
040    this.entry = entry;
041  }
042
043  /**
044   * Returns the entry that has been modified (the object contains the new
045   * values of the entry).
046   * @return the entry that has been modified.
047   */
048  public Entry getEntry()
049  {
050    return entry;
051  }
052
053  /**
054   * Returns the source of the event.
055   * @return the source of the event.
056   */
057  public Object getSource()
058  {
059    return source;
060  }
061}