atg.reporting.datacollection
Class ContentViewedLogEntry

java.lang.Object
  extended by atg.reporting.datacollection.LogEntry
      extended by atg.reporting.datacollection.ContentViewedLogEntry

public class ContentViewedLogEntry
extends atg.reporting.datacollection.LogEntry


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ContentViewedLogEntry(java.lang.Long pId, long pTimestamp, java.lang.Long pRequestId, java.lang.String pContentId, boolean pMember)
          Constructs a ContentViewedLogEntry
ContentViewedLogEntry(java.lang.Long pId, java.lang.Long pRequestId, java.lang.String pContentId, boolean pMember)
          Constructs a ContentViewedLogEntry and time stamps it with the current time.
 
Method Summary
 java.lang.String getContentId()
          Returns property ContentId
 int getMemberAsDBValue()
          Returns property the value of the property member as a useable value in a database.
 java.lang.Long getRequestId()
          Returns property RequestId
 boolean isMember()
          Returns property Member
 void setContentId(java.lang.String pContentId)
          Sets property ContentId
 void setMember(boolean pMember)
          Sets property Member
 void setRequestId(java.lang.Long pRequestId)
          Sets property RequestId
 java.lang.String toString()
          Returns String representation of the log entry
 
Methods inherited from class atg.reporting.datacollection.LogEntry
getId, getTimestamp, getTimestampAsDate, setId, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ContentViewedLogEntry

public ContentViewedLogEntry(java.lang.Long pId,
                             long pTimestamp,
                             java.lang.Long pRequestId,
                             java.lang.String pContentId,
                             boolean pMember)
Constructs a ContentViewedLogEntry

Parameters:
pId - the sql table id of the event
pTimestamp - the time of the event
pRequestId - the id of the request during which this piece of content was viewed
pContentId - the id of the content requested

ContentViewedLogEntry

public ContentViewedLogEntry(java.lang.Long pId,
                             java.lang.Long pRequestId,
                             java.lang.String pContentId,
                             boolean pMember)
Constructs a ContentViewedLogEntry and time stamps it with the current time.

Parameters:
pId - the sql table id of the event
pSessionId - the dynamo session id
pRequestId - the id of the request during which this piece of content was viewed
pContentId - the id of the content requested
Method Detail

setRequestId

public void setRequestId(java.lang.Long pRequestId)
Sets property RequestId


getRequestId

public java.lang.Long getRequestId()
Returns property RequestId


setContentId

public void setContentId(java.lang.String pContentId)
Sets property ContentId


getContentId

public java.lang.String getContentId()
Returns property ContentId


setMember

public void setMember(boolean pMember)
Sets property Member


isMember

public boolean isMember()
Returns property Member


getMemberAsDBValue

public int getMemberAsDBValue()
Returns property the value of the property member as a useable value in a database.

Returns:
1 if property member is true, otherwise 0

toString

public java.lang.String toString()
Returns String representation of the log entry

Overrides:
toString in class atg.reporting.datacollection.LogEntry