associate.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.47.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 #ifndef ASSOCIATE_IDL
00031 #define ASSOCIATE_IDL
00032 // *********************************************************************
00033 #include "address.idl"
00034 #include "contract.idl"
00035 
00036 module corba {
00037   module cadmin {
00038     module assoc {
00040       enum AssociateType {
00041           atUnknown,     
00042           atCustomer     
00043       };
00044 
00046       interface AssociateWriter {
00048           readonly attribute AssociateId id;
00049 
00051           readonly attribute common::Utf8String name;
00052 
00054           readonly attribute AssociateId parentId;
00055 
00057           readonly attribute unsigned long levelId;
00058 
00060           readonly attribute AssociateType asType;
00061 
00063           readonly attribute AssociateIdSeq getChildren;
00064 
00066           readonly attribute common::TaxKeyId tkId;
00067 
00069           readonly attribute Status effStatus;
00070 
00072           readonly attribute Status prefStatus;
00073 
00075           readonly attribute common::DateTime effStatusDate;
00076 
00081           readonly attribute common::DateTime prefStatusDate;
00082 
00084           readonly attribute common::Account salesLedger;
00085 
00087           readonly attribute common::Account purchaseLedger;
00088 
00090           readonly attribute common::Utf8String accNo;
00091 
00103           StatusValue requestedStatus(
00104               in common::DateTime ts
00105           ) raises (common::OsbCorbaException);
00106 
00119           StatusHistory statusHistory(
00120               in common::DateTime from,
00121               in common::DateTime to,
00122               in boolean          noWait
00123           ) raises (common::OsbCorbaException);
00124 
00133           cadmin::addr::AddressWriter getAddress
00134               (in cadmin::addr::AddrTypeId type
00135           ) raises (common::OsbCorbaException);
00136 
00138           cadmin::addr::AddressSeq getAddresses()
00139               raises (common::OsbCorbaException);
00140 
00158           cadmin::addr::AddressWriter getNewAddress(
00159               in cadmin::addr::AddrTypeIdSeq types
00160           ) raises (common::OsbCorbaException);
00161 
00176           boolean removeAddress(
00177               in cadmin::addr::AddrTypeId type,
00178               in boolean noWait,
00179               out common::CfgErrorSeq errors
00180           ) raises (common::OsbCorbaException);
00181 
00202           boolean linkAddressType(
00203               in cadmin::addr::AddrTypeId type,
00204               in cadmin::addr::AddrTypeId newType,
00205               in boolean noWait
00206           ) raises (common::OsbCorbaException);
00207 
00225           boolean unlinkAddressType(
00226               in cadmin::addr::AddrTypeId type,
00227               in boolean noWait
00228           ) raises (common::OsbCorbaException);
00229 
00234           cadmin::contract::ContractIdSeq getContractIds();
00235 
00251           boolean addChild(
00252               in AssociateId id,
00253               in boolean     noWait
00254           ) raises (common::OsbCorbaException);
00255 
00271           boolean removeChild(
00272               in AssociateId id,
00273               in boolean     noWait
00274           ) raises (common::OsbCorbaException);
00275 
00277           void setTaxKey(in common::TaxKeyId tId);
00278 
00280           void setSalesLedger(in common::Account salesLedger);
00281 
00283           void setPurchaseLedger(in common::Account purchaseLedger);
00284 
00286           void setName(in common::Utf8String name);
00287 
00289           void setAccountNo(in common::Utf8String accNo);
00290 
00305           AssociateId create(
00306               in boolean noWait
00307           ) raises (common::OsbCorbaException);
00308 
00310           boolean commitChanges(
00311               in boolean noWait
00312           ) raises(common::OsbCorbaException);
00313 
00315 
00316 
00329           boolean changeStatus(
00330               inout StatusRequest       status,
00331               in    boolean             noWait,
00332               out   common::CfgErrorSeq errors
00333           ) raises (common::OsbCorbaException);
00335       };                          // interface AssociateWriter
00336 
00338       interface CustomerWriter : AssociateWriter {};
00339     };             // module assoc
00340   };               // module cadmin
00341 };
00342 #endif                                  // #ifndef ASSOCIATE_IDL

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