Class Trace
java.lang.Object
oracle.stellent.ridc.convenience.usersecurity.impl.Trace
- All Implemented Interfaces:
ITrace
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.stellent.ridc.convenience.usersecurity.ITrace
ITrace.Indent, ITrace.Kind -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrace(ITrace.Kind kind, String message) Add general trace information messagevoidEnd tracing sectionvoidaddTraceEndSection(boolean isAdmin, IUserSecurityCache.AdminType type) End tracing section replacing Kind field with flag informationvoidaddTraceEndSection(int access) End tracing section replacing Kind field with access informationvoidaddTraceEndSection(String message) End tracing sectionvoidaddTraceStartSection(ITrace.Kind kind, String message) Add information and indent.voidclear()clear all messagesFormat the trace information in this object into a string, then clear the informationstatic StringgetAccessString(int accessLevel) format the access levelstatic StringgetAccessString(String accessLevel) format the access string from a string that is a number 0-15static StringgetAdminString(boolean isAdmin, IUserSecurityCache.AdminType type) format the isAdmin levelstatic StringgetDocTraceId(DataObject info) Used by trace and tests to get some sort of id for this document.
-
Field Details
-
m_trace
-
m_stack
-
m_spaces
- See Also:
-
-
Constructor Details
-
Trace
public Trace()Create a trace object.
-
-
Method Details
-
addTrace
Add general trace information message -
addTraceStartSection
Add information and indent. Message is placed in an internal stack for use during unindent. Usually used at beginning of method, or larger logical block of code.- Specified by:
addTraceStartSectionin interfaceITrace- Parameters:
kind-message-
-
addTraceEndSection
public void addTraceEndSection(int access) End tracing section replacing Kind field with access information- Specified by:
addTraceEndSectionin interfaceITrace- Parameters:
access- value of access level
-
addTraceEndSection
End tracing section replacing Kind field with flag information- Specified by:
addTraceEndSectionin interfaceITrace- Parameters:
isAdmin- value of flagtype- type of admin flag
-
addTraceEndSection
public void addTraceEndSection()End tracing section- Specified by:
addTraceEndSectionin interfaceITrace
-
addTraceEndSection
End tracing section- Parameters:
message- if null, use message from start of section
-
clear
public void clear()clear all messages -
formatTrace
Format the trace information in this object into a string, then clear the information- Specified by:
formatTracein interfaceITrace- Returns:
- formatted trace information
-
getDocTraceId
Used by trace and tests to get some sort of id for this document. Only useful in tracing and tests.- Parameters:
info- DocInfo- Returns:
- Some sort of "name" or "id" for this document
-
getAccessString
format the access level- Parameters:
accessLevel-- Returns:
-
getAdminString
format the isAdmin level- Parameters:
isAdmin-type-- Returns:
-
getAccessString
format the access string from a string that is a number 0-15- Parameters:
accessLevel-- Returns:
-