|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.waveset.object.AuditEvent
This class represents all of the records that are for logged for Audit Purposes. LogRecord extends HashTable. DB Table Name : waveset.Log Schema for this record is : id VARCHAR(50) NOT NULL // internal DB ID resourceName VARCHAR(128) accountName VARCHAR(50) objectType VARCHAR(50) objectName VARCHAR(128) action VARCHAR(50) actionDate CHAR(8) // YYYYMMDD actionTime CHAR(13) // HH:MM:SS.mmmm actionStatus VARCHAR(20) interface VARCHAR(20) server VARCHAR(128) subjectName VARCHAR(128) reason VARCHAR(128) msg VARCHAR(255) role VARCHAR(128) attrChanges BLOB // name=value list of attributes that were changed parm01label VARCHAR(50) parm01value VARCHAR(128) parm02label VARCHAR(50) parm02value VARCHAR(128) parm03label VARCHAR(50) parm03value VARCHAR(128) parm04label VARCHAR(50) parm04value VARCHAR(128) parm05label VARCHAR(50) parm05value VARCHAR(128)
Field Summary | |
static java.lang.String |
ACCOUNT_DISABLED
|
static java.lang.String |
ACCOUNT_LOCKED
|
static java.lang.String |
ACCOUNT_QUESTION_LOCKED
|
static java.lang.String |
code_id
|
static java.lang.String |
DATABASE_ACCESS_FAILED
|
static java.lang.String |
DUTY_CONFLICT
|
static java.lang.String |
ENTITLEMENT_SCAN
|
static java.lang.String |
INSUFFICIENT_PRIVILEGES
|
static java.lang.String |
INVALID_CREDENTIALS
|
static java.lang.String |
POLICY_VIOLATION
|
Constructor Summary | |
AuditEvent()
|
|
AuditEvent(PersistentObject po)
Create an audit records for a persistent object, this will set the events object Type, object name, and memberobject groups. |
|
AuditEvent(PersistentObject po,
Right right)
|
|
AuditEvent(PersistentObject po,
java.lang.String action)
Same as AuditEvent(persistentObject po ) but also allows caller to specify the actionType during object construction. |
|
AuditEvent(java.lang.String type,
Right right)
|
|
AuditEvent(java.lang.String objectType,
java.lang.String action)
|
|
AuditEvent(Type type,
Right right)
|
|
AuditEvent(Type type,
java.lang.String action)
|
Method Summary | |
void |
addAuditableAttributes(AccountAttributeType[] acctAttrs,
java.util.Map attrs)
Go through and figure out which of the reource attributes are marked auditable and add them to the event, if its in the list of user attributes. |
void |
addAuditableAttributes(AccountAttributeType[] acctAttrs,
WSAttributes userAttrs)
Deprecated. as of 4.1 see setAuditableAttributes(Map map). Extended auditing attributes should be stored in the logattr table. Go through and figure out which of the reource attributes are marked auditable and add them to the event, if its in the list of user attributes. |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to the parameter list. |
boolean |
belongsToObjectGroup()
Method called by the ReportLogHandler to make sure all records belong to at least one object group before being written. |
java.lang.String |
getAccountAttributesBlob()
Get the list of changed attributes. |
java.lang.String |
getAccountId()
|
java.lang.String |
getAction()
|
java.lang.Object |
getAttribute(Attribute key)
Gets an attribute that is saved as part of a log record. |
java.lang.Object |
getAttribute(java.lang.String key)
Gets an attribute that is saved as part of a log record. |
java.util.Map |
getAttributeMap()
Deprecated. as of 4.1 see getAuditableAttributes(). Extended auditing attributes should be stored in the logattr table. |
java.lang.String |
getAttributeValue(java.lang.String name)
Deprecated. as of 4.1 see getAuditableAttributes(). Get a value from the ACCOUNT_ATTRIBUTE_LIST. Used by LogRecord prior to 4.1. |
java.util.Map |
getAuditableAttributes()
Get the attributes that should be put into the waveset.logattr table. |
java.lang.String |
getErrorString()
|
java.lang.String |
getInterface()
|
java.util.ArrayList |
getMemberObjectGroupRefs()
|
java.lang.String |
getObjectName()
|
java.lang.String |
getObjectType()
|
java.util.Map |
getOverflowAttributes()
|
java.util.HashMap |
getParameterList()
Gets all of the parameters for this record. |
java.lang.String |
getParameterValue(java.lang.String name)
Gets a named parameter out of the parameter list. |
java.lang.String |
getReason()
|
static java.lang.String |
getReasonCode(java.lang.String reason)
|
static java.lang.String |
getReasonMsgKey(java.lang.String reason)
|
java.lang.String |
getResourceName()
|
java.lang.String |
getRoleName()
|
java.lang.String |
getServer()
|
java.lang.String |
getStatus()
|
java.lang.String |
getSubjectName()
|
long |
getTimeStamp()
Gets the time at which this record was created. |
void |
setAccountAttributesBlob(java.util.List attrObjs)
Take the list of attributes put them into name=value;; format. |
void |
setAccountAttributesBlob(java.util.Map attrs)
Deprecated. as of 4.0SP2. Use #setAccountAttributesBlob(Map,Map) instead; this supports before/after image auditing. |
void |
setAccountAttributesBlob(java.util.Map attrs,
java.util.Map oldAttrs)
Take the list of attributes put them into name=value;; format. |
void |
setAccountAttributesBlob(java.util.Map attrs,
java.util.Map oldAttrs,
java.util.Set secretSet)
|
void |
setAccountAttributesBlob(java.lang.String blob)
Store a list of attributes should be in name=value format. |
void |
setAccountAttributesBlob(WSAttributes attrs,
java.util.List secretList)
Deprecated. as of 4.0SP2. Use #setAccountAttributesBlob(WSAttributes,WSAttributes,List) instead; this supports before/after image auditing. |
void |
setAccountAttributesBlob(WSAttributes attrs,
WSAttributes oldAttrs,
java.util.List secretList)
Take the list of attributes put them into name=value;; format. |
void |
setAccountId(java.lang.String accountId)
Sets the accountId associated with this this audit event. |
void |
setAction(java.lang.String action)
|
void |
setAttribute(Attribute key,
java.lang.Object value)
Sets an attribute, saving it as part of an event record. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
|
void |
setAttributeMap(java.util.Map map)
Deprecated. as of 4.1 see setAuditableAttributes(Map map). Extended auditing attributes should be stored in the logattr table. |
void |
setAuditableAttributes(java.util.Map map)
Set the attributes that should be put in to the waveset.logattr table. |
void |
setErrorString(java.lang.String errorMessage)
Set an error message for this event |
void |
setErrorString(WavesetResult result)
Set an error message for this event, for convience it takes in a WavesetResult. |
void |
setInterface(java.lang.String interfaceName)
Sets the Login Application name for this audit event. |
void |
setMemberObjectGroupRefs(java.util.List ogRefs)
|
void |
setObjectName(PersistentObject po)
This is the object instance name. |
void |
setObjectName(java.lang.String objectName)
Sets the object name associated with this this audit event. |
void |
setObjectType(java.lang.String objectType)
Sets the object type mask associated with this this audit event. |
void |
setObjectType(Type type)
|
void |
setOverflowAttributes(java.util.Map obj)
|
void |
setParameterList(java.util.HashMap attrs)
Sets a records parameter list. |
void |
setPersistentObject(PersistentObject po)
Set this events persistent object, this will set the events object Type, object name, and memberobject groups. |
void |
setReason(java.lang.String reason)
Sets the Denied Reason for this audit event. |
void |
setResourceName(java.lang.String resource)
Sets the name of the resource associated with this this audit event. |
void |
setRole(Role role)
Sets the role name for this audit event. |
void |
setRoleName(java.lang.String roleName)
Sets the role name for this audit event. |
void |
setServer(java.lang.String server)
Sets the server name for this audit event. |
void |
setStatus(java.lang.String status)
|
void |
setSubjectInfo(Subject subject)
Extracts information from the subject object and sets it on the audit event. |
void |
setSubjectName(java.lang.String subjectName)
Sets the subject name for this audit event. |
void |
setTimeStamp(long time)
Sets the time at which this record was created. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String POLICY_VIOLATION
public static final java.lang.String INVALID_CREDENTIALS
public static final java.lang.String INSUFFICIENT_PRIVILEGES
public static final java.lang.String DATABASE_ACCESS_FAILED
public static final java.lang.String ACCOUNT_DISABLED
public static final java.lang.String ACCOUNT_LOCKED
public static final java.lang.String ACCOUNT_QUESTION_LOCKED
public static final java.lang.String DUTY_CONFLICT
public static final java.lang.String ENTITLEMENT_SCAN
Constructor Detail |
public AuditEvent()
public AuditEvent(java.lang.String objectType, java.lang.String action)
public AuditEvent(Type type, Right right)
public AuditEvent(Type type, java.lang.String action)
public AuditEvent(java.lang.String type, Right right)
public AuditEvent(PersistentObject po)
public AuditEvent(PersistentObject po, java.lang.String action)
public AuditEvent(PersistentObject po, Right right)
Method Detail |
public static java.lang.String getReasonCode(java.lang.String reason)
null
if not defined as a constant.
Note that this is NOT extensible (although LogKeyResolver could make it so).
public static java.lang.String getReasonMsgKey(java.lang.String reason)
null
if the specified reason
is not defined as a constant).
Note that this is NOT extensible (although LogKeyResolver could make it so).
public void setPersistentObject(PersistentObject po)
public void setRoleName(java.lang.String roleName)
roleName
- public void setRole(Role role)
role
- public java.lang.String getRoleName()
public void setServer(java.lang.String server)
server
- public java.lang.String getServer()
public void setReason(java.lang.String reason)
reason
- public java.lang.String getReason()
public void setErrorString(java.lang.String errorMessage)
errorMessage
- public void setErrorString(WavesetResult result)
result
- public java.lang.String getErrorString()
public void setInterface(java.lang.String interfaceName)
interfaceName
- public java.lang.String getInterface()
public void setSubjectInfo(Subject subject)
subject
- public void setSubjectName(java.lang.String subjectName)
subjectName
- public java.lang.String getSubjectName()
public void setAccountId(java.lang.String accountId)
accountId
- public java.lang.String getAccountId()
public void setResourceName(java.lang.String resource)
resource
- public java.lang.String getResourceName()
public void setObjectType(java.lang.String objectType)
objectType
- public void setObjectType(Type type)
public java.lang.String getObjectType()
public java.lang.String getAction()
public void setAction(java.lang.String action)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public void setObjectName(java.lang.String objectName)
objectName
- public void setObjectName(PersistentObject po)
po
- public java.lang.String getObjectName()
public void addParameter(java.lang.String name, java.lang.String value)
name
- parameter namevalue
- parameter valuepublic void setParameterList(java.util.HashMap attrs)
attrs
- public java.lang.String getParameterValue(java.lang.String name)
name
- public java.util.HashMap getParameterList()
public void setTimeStamp(long time)
time
- public long getTimeStamp()
public java.util.Map getAuditableAttributes()
public void setAuditableAttributes(java.util.Map map)
public java.util.Map getOverflowAttributes()
public void setOverflowAttributes(java.util.Map obj)
public void addAuditableAttributes(AccountAttributeType[] acctAttrs, java.util.Map attrs)
public void addAuditableAttributes(AccountAttributeType[] acctAttrs, WSAttributes userAttrs)
public void setAttributeMap(java.util.Map map)
public java.util.Map getAttributeMap()
public java.lang.String getAttributeValue(java.lang.String name)
public void setAccountAttributesBlob(WSAttributes attrs, WSAttributes oldAttrs, java.util.List secretList)
public void setAccountAttributesBlob(java.util.Map attrs, java.util.Map oldAttrs, java.util.Set secretSet)
public void setAccountAttributesBlob(WSAttributes attrs, java.util.List secretList)
public void setAccountAttributesBlob(java.lang.String blob)
public void setAccountAttributesBlob(java.util.Map attrs, java.util.Map oldAttrs)
public void setAccountAttributesBlob(java.util.Map attrs)
public void setAccountAttributesBlob(java.util.List attrObjs)
public java.lang.String getAccountAttributesBlob()
public void setMemberObjectGroupRefs(java.util.List ogRefs)
public java.util.ArrayList getMemberObjectGroupRefs()
public boolean belongsToObjectGroup()
public void setAttribute(Attribute key, java.lang.Object value)
key
- value
- public void setAttribute(java.lang.String key, java.lang.Object value)
public java.lang.Object getAttribute(Attribute key)
public java.lang.Object getAttribute(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |