anclist.idl

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- IDL -*-
00006 /*
00007   AUTHOR(S): Darryl Kang (dk)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.28.2.1 $
00012 
00013   License
00014    OSB rating and billing library for communication networks
00015    Copyright (C) 2004, 2005, 2006  OSB systems
00016 
00017    This file may be distributed and/or modify under the terms of the
00018    GNU General Public License (GPL) as published by the Free Software
00019    Foundation which is provided in the file LICENSE.GPL included in the
00020    packaging of this file.
00021 
00022    The file is distributed in the hope that it will be useful, but WITHOUT
00023    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00024    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00025    for more details.
00026 
00027    Holders of a OSB Commercial License may use this file under the terms
00028    and conditions of this commercial license.
00029  */
00030 
00031 #ifndef ANCLIST_IDL
00032 #define ANCLIST_IDL
00033 // ************************************************************************
00034 #include "associate.idl"
00035 #include "exception.idl"
00036 
00037 module corba {
00038   module cadmin {
00046     struct AnCFilter {
00048         AssociateId        asId_;
00050         common::Utf8String asName_;
00052         ContractId         coId_;
00054         unsigned long      maxRows_;
00056         boolean            moreRows_;
00057     };                                  // struct AnCFilter
00058 
00063     interface AnCList {
00074         long search(
00075             inout AnCFilter filter
00076         ) raises (common::OsbCorbaException);
00077 
00079         readonly attribute long numAssoc;
00081         readonly attribute long numContract;
00082 
00090         void refresh(
00091             in boolean noWait
00092         ) raises (common::OsbCorbaException);
00093 
00094         /* !
00095           @brief Replace associate with a new copy from database.
00096 
00097           This function replaces the associate in the list with a
00098           fresh copy of associate by reading from the database.
00099 
00100           @param  id     The unique id of associate
00101           @param  noWait Don't wait for database locks?
00102           @throw  OsbCorbaException if fetching at gateway fails.
00103           @return An associate writer if successful.
00104          */
00105 /*
00106  *      cadmin::assoc::AssociateWriter refreshAssociate(
00107  *          in cadmin::AssociateId id,
00108  *          in boolean noWait
00109  *      ) raises (common::OsbCorbaException);
00110  */
00111 
00112         /* !
00113           @brief Replace a contract with a new copy from database.
00114 
00115           This function reads a fresh copy of the same contract from
00116           the database and replaces the contract in the list.
00117 
00118           @param id Unique id of contract.
00119           @param noWait Don't wait for database locks?
00120           @throw OsbCorbaException if operation at gateway fails.
00121           @return Contract writer.
00122          */
00123 /*
00124  *      cadmin::contract::ContractWriter refreshContract(
00125  *          in cadmin::contract::ContractId id,
00126  *          in boolean                      noWait
00127  *      ) raises (common::OsbCorbaException);
00128  */
00129 
00131 
00132 
00143         cadmin::assoc::AssociateWriter getAssociate(
00144             in cadmin::AssociateId id,
00145             in boolean             noWait
00146         ) raises (common::OsbCorbaException);
00147 
00149         cadmin::assoc::AssociateIdSeq getAssociateIds();
00150 
00152         cadmin::assoc::AssociateSeq getAssociates()
00153             raises (common::OsbCorbaException);
00155 
00157 
00158 
00172         cadmin::assoc::AssociateWriter newAssociate(
00173             in cadmin::assoc::AssociateType type
00174         ) raises (common::OsbCorbaException);
00175 
00186         boolean delAssociate (
00187             in cadmin::AssociateId id,
00188             in boolean             noWait
00189         ) raises (common::OsbCorbaException);
00191 
00193 
00194 
00195         cadmin::contract::ContractWriter getContract(
00196             in cadmin::ContractId id
00197         ) raises (common::OsbCorbaException);
00198 
00209         cadmin::contract::ContractSeq getContracts(
00210             in cadmin::contract::ContractIdSeq idList
00211         ) raises (common::OsbCorbaException);
00212 
00214         cadmin::contract::ContractIdSeq getContractIds();
00215 
00217         cadmin::contract::ContractSeq getAllContracts()
00218             raises (common::OsbCorbaException);
00220 
00222 
00223 
00238         cadmin::contract::ContractWriter newContract(
00239             in contract::AccountingType acctType
00240         ) raises (common::OsbCorbaException);
00241 
00258         boolean delContract(
00259             in cadmin::ContractId cId,
00260             in boolean                      noWait
00261         ) raises (common::OsbCorbaException);
00263     };                                  // interface AnCList
00264   };                                    // module cadmin
00265 };                                      // module corba
00266 #endif                                  // ANCLIST_IDL

Generated on Sat Sep 2 14:23:00 2006 for OSB Library by  doxygen 1.4.7