File: eaf_n_cst_imloggingservice.sru
Size: 3422
Date: Tue, 22 Jan 2008 23:40:12 +0100
$PBExportHeader$eaf_n_cst_imloggingservice.sru
forward
global type eaf_n_cst_imloggingservice from n_cst_loggingservice
end type
end forward

global type eaf_n_cst_imloggingservice from n_cst_loggingservice
end type
global eaf_n_cst_imloggingservice eaf_n_cst_imloggingservice

type variables

end variables

forward prototypes
public function long propagatesettings (ref n_cst_dataset anv_target)
public function long propagatesettings (ref n_cst_contentproviderservicebroker anv_target)
end prototypes

public function long propagatesettings (ref n_cst_dataset anv_target);////////////////////////////////////////////////////////////////
// Description:
//    Propagate component log settings to service classes
// Note.
//    
// Revisions
//    3.0   - Initial version
// Arguments:
//    None
// Returns: 
//     1 - Success 
//    -1 - Failure 
////////////////////////////////////////////////////////////////
// Copyright © 2000 - 2007 Youngsoft, Inc.  All rights reserved.
// Any distribution of the Youngsoft, Inc. Enterprise Application Framework
// source code in whole or part by other than Youngsoft, Inc. is prohibited.
//////////////////////////////////////////////////////////////// 

constant string METHOD_NAME = "propagateSettings(REF n_cst_dataset anv_target) "

//Propagate Trace setting
if ib_trace then
   anv_target.setTrace( true )
end if

//Propagate Debug Setting
if ib_debug then
   anv_target.setDebug( true )
end if

//Propagate Warning setting
if ib_warning then
   anv_target.setWarning( true )
end if

//Propagate Detailed Debugging
if ib_detailed then
   anv_target.setDetailed( true )
end if

//Propagate Database Logging
if ib_usedatabaselogging then
   anv_target.setUseDatabaseLogging( true )
end if

//Propagate settings to dependent objects
return anv_target.propagateLogSettings()


end function

public function long propagatesettings (ref n_cst_contentproviderservicebroker anv_target);////////////////////////////////////////////////////////////////
// Description:
//    Propagate component log settings to service classes
// Note.
//    
// Revisions
//    3.0   - Initial version
// Arguments:
//    None
// Returns: 
//     1 - Success 
//    -1 - Failure 
////////////////////////////////////////////////////////////////
// Copyright © 2000 - 2007 Youngsoft, Inc.  All rights reserved.
// Any distribution of the Youngsoft, Inc. Enterprise Application Framework
// source code in whole or part by other than Youngsoft, Inc. is prohibited.
//////////////////////////////////////////////////////////////// 

constant string METHOD_NAME = "propagateSettings(REF n_cst_contentproviderservicebroker anv_target) "

//Propagate Trace setting
if ib_trace then
   anv_target.setTrace( true )
end if

//Propagate Debug Setting
if ib_debug then
   anv_target.setDebug( true )
end if

//Propagate Warning setting
if ib_warning then
   anv_target.setWarning( true )
end if

//Propagate Detailed Debugging
if ib_detailed then
   anv_target.setDetailed( true )
end if

//Propagate Database Logging
if ib_usedatabaselogging then
   anv_target.setUseDatabaseLogging( true )
end if

//Propagate settings to dependent objects
return anv_target.propagateLogSettings()

end function

on eaf_n_cst_imloggingservice.create
call super::create
end on

on eaf_n_cst_imloggingservice.destroy
call super::destroy
end on