ariba.util.log
Interface AuditLoggerMessage


public interface AuditLoggerMessage

ToDo: javadoc


Field Summary
static long IgnoreNameLongValue
          The various WithId methods in ariba.base.audit.AuditLogger return this if the underlying logger is not enabled, essentially this means a logical no-op has been performed.
static long InvalidNameLongValue
          The various WithId methods in ariba.base.audit.AuditLogger return this if the logging operation failed.
 
Method Summary
 List getArgs()
           
 Object getContextObject()
           
 String getDescription()
           
 Object getEffectiveUserId()
           
 long getId()
           
 String getIPAddress()
           
 int getLevel()
          The (log4j) level of the message.
 int getMessageId()
           
 String getNodeName()
           
 int getNumArgs()
           
 int getRealmId()
           
 Object getRealUserId()
           
 String getResourceName()
           
 String getStringFromArg(Object arg)
          Convenient method to obtain a string from the specified object.
 Throwable getThrowable()
           
 void setArgs(List args)
           
 void setContextObject(Object contextObject)
           
 void setId(long value)
          set the Id field.
 void setLevelAndThrowable(int level, Throwable t)
           
 void setMessageId(int messageId)
           
 void setResourceName(String name)
           
 

Field Detail

InvalidNameLongValue

static final long InvalidNameLongValue
The various WithId methods in ariba.base.audit.AuditLogger return this if the logging operation failed.

See Also:
Constant Field Values

IgnoreNameLongValue

static final long IgnoreNameLongValue
The various WithId methods in ariba.base.audit.AuditLogger return this if the underlying logger is not enabled, essentially this means a logical no-op has been performed.

See Also:
Constant Field Values
Method Detail

getStringFromArg

String getStringFromArg(Object arg)
Convenient method to obtain a string from the specified object.

Parameters:
arg - the specified object
Returns:
the string representing the object.

setId

void setId(long value)
set the Id field. This setter method is provided because the Id which is unique may not be known at the time of instantiation of this class. The inteneded use is that this method be called once in one thread (where the instance is created). Because of this, this is not synchronized

Parameters:
value - the value to set

getId

long getId()

getRealUserId

Object getRealUserId()

getEffectiveUserId

Object getEffectiveUserId()

getNodeName

String getNodeName()

getIPAddress

String getIPAddress()

getRealmId

int getRealmId()

setContextObject

void setContextObject(Object contextObject)

getContextObject

Object getContextObject()

getLevel

int getLevel()
The (log4j) level of the message.


setMessageId

void setMessageId(int messageId)

getMessageId

int getMessageId()

setResourceName

void setResourceName(String name)

getResourceName

String getResourceName()

setArgs

void setArgs(List args)

getArgs

List getArgs()

getNumArgs

int getNumArgs()

setLevelAndThrowable

void setLevelAndThrowable(int level,
                          Throwable t)

getThrowable

Throwable getThrowable()

getDescription

String getDescription()


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.