public class AdminAudit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
action
action.
|
private java.lang.String |
apiMethodName
apiMethodName.
|
private java.util.Date |
dateAdded
dateAdded
|
static int |
DELETE_ACTION
Save audit data for a delete
|
static int |
EDIT_ACTION
Save audit data for an edit
|
private int |
id
id
|
static int |
INSERT_ACTION
Save audit data for an insert
|
private int |
objectId
objectId.
|
private java.lang.String |
objectToString
objectToString.
|
static int |
READ_ACTION
Save audit data for a read
|
private int |
userId
userId
|
Constructor and Description |
---|
AdminAudit()
Constructor
|
AdminAudit(int userId,
int action,
java.lang.String apiMethodName,
int objectId,
java.lang.String objectToString)
Constructor
|
AdminAudit(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the Audit object from a Record object
|
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
java.lang.String |
getApiMethodName() |
java.util.Date |
getDateAdded() |
int |
getId() |
int |
getObjectId() |
java.lang.String |
getObjectToString() |
int |
getUserId() |
void |
setAction(int action) |
void |
setApiMethodName(java.lang.String apiMethodName) |
void |
setDateAdded(java.util.Date dateAdded) |
void |
setId(int id) |
void |
setObjectId(int objectId) |
void |
setObjectToString(java.lang.String objectToString) |
void |
setUserId(int userId) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public static final int READ_ACTION
public static final int EDIT_ACTION
public static final int INSERT_ACTION
public static final int DELETE_ACTION
private int id
private int userId
private int action
private java.lang.String apiMethodName
private int objectId
private java.lang.String objectToString
private java.util.Date dateAdded
public AdminAudit(int userId, int action, java.lang.String apiMethodName, int objectId, java.lang.String objectToString)
userId
- the userIdaction
- the actionapiMethodName
- the apiMethodNameobjectId
- the objectIdobjectToString
- the objectToStringpublic AdminAudit()
public AdminAudit(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public int getAction()
public void setAction(int action)
action
- The action to set.public java.lang.String getApiMethodName()
public void setApiMethodName(java.lang.String apiMethodName)
apiMethodName
- The apiMethodName to set.public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public int getId()
public void setId(int id)
id
- The id to set.public int getObjectId()
public void setObjectId(int objectId)
objectId
- The objectId to set.public java.lang.String getObjectToString()
public void setObjectToString(java.lang.String objectToString)
objectToString
- The objectToString to set.public int getUserId()
public void setUserId(int userId)
userId
- The userId to set.Copyright © 2018 DS Data Systems UK Ltd.