org.gcube.messaging.accounting.portal.logparser.entry
Class LogEntry

java.lang.Object
  extended by org.gcube.messaging.accounting.portal.logparser.entry.LogEntry
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AdvancedSearchEntry, AISEntry, AnnotationEntry, AquamapsEntry, BrowseCollectionEntry, GenericEntry, GoogleSearchEntry, HLEntry, LoginEntry, QuickSearchEntry, ReportEntry, RetrieveContentEntry, SimpleSearchEntry, TSEntry, WarEntry, WebAppEntry, WorkflowDocumentEntry

public abstract class LogEntry
extends java.lang.Object
implements java.io.Serializable

Author:
Andrea Manzi(CERN)
See Also:
Serialized Form

Constructor Summary
LogEntry()
           
 
Method Summary
abstract  org.gcube.messaging.common.messages.records.BaseRecord fillRecord()
           
 java.util.Date getDate()
          get the date
 AccessLogParser.EntryType getEntryType()
           
 Message getMessage()
          get the message part of the log
 org.gcube.messaging.common.messages.records.BaseRecord getRecord()
          get the Associated Record
 java.lang.String getUser()
          get the user part
 java.lang.String getVre()
          get the VRE
 void parse()
          parse the line of log
 void setDate(java.util.Date date)
          set the date
 void setEntryType(AccessLogParser.EntryType entryType)
           
 void setMessage(Message message)
          set the message part of the log
 void setRecordName(org.gcube.messaging.common.messages.records.BaseRecord record)
          Set the Associtated record
 void setUser(java.lang.String user)
          set the user
 void setVre(java.lang.String vre)
          set the VRE
 java.lang.String toString()
          string representation of the log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry()
Method Detail

parse

public void parse()
           throws java.text.ParseException
parse the line of log

Throws:
java.text.ParseException - ParseException

getDate

public java.util.Date getDate()
get the date

Returns:
the date

setDate

public void setDate(java.util.Date date)
set the date

Parameters:
date - the date

getRecord

public org.gcube.messaging.common.messages.records.BaseRecord getRecord()
get the Associated Record

Returns:
the record

setRecordName

public void setRecordName(org.gcube.messaging.common.messages.records.BaseRecord record)
Set the Associtated record

Parameters:
record -

getMessage

public Message getMessage()
get the message part of the log

Returns:
the message part

setMessage

public void setMessage(Message message)
set the message part of the log

Parameters:
message - the message

getUser

public java.lang.String getUser()
get the user part

Returns:
the user

setUser

public void setUser(java.lang.String user)
set the user

Parameters:
user - the user

getVre

public java.lang.String getVre()
get the VRE

Returns:
the VRE

setVre

public void setVre(java.lang.String vre)
set the VRE

Parameters:
vre - the VRE

toString

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

Overrides:
toString in class java.lang.Object

getEntryType

public AccessLogParser.EntryType getEntryType()

setEntryType

public void setEntryType(AccessLogParser.EntryType entryType)

fillRecord

public abstract org.gcube.messaging.common.messages.records.BaseRecord fillRecord()