/////////////////////////////////////////////////////////////////////////////
//Copyright Avaya Inc., All Rights Reserved
// THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AVAYA INC
// The copyright notice above does not evidence any
// actual or intended publication of such source code.
// Some third-party source code components may have been modified from
// their original versions by Avaya Inc.
// The modifications are Copyright Avaya Inc., All Rights Reserved.
//
//////////////////////////////////////////////////////////////////////////////
package com.avaya.services.whitelist.db;

import java.util.List;

import javax.ejb.Local;

@Local
public interface WhiteListDao
{
    boolean isWhiteListedNumber(String callingNumber, String calledNumber);

    List<WhiteListEntry> queryWhiteListEntries();

    List<WhiteListEntry> deleteWhiteListEntry(String callingParty, String calledParty);

    List<WhiteListEntry> createWhiteListEntry(String callingParty, String calledParty);

    List<WhiteListEntry> queryOneEntry(String callingParty, String calledParty);
    
    List<WhiteListEntry> queryEntryByCalledHandle(String calledParty);
}
