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

java.lang.Object
  extended by org.gcube.messaging.accounting.portal.logparser.entry.Message

public class Message
extends java.lang.Object

Author:
Andrea Manzi(CERN)

Constructor Summary
Message(java.lang.String token, AccessLogParser.EntryType type)
          Message constructor
 
Method Summary
 java.util.ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> getAddresseeUsers()
           
 java.lang.String[] getAisentry()
           
 java.lang.String[] getAnnotationEntry()
           
 java.lang.String[] getAquamapsEntry()
           
 java.lang.String getBrowseBy()
          get browse by
 java.util.HashMap<java.lang.String,java.lang.String> getCollections()
          get teh collections map
 java.lang.String[] getContent()
          get the content info
 java.lang.String[] getHlentry()
           
 java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> getListApplication()
           
 java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> getListGHN()
           
 java.lang.String getMessage()
          get the message
static java.lang.String getMessagetokensseparator()
           
 java.lang.String getOperator()
          get the operator
 java.lang.String[] getReportEntry()
           
 java.lang.String getTerm()
          get the term
 java.util.HashMap<java.lang.String,java.lang.String> getTerms()
          get the terms map
 java.lang.String getTstitle()
           
 AccessLogParser.EntryType getType()
          get the type
 java.lang.String[] getWarEntry()
           
 java.lang.String[] getWebAppEntry()
           
 java.lang.String[] getWorkflowDocumentsEntry()
           
 boolean isDistinct()
          set the isDistinct
 void parse()
          parse the message line of log
 void setAddresseeUsers(java.util.ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> addresseeUsers)
           
 void setAisentry(java.lang.String[] aisentry)
           
 void setAnnotationEntry(java.lang.String[] annotationEntry)
           
 void setAquamapsEntry(java.lang.String[] aquamapsEntry)
           
 void setBrowseBy(java.lang.String browseBy)
          set the browse by
 void setCollections(java.util.HashMap<java.lang.String,java.lang.String> collections)
          set the collections map
 void setContent(java.lang.String[] content)
          set the content info
 void setDistinct(boolean isDistinct)
          set the isDistinct
 void setHlentry(java.lang.String[] hlentry)
           
 void setListApplication(java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> listApplication)
           
 void setListGHN(java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> listGHN)
           
 void setMessage(java.lang.String message)
          set teh message
 void setOperator(java.lang.String operator)
          set the operator
 void setReportEntry(java.lang.String[] reportEntry)
           
 void setTerm(java.lang.String term)
          set the term
 void setTerms(java.util.HashMap<java.lang.String,java.lang.String> terms)
          set the terms map
 void setTstitle(java.lang.String tstitle)
           
 void setType(AccessLogParser.EntryType type)
          set the type
 void setWarEntry(java.lang.String[] warEntry)
           
 void setWebAppEntry(java.lang.String[] webAppEntry)
           
 void setWorkflowDocumentsEntry(java.lang.String[] workflowDocumentsEntry)
           
 java.lang.String toString()
          get the message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message(java.lang.String token,
               AccessLogParser.EntryType type)
Message constructor

Parameters:
token - token
type - type
Method Detail

parse

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

Throws:
java.text.ParseException - ParseException

getAquamapsEntry

public java.lang.String[] getAquamapsEntry()

setAquamapsEntry

public void setAquamapsEntry(java.lang.String[] aquamapsEntry)

getReportEntry

public java.lang.String[] getReportEntry()

setReportEntry

public void setReportEntry(java.lang.String[] reportEntry)

getWorkflowDocumentsEntry

public java.lang.String[] getWorkflowDocumentsEntry()

setWorkflowDocumentsEntry

public void setWorkflowDocumentsEntry(java.lang.String[] workflowDocumentsEntry)

toString

public java.lang.String toString()
get the message

Overrides:
toString in class java.lang.Object

getCollections

public java.util.HashMap<java.lang.String,java.lang.String> getCollections()
get teh collections map

Returns:
the collections map

setCollections

public void setCollections(java.util.HashMap<java.lang.String,java.lang.String> collections)
set the collections map

Parameters:
collections - the collections map

getMessage

public java.lang.String getMessage()
get the message

Returns:
the message

setMessage

public void setMessage(java.lang.String message)
set teh message

Parameters:
message - the message

getTerm

public java.lang.String getTerm()
get the term

Returns:
the term

setTerm

public void setTerm(java.lang.String term)
set the term

Parameters:
term - the term

getTerms

public java.util.HashMap<java.lang.String,java.lang.String> getTerms()
get the terms map

Returns:
the terms map

setTerms

public void setTerms(java.util.HashMap<java.lang.String,java.lang.String> terms)
set the terms map

Parameters:
terms - the terms map

getType

public AccessLogParser.EntryType getType()
get the type

Returns:
the type

setType

public void setType(AccessLogParser.EntryType type)
set the type

Parameters:
type -

getBrowseBy

public java.lang.String getBrowseBy()
get browse by

Returns:
browse by

setBrowseBy

public void setBrowseBy(java.lang.String browseBy)
set the browse by

Parameters:
browseBy -

isDistinct

public boolean isDistinct()
set the isDistinct

Returns:

setDistinct

public void setDistinct(boolean isDistinct)
set the isDistinct

Parameters:
isDistinct - the parameter

getOperator

public java.lang.String getOperator()
get the operator

Returns:
the operator

setOperator

public void setOperator(java.lang.String operator)
set the operator

Parameters:
operator - the operator

getContent

public java.lang.String[] getContent()
get the content info

Returns:
the content info

setContent

public void setContent(java.lang.String[] content)
set the content info

Parameters:
content - the conte

getHlentry

public java.lang.String[] getHlentry()
Returns:
hlentry

setHlentry

public void setHlentry(java.lang.String[] hlentry)
Parameters:
hlentry -

getAddresseeUsers

public java.util.ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> getAddresseeUsers()
Returns:

setAddresseeUsers

public void setAddresseeUsers(java.util.ArrayList<org.gcube.messaging.common.messages.records.HLRecord.GCUBEUser> addresseeUsers)
Parameters:
addresseeUsers -

getMessagetokensseparator

public static java.lang.String getMessagetokensseparator()
Returns:

getAisentry

public java.lang.String[] getAisentry()

setAisentry

public void setAisentry(java.lang.String[] aisentry)

getTstitle

public java.lang.String getTstitle()

setTstitle

public void setTstitle(java.lang.String tstitle)

getAnnotationEntry

public java.lang.String[] getAnnotationEntry()

setAnnotationEntry

public void setAnnotationEntry(java.lang.String[] annotationEntry)

getWebAppEntry

public java.lang.String[] getWebAppEntry()

setWebAppEntry

public void setWebAppEntry(java.lang.String[] webAppEntry)

getListGHN

public java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> getListGHN()

setListGHN

public void setListGHN(java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.GHN> listGHN)

getListApplication

public java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> getListApplication()

setListApplication

public void setListApplication(java.util.ArrayList<org.gcube.messaging.common.messages.records.WebAppRecord.WebApplication> listApplication)

getWarEntry

public java.lang.String[] getWarEntry()

setWarEntry

public void setWarEntry(java.lang.String[] warEntry)