ITrace.Indent, ITrace.Kind| Modifier and Type | Field and Description |
|---|---|
protected String |
m_spaces |
protected Stack<oracle.stellent.ridc.convenience.usersecurity.impl.Trace.StackObject> |
m_stack |
protected List<String> |
m_trace |
| Constructor and Description |
|---|
Trace()
Create a trace object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTrace(ITrace.Kind kind, String message)
Add general trace information message
|
void |
addTraceEndSection()
End tracing section
|
void |
addTraceEndSection(boolean isAdmin, IUserSecurityCache.AdminType type)
End tracing section replacing Kind field with flag information
|
void |
addTraceEndSection(int access)
End tracing section replacing Kind field with access information
|
void |
addTraceEndSection(String message)
End tracing section
|
void |
addTraceStartSection(ITrace.Kind kind, String message)
Add information and indent.
|
void |
clear()
clear all messages
|
String |
formatTrace()
Format the trace information in this object into a string, then clear the information
|
static String |
getAccessString(int accessLevel)
format the access level
|
static String |
getAccessString(String accessLevel)
format the access string from a string that is a number 0-15
|
static String |
getAdminString(boolean isAdmin, IUserSecurityCache.AdminType type)
format the isAdmin level
|
static String |
getDocTraceId(DataObject info)
Used by trace and tests to get some sort of id for this document.
|
protected Stack<oracle.stellent.ridc.convenience.usersecurity.impl.Trace.StackObject> m_stack
protected final String m_spaces
public void addTrace(ITrace.Kind kind, String message)
public void addTraceStartSection(ITrace.Kind kind, String message)
addTraceStartSection in interface ITracekind -message -public void addTraceEndSection(int access)
addTraceEndSection in interface ITraceaccess - value of access level
public void addTraceEndSection(boolean isAdmin,
IUserSecurityCache.AdminType type)
addTraceEndSection in interface ITraceisAdmin - value of flagtype - type of admin flagpublic void addTraceEndSection()
addTraceEndSection in interface ITracepublic void addTraceEndSection(String message)
message - if null, use message from start of sectionpublic String formatTrace()
formatTrace in interface ITracepublic static String getDocTraceId(DataObject info)
info - DocInfopublic static String getAccessString(int accessLevel)
accessLevel -public static String getAdminString(boolean isAdmin, IUserSecurityCache.AdminType type)
isAdmin -type -