com.konakartadmin.app
Class AdminAudit

java.lang.Object
  extended by com.konakartadmin.app.AdminAudit
All Implemented Interfaces:
AdminObjectIf

public class AdminAudit
extends java.lang.Object
implements AdminObjectIf

Audit object for the Admin App


Field Summary
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 Summary
AdminAudit()
          Constructor
AdminAudit(int userId, int action, java.lang.String apiMethodName, int objectId, java.lang.String objectToString)
          Constructor
AdminAudit(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Audit object from a Record object
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

READ_ACTION

public static final int READ_ACTION
Save audit data for a read

See Also:
Constant Field Values

EDIT_ACTION

public static final int EDIT_ACTION
Save audit data for an edit

See Also:
Constant Field Values

INSERT_ACTION

public static final int INSERT_ACTION
Save audit data for an insert

See Also:
Constant Field Values

DELETE_ACTION

public static final int DELETE_ACTION
Save audit data for a delete

See Also:
Constant Field Values

id

private int id
id


userId

private int userId
userId


action

private int action
action. May take the values:


apiMethodName

private java.lang.String apiMethodName
apiMethodName. The name of the API method called.


objectId

private int objectId
objectId. The id of the object being modified.


objectToString

private java.lang.String objectToString
objectToString. The toString() representation of the object being modified.


dateAdded

private java.util.Date dateAdded
dateAdded

Constructor Detail

AdminAudit

public AdminAudit(int userId,
                  int action,
                  java.lang.String apiMethodName,
                  int objectId,
                  java.lang.String objectToString)
Constructor

Parameters:
userId -
action -
apiMethodName -
objectId -
objectToString -

AdminAudit

public AdminAudit()
Constructor


AdminAudit

public AdminAudit(com.workingdogs.village.Record vr,
                  org.apache.torque.util.Criteria c)
           throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Audit object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface AdminObjectIf
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Audit object.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing selected attributes of the Audit object.

getAction

public int getAction()
Returns:
Returns the action.

setAction

public void setAction(int action)
Parameters:
action - The action to set.

getApiMethodName

public java.lang.String getApiMethodName()
Returns:
Returns the apiMethodName.

setApiMethodName

public void setApiMethodName(java.lang.String apiMethodName)
Parameters:
apiMethodName - The apiMethodName to set.

getDateAdded

public java.util.Date getDateAdded()
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Date dateAdded)
Parameters:
dateAdded - The dateAdded to set.

getId

public int getId()
Specified by:
getId in interface AdminObjectIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface AdminObjectIf
Parameters:
id - The id to set.

getObjectId

public int getObjectId()
Returns:
Returns the objectId.

setObjectId

public void setObjectId(int objectId)
Parameters:
objectId - The objectId to set.

getObjectToString

public java.lang.String getObjectToString()
Returns:
Returns the objectToString.

setObjectToString

public void setObjectToString(java.lang.String objectToString)
Parameters:
objectToString - The objectToString to set.

getUserId

public int getUserId()
Returns:
Returns the userId.

setUserId

public void setUserId(int userId)
Parameters:
userId - The userId to set.


Copyright © 2011 DS Data Systems UK Ltd.