|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.LogRecord
Type.LOG rides again!
Wraps a LogRecord instance in a PersistentObject so the log record can be written to the Repository.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
LogRecord()
|
|
LogRecord(org.w3c.dom.Element e)
|
|
LogRecord(java.util.Hashtable event)
Constructor used by AuditEventHandler to convert AuditEvents over to a persistent object. |
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
protected void |
addSubclassElements(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
java.lang.String |
getAccountAttributesBlob()
Accounts attribute blob. |
java.lang.String |
getAccountId()
Get the resource which was associated with this record. |
java.lang.String |
getActionDbKey()
Action maps loosely to our com.waveset.authz.Right. |
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
java.util.Map |
getAuditableAttributes()
Get the attributes stored in the waveset.logattr table. |
java.lang.String |
getCanonicalDateTime()
|
java.lang.String |
getClient()
How (i.e., by what interface) did the subject request the action? |
java.lang.String |
getEventDateTime()
|
java.lang.String |
getFormattedTimeStamp()
|
java.lang.String |
getHashedText()
Returns the blob of text which is to be hashed for log record signing The format of this is not guaranteed to make sense. |
java.lang.String |
getMessage()
Get a raw string that is associated with this record. |
java.lang.String |
getObjectName()
Which object was affected? |
java.lang.String |
getObjectTypeDbKey()
What type of object was affected? When the record is coming in, all we have is the name of the type, so use the Type class and/or cache to resolve the db key. |
java.util.List |
getOrderedParameterList()
|
java.util.Map |
getOverflowAttributes()
Get the attributes stored in waveset.log.xml |
java.lang.String |
getOverflowAttributesXML()
|
java.util.HashMap |
getParameters()
"Expansion slots": other things the reporter recorded. |
java.lang.String |
getParameterValue(java.lang.String name)
|
java.lang.String |
getReasonKey()
Why was the requested action denied? Stored as a short code in the DB. |
java.lang.String |
getReasonMessage()
Get the message catalog key that is associated with the reason that this request failed. |
java.lang.String |
getResourceName()
Get the resource which was associated with this record. |
java.lang.String |
getRoleName()
Get the role which was associated with this record. |
java.lang.Long |
getSequenceNumber()
Get the sequence number. |
java.lang.String |
getSequenceNumberAsString()
Returns the sequence number as a string suitable for querying |
java.lang.String |
getServer()
|
java.lang.String |
getStatusDbKey()
Did the action succeed? |
java.lang.String |
getSubjectName()
Who acted? |
long |
getTimeStamp()
Gets the time at which this record was created. |
Type |
getType()
Return the type of this object. |
void |
listOperationalAttributes(java.util.List attrs)
Add to the specified list the "built-in" attributes that are queryable just because the IDM Repository needs them in order to operate. |
java.util.List |
listQueryableAttributes()
|
java.util.List |
listSummaryAttributes()
Returns the complete list of defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each). |
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
protected void |
parseSubclassElements(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer). |
void |
set(Attribute attr,
java.lang.String attrVal)
Used by the repository to stuff LOG_COLUMN_ATTRS into LogRecord. |
void |
setAccountAttributesBlob(java.lang.String blob)
|
void |
setAccountId(java.lang.String accountId)
|
void |
setActionDbKey(java.lang.String dbKey)
|
void |
setAuditableAttributes(java.util.Map map)
Set the attributes stored in the waveset.logattr table. |
void |
setCanonicalDateTime(java.lang.String canonicalDateTime)
|
void |
setClient(java.lang.String client)
|
void |
setMemberObjectGroupRefs(java.util.ArrayList list)
|
void |
setMessage(java.lang.String msg)
|
void |
setObjectName(java.lang.String name)
|
void |
setObjectTypeDbKey(java.lang.String dbKey)
Set the dbKey. |
void |
setOverflowAttributes(java.util.Map map)
Set the attributes stored in waveset.log.xml |
void |
setOverflowAttributesXML(java.lang.String xml)
|
void |
setParameters(java.util.HashMap map)
|
void |
setReasonDenied(java.lang.String reason)
|
void |
setReasonDeniedKey(java.lang.String reason)
|
void |
setResourceName(java.lang.String resource)
|
void |
setRoleName(java.lang.String role)
|
void |
setSequenceNumber(java.lang.Long sequenceNumber)
Set the sequence number. |
void |
setServer(java.lang.String server)
|
void |
setStatusDbKey(java.lang.String dbKey)
|
void |
setSubjectName(java.lang.String subject)
|
void |
setTimeStamp(long millis)
|
void |
setTimeStamp(java.lang.String ts)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public LogRecord()
public LogRecord(org.w3c.dom.Element e) throws WavesetException
public LogRecord(java.util.Hashtable event) throws WavesetException
Method Detail |
public java.lang.String getObjectTypeDbKey()
public void setObjectTypeDbKey(java.lang.String dbKey)
public java.lang.String getActionDbKey()
public void setActionDbKey(java.lang.String dbKey)
public java.lang.String getStatusDbKey()
public void setStatusDbKey(java.lang.String dbKey)
public java.lang.String getSubjectName()
public void setSubjectName(java.lang.String subject)
public long getTimeStamp()
public void setTimeStamp(java.lang.String ts) throws InvalidArgument
InvalidArgument
public void setTimeStamp(long millis)
public java.lang.String getFormattedTimeStamp()
public java.lang.String getCanonicalDateTime()
public void setCanonicalDateTime(java.lang.String canonicalDateTime)
public java.lang.String getObjectName()
public void setObjectName(java.lang.String name)
public java.lang.String getClient()
public void setClient(java.lang.String client)
public java.lang.String getServer()
public void setServer(java.lang.String server)
public void setReasonDeniedKey(java.lang.String reason)
public void setReasonDenied(java.lang.String reason)
public java.lang.String getReasonKey()
public java.lang.String getReasonMessage()
public java.lang.String getRoleName()
public void setRoleName(java.lang.String role)
public java.lang.String getResourceName()
public void setResourceName(java.lang.String resource)
public java.lang.String getAccountId()
public void setAccountId(java.lang.String accountId)
public java.lang.String getMessage()
public void setMessage(java.lang.String msg)
public java.lang.String getAccountAttributesBlob()
public void setAccountAttributesBlob(java.lang.String blob)
public java.util.Map getAuditableAttributes()
public void setAuditableAttributes(java.util.Map map)
public java.util.Map getOverflowAttributes()
public java.lang.String getOverflowAttributesXML()
public void setOverflowAttributesXML(java.lang.String xml) throws WavesetException
WavesetException
public void setOverflowAttributes(java.util.Map map)
public java.lang.Long getSequenceNumber()
public java.lang.String getSequenceNumberAsString()
public void setSequenceNumber(java.lang.Long sequenceNumber)
public java.util.HashMap getParameters()
public void setParameters(java.util.HashMap map)
public java.lang.String getParameterValue(java.lang.String name)
public java.util.List getOrderedParameterList()
public void setMemberObjectGroupRefs(java.util.ArrayList list) throws WavesetException
WavesetException
public void set(Attribute attr, java.lang.String attrVal) throws InvalidArgument, WavesetException
InvalidArgument
WavesetException
public Type getType()
PersistentObject
getType
in class PersistentObject
public java.lang.String getEventDateTime()
public java.util.List listSummaryAttributes()
PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.
listSummaryAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Constants.MAX_SUMMARY_STRING_LENGTH
,
PersistentObject.getSummaryString()
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as queryable attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listQueryableAttributes()
to ensure that the subclass includes queryable attributes
that are common to all PersistentObjects.
public void listOperationalAttributes(java.util.List attrs)
Overrides PersistentObject
because Type.LOG is special.
listOperationalAttributes
in class PersistentObject
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class PersistentObject
attrName
- - the (name of the) attribute for which to return values.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
public java.lang.String getHashedText() throws WavesetException
WavesetException
protected void addSubclassAttributes(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void addSubclassElements(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.
addSubclassElements
in class PersistentObject
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
protected void parseSubclassElements(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassElements
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |