Class AggregateTraceMessage
java.lang.Object
com.aquima.interactions.trace.impl.TraceMessageBase
com.aquima.interactions.trace.impl.AggregateTraceMessage
- All Implemented Interfaces:
ITraceMessage
,Serializable
This class defines the information that is logged about the actions taken in the AggregateDAO plugin. The information
includes the action performed, the date when it was performed, the user who performed the action and the profile
after the action was performed. (who, when, what)
- Author:
- V. Moldovan
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the column that contains the aggregate id.static final String
The name of the column that contains the aggregate version.static final String
The name of the column that contains date time at which the action is performed.static final String
The name of the column that contains the xml representation of the aggregate profile after the performed action.static final String
The name of the column that contains the id of the user who performed the change.static final String
The name of the column that contains the name of the user who performed the change.static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic AggregateTraceMessage
forCreate
(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when a new aggregate is created.static AggregateTraceMessage
forDelete
(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when an aggregate is deleted.static AggregateTraceMessage
forUpdate
(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when an aggregate is updated.Methods inherited from class com.aquima.interactions.trace.impl.TraceMessageBase
addProperty, getApplicationId, getMessageType, getProperties, getPropertyNames, getPropertyValue
-
Field Details
-
PROPERTY_DATE
The name of the column that contains date time at which the action is performed.- See Also:
-
PROPERTY_USER_ID
The name of the column that contains the id of the user who performed the change.- See Also:
-
PROPERTY_USER_NAME
The name of the column that contains the name of the user who performed the change.- See Also:
-
PROPERTY_PROFILE
The name of the column that contains the xml representation of the aggregate profile after the performed action.- See Also:
-
PROPERTY_AGGREGATE_ID
The name of the column that contains the aggregate id.- See Also:
-
PROPERTY_AGGREGATE_VERSION
The name of the column that contains the aggregate version.- See Also:
-
TYPE_CREATED
- See Also:
-
TYPE_UPDATED
- See Also:
-
TYPE_DELETED
- See Also:
-
-
Method Details
-
forCreate
public static AggregateTraceMessage forCreate(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when a new aggregate is created.- Parameters:
applicationId
- The application id.userId
- the user iduserName
- the user nameaggregateId
- the aggregate idversion
- the aggregate versiondata
- the aggregate data- Returns:
- A new trace message.
-
forDelete
public static AggregateTraceMessage forDelete(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when an aggregate is deleted.- Parameters:
applicationId
- The application id.userId
- the user iduserName
- the user nameaggregateId
- the aggregate idversion
- the aggregate versiondata
- the aggregate data- Returns:
- A new trace message.
-
forUpdate
public static AggregateTraceMessage forUpdate(String applicationId, String userId, String userName, Long aggregateId, long version, String data) This method returns a new Aggregate Trace Message when an aggregate is updated.- Parameters:
applicationId
- The application id.userId
- the user iduserName
- the user nameaggregateId
- the aggregate idversion
- the aggregate versiondata
- the aggregate data- Returns:
- A new trace message.
-