Package com.sapportals.connectors.sap.authorizationtrace

Provides interfaces and classes for starting and stopping the authorization trace in the R/3 system.

See:
          Description

Interface Summary
ISAPAuthTraceService Deprecated.  
 

Package com.sapportals.connectors.sap.authorizationtrace Description

Provides interfaces and classes for starting and stopping the authorization trace in the R/3 system.

Example for using the startAuthorizationTrace method:

                try
                {
                    ISAPAuthTraceService atService = (ISAPAuthTraceService)(PortalRuntime.getRuntimeResources().getService(ISAPAuthTraceService.KEY));
                    IConnectorGatewayService cgService = (IConnectorGatewayService)(PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY));
                    ConnectionProperties prop = new ConnectionProperties();
                    prop.setUser(m_request.getUser());
                    prop.setLocale(m_request.getLocale());
                    IConnection connection = cgService.getConnection(alias,prop);
                    atService.startAuthorizationTrace(connection,request);
                }
                catch(ExecutionException exp){}
                catch(ResourceException exp){}
                

Example for using the getTracedConnection method:

                try
                {
                    ISAPAuthTraceService atService = (ISAPAuthTraceService)(PortalRuntime.getRuntimeResources().getService(ISAPAuthTraceService.KEY));
                    IConnection connection = atService.getTracedConnection(alias,request);
                }
                catch(ResourceException exp){}
                catch(Exception exp){}
                



Copyright 2011 SAP AG Complete Copyright Notice