001/**
002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003 *
004 * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
005 *
006 * The contents of this file are subject to the terms
007 * of the Common Development and Distribution License
008 * (the License). You may not use this file except in
009 * compliance with the License.
010 *
011 * You can obtain a copy of the License at
012 * https://opensso.dev.java.net/public/CDDLv1.0.html or
013 * opensso/legal/CDDLv1.0.txt
014 * See the License for the specific language governing
015 * permission and limitations under the License.
016 *
017 * When distributing Covered Code, include this CDDL
018 * Header Notice in each file and include the License file
019 * at opensso/legal/CDDLv1.0.txt.
020 * If applicable, add the following below the CDDL Header,
021 * with the fields enclosed by brackets [] replaced by
022 * your own identifying information:
023 * "Portions Copyrighted [year] [name of copyright owner]"
024 *
025 * $Id: IdEventListener.java,v 1.3 2008/06/25 05:43:28 qcheng Exp $
026 *
027 */
028
029package com.sun.identity.idm;
030
031/**
032 * <p>
033 * Represents the event listener interface that consumers of this API should
034 * implement and register with the AMIdentityRepository to receive
035 * notifications.
036 *
037 * @supported.all.api
038 */
039public interface IdEventListener {
040    /**
041     * This method is called back for all identities that are modified in a
042     * repository.
043     * 
044     * @param universalId
045     *            Universal Identifier of the identity.
046     */
047    public void identityChanged(String universalId);
048
049    /**
050     * This method is called back for all identities that are deleted from a
051     * repository. The universal identifier of the identity is passed in as an
052     * argument
053     * 
054     * @param universalId
055     *            Univerval Identifier
056     */
057    public void identityDeleted(String universalId);
058
059    /**
060     * This method is called for all identities that are renamed in a
061     * repository. The universal identifier of the identity is passed in as an
062     * argument
063     * 
064     * @param universalId
065     *            Universal Identifier
066     */
067    public void identityRenamed(String universalId);
068
069    /**
070     * The method is called when all identities in the repository are changed.
071     * This could happen due to a organization deletion or permissions change
072     * etc
073     * 
074     */
075    public void allIdentitiesChanged();
076}




























































Copyright © 2010-2017, ForgeRock All Rights Reserved.