com.sap.mdm.commands
Class Passport

java.lang.Object
  extended bycom.sap.mdm.commands.Passport

public class Passport
extends Object

A passport contains the passport identifier and a trace level. A passport is use for identifying specific tracing produced by the server. Passport can also be use for tying server-side tracing with client-side tracing.

The order of the trace levels are DEBUG, FLOW, INFO, WARNING and ERROR, with DEBUG including all trace levels.

Since:
7.1
See Also:
AbstractCommandBase

Field Summary
static int DEBUG
           
static int ERROR
           
static int FLOW
           
static int INFO
           
static int WARNING
           
 
Constructor Summary
Passport()
          Empty constructor.
Passport(int traceLevel)
          Constructor with the specified trace level.
Passport(int traceLevel, String passportIdentifier)
          Constructor with both trace level and passport identifier.
Passport(String passportIdentifier)
          Constructor with the specified passport identifier.
 
Method Summary
 String getpassportIdentifier()
          Returns the passport identifier.
 int getTraceLevel()
          Returns the trace level.
 boolean hasPassportIdentifier()
          Returns whether a passport identifier had been specified.
 boolean hasTraceLevel()
          Returns whether a trace level had been specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

FLOW

public static final int FLOW
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values
Constructor Detail

Passport

public Passport()
Empty constructor.


Passport

public Passport(int traceLevel)
Constructor with the specified trace level.

Parameters:
traceLevel - a trace level

Passport

public Passport(String passportIdentifier)
Constructor with the specified passport identifier.

Parameters:
passportIdentifier - a passport identifier

Passport

public Passport(int traceLevel,
                String passportIdentifier)
Constructor with both trace level and passport identifier.

Parameters:
traceLevel - a trace level
passportIdentifier - a passport identifier
Method Detail

hasTraceLevel

public boolean hasTraceLevel()
Returns whether a trace level had been specified.

Returns:
true if a trace level had been specified, otherwise false

getTraceLevel

public int getTraceLevel()
Returns the trace level.

Returns:
a trace level

hasPassportIdentifier

public boolean hasPassportIdentifier()
Returns whether a passport identifier had been specified.

Returns:
true if a passport identifier has been specified, otherwise false

getpassportIdentifier

public String getpassportIdentifier()
Returns the passport identifier.

Returns:
a passport identifier


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.