com.tenduke.diagnostics
Class AbstractReportEntry

java.lang.Object
  extended by com.tenduke.types.AbstractBindableObject
      extended by com.tenduke.diagnostics.AbstractReportEntry
All Implemented Interfaces:
RelationObject, SerializableObject
Direct Known Subclasses:
EmailEvent, EndUserReportEntry, MobileMessageEvent, UpdateReportEntry, UserSession

public abstract class AbstractReportEntry
extends AbstractBindableObject

Base class for all report entries.

AbstractReportEntry and its subclasses use SerializableField to annotate fields that define a contract for accessing serializable fields by the annotated field names.

By convention, the annotated names are same as names of respective member attributes, for example a member attribute named "_entryTimestamp" (getEntryTimestamp() and setEntryTimestamp(java.util.Date)) has the respective SerializableField.name() set to "entryTimestamp".


Field Summary
 
Fields inherited from class com.tenduke.types.AbstractBindableObject
FIELD_LENGTH_SHORT_ID, FIELD_NAME_OBJECT_STATE_CHANGE, FIELD_NAME_REPLACES_OBJECT, FIELD_NAME_SHORT_ID, PERMISSION_ACTION_CREATE, PERMISSION_ACTION_DELETE, PERMISSION_ACTION_MODIFY, PERMISSION_ACTION_READ
 
Constructor Summary
protected AbstractReportEntry()
          Creates a new instance of AbstractReportEntry.
 
Method Summary
 java.lang.String getApplicationContext()
          Gets a contextual name applicable in application's domain (application that produces report entries)
 java.util.Date getCreated()
          Gets created time stamp of report entry.
 BindableObjectActor getCreatingActor()
          Gets the creating actor of the report entry.
 java.util.Date getEntryTimestamp()
          Gets report entry time stamp field value.
 java.util.UUID getId()
          Gets unique id of report entry.
 boolean getIsSystemInternal()
          Is the report entry about technical / system internal events.
 java.util.Date getModified()
          Gets modified time stamp of report entry.
 BindableObjectActor getModifyingActor()
          Gets the modifying actor of the report entry.
 void setApplicationContext(java.lang.String applicationContext)
          Sets a contextual name applicable in application's domain (application that produces report entries)
 void setCreated(java.util.Date date)
          Sets created time stamp of report entry.
 void setCreatingActor(BindableObjectActor rhs)
          Sets the creating actor of the report entry.
 void setEntryTimestamp(java.util.Date rhs)
          Sets report entry time stamp field value.
 void setId(java.lang.String id)
          Sets unique id of report entry.
 void setId(java.util.UUID uuid)
          Sets unique id of report entry.
 void setIsSystemInternal(boolean isSystemInternal)
          Setting the report entry to be about technical / system internal events.
 void setModified(java.util.Date date)
          Sets modified time stamp of report entry.
 void setModifyingActor(BindableObjectActor rhs)
          Sets the modifying actor of the report entry.
 java.lang.String toString()
          String serialization including base class and timestamp info from this class.
 
Methods inherited from class com.tenduke.types.AbstractBindableObject
addRelatedObject, addRelatedObject, addRelatedObject, addRelatedObject, addRelatedObjects, addRelatedObjects, addRelatedObjects, copyThis, getFirstObjectById, getGrantedObjectPermissionActions, getObjectCategoryId, getParent, getParentBindableType, getParentBindableTypeChain, getParentId, getParentNode, getParentType, getRelatedObjectList, getRelatedObjectList, getRelatedObjectLists, getRelatedObjectLists, getRelatedObjects, getRelatedObjects, getRelatedObjects, getRelatedObjects, getRelatedObjects, getRelatedObjects, getRelationAttributeObject, getRelationField, getRelationHandler, getRelationType, getReplaces, getShortId, getStateChange, hasRelatedObjects, hasRelatedObjects, resolveParentBindableType, resolveParentBindableTypeByTreeParent, setGrantedObjectPermissionActions, setObjectCategoryId, setParent, setParent, setParentBindableType, setParentNode, setRelatedObjectList, setRelatedObjects, setRelatedObjects, setRelatedObjects, setRelatedObjects, setRelatedObjects, setRelatedObjects, setRelationAttributeObject, setRelationHandler, setReplaces, setShortId, setStateChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReportEntry

protected AbstractReportEntry()
Creates a new instance of AbstractReportEntry.

Method Detail

getApplicationContext

public java.lang.String getApplicationContext()
Gets a contextual name applicable in application's domain (application that produces report entries)

Returns:
contextual name applicable in application's domain (application that produces report entries)

getCreated

public java.util.Date getCreated()
Gets created time stamp of report entry.

Specified by:
getCreated in class AbstractBindableObject
Returns:
Created date of report entry.

getCreatingActor

public BindableObjectActor getCreatingActor()
Gets the creating actor of the report entry.

Specified by:
getCreatingActor in class AbstractBindableObject
Returns:
Handle to creating actor for report entry.

getEntryTimestamp

public java.util.Date getEntryTimestamp()
Gets report entry time stamp field value.

Returns:
time stamp field value.

getId

public java.util.UUID getId()
Gets unique id of report entry.

Specified by:
getId in interface SerializableObject
Specified by:
getId in class AbstractBindableObject
Returns:
Unique id of report entry.

getIsSystemInternal

public boolean getIsSystemInternal()
Is the report entry about technical / system internal events.

Returns:
Value of isSystemInternal flag.

getModified

public java.util.Date getModified()
Gets modified time stamp of report entry.

Specified by:
getModified in class AbstractBindableObject
Returns:
Modified date of report entry.

getModifyingActor

public BindableObjectActor getModifyingActor()
Gets the modifying actor of the report entry.

Specified by:
getModifyingActor in class AbstractBindableObject
Returns:
Handle to modifying actor for report entry.

setApplicationContext

public void setApplicationContext(java.lang.String applicationContext)
Sets a contextual name applicable in application's domain (application that produces report entries)

Parameters:
applicationContext - a contextual name applicable in application's domain (application that produces report entries)

setCreated

public void setCreated(java.util.Date date)
Sets created time stamp of report entry.

Specified by:
setCreated in class AbstractBindableObject
Parameters:
date - Created date of report entry.

setCreatingActor

public void setCreatingActor(BindableObjectActor rhs)
Sets the creating actor of the report entry.

Specified by:
setCreatingActor in class AbstractBindableObject
Parameters:
rhs - Handle to creating actor to set for report entry.

setEntryTimestamp

public void setEntryTimestamp(java.util.Date rhs)
Sets report entry time stamp field value.

Parameters:
rhs - Time stamp field value.

setId

public void setId(java.lang.String id)
Sets unique id of report entry.

Parameters:
id - Unique id of report entry.

setId

public void setId(java.util.UUID uuid)
Sets unique id of report entry.

Specified by:
setId in interface SerializableObject
Specified by:
setId in class AbstractBindableObject
Parameters:
uuid - Unique id of report entry.

setIsSystemInternal

public void setIsSystemInternal(boolean isSystemInternal)
Setting the report entry to be about technical / system internal events.

Parameters:
isSystemInternal - Value for isSystemInternal flag.

setModified

public void setModified(java.util.Date date)
Sets modified time stamp of report entry.

Specified by:
setModified in class AbstractBindableObject
Parameters:
date - Modified date of report entry.

setModifyingActor

public void setModifyingActor(BindableObjectActor rhs)
Sets the modifying actor of the report entry.

Specified by:
setModifyingActor in class AbstractBindableObject
Parameters:
rhs - Handle to modifying actor to set for report entry.

toString

public java.lang.String toString()
String serialization including base class and timestamp info from this class.

Overrides:
toString in class java.lang.Object
Returns:
Simple string serialization of report entry.