Class FieldChange
java.lang.Object
com.broadleafcommerce.data.tracking.core.filtering.business.domain.FieldChange
- All Implemented Interfaces:
Serializable
Represents a field-level override across catalogs, or a field-level change in a sandbox version
of an entity.
- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The user that engaged the changeThe CRUD type for the change.The name of the field on the repository domain class instance that was changedgetLevel()
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change.A soft reference to the sandbox id.Friendly name for this sandboxgetStage()
Arbitrary labelling concept.When this field change occurred.int
hashCode()
void
The user that engaged the changevoid
setChangeType
(String changeType) The CRUD type for the change.void
setFieldName
(String fieldName) The name of the field on the repository domain class instance that was changedvoid
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change.void
setSandboxId
(String sandboxId) A soft reference to the sandbox id.void
setSandboxName
(String sandboxName) Friendly name for this sandboxvoid
Arbitrary labelling concept.void
setTimestamp
(Instant timestamp) When this field change occurred.toString()
-
Constructor Details
-
FieldChange
public FieldChange()
-
-
Method Details
-
getFieldName
The name of the field on the repository domain class instance that was changed- Returns:
- The name of the field that was changed
-
getSandboxId
A soft reference to the sandbox id. Sandboxes are maintained separately in the sandbox microservice.- Returns:
- The sandbox id
-
getSandboxName
Friendly name for this sandbox- Returns:
- Friendly name for this sandbox
-
getStage
Arbitrary labelling concept. Can be leveraged to identify entity state belonging to a step in a multi-step approval workflow.- Returns:
- Label describing position in a multi-step promotion flow
-
getAuthor
The user that engaged the change- Returns:
- The user that engaged the change
-
getChangeType
The CRUD type for the change. SeeOperationType
- Returns:
- The CRUD type for the change
-
getTimestamp
When this field change occurred. This is usually initialized asLocalDateTime.now()
when the originalFieldChange
tracking was created.- Returns:
- the timestamp of when the change occurred
-
getLevel
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change. SeeTrackingLevel
. This value is often used to determine the origin of a change after a rebase operation. A level equal toTrackingLevel.PRODUCTION
indicates the change is a production catalog override of the same entity from a higher catalog.- Returns:
- The current state of an change as it relates to sandbox or production status
-
setFieldName
The name of the field on the repository domain class instance that was changed- Parameters:
fieldName
- The name of the field that was changed
-
setSandboxId
A soft reference to the sandbox id. Sandboxes are maintained separately in the sandbox microservice.- Parameters:
sandboxId
- The sandbox id
-
setSandboxName
Friendly name for this sandbox- Parameters:
sandboxName
- Friendly name for this sandbox
-
setStage
Arbitrary labelling concept. Can be leveraged to identify entity state belonging to a step in a multi-step approval workflow.- Parameters:
stage
- Label describing position in a multi-step promotion flow
-
setAuthor
The user that engaged the change- Parameters:
owner
- The user that engaged the change
-
setChangeType
The CRUD type for the change. SeeOperationType
- Parameters:
operationType
- The CRUD type for the change
-
setTimestamp
When this field change occurred. This is usually initialized asLocalDateTime.now()
when the originalFieldChange
tracking was created.- Parameters:
timestamp
- when this field change happened
-
setLevel
Used to determine whether or not a change is a user sandbox change, a higher level sandbox change, or a production change. SeeTrackingLevel
. This value is often used to determine the origin of a change after a rebase operation. A level equal toTrackingLevel.PRODUCTION
indicates the change is a production catalog override of the same entity from a higher catalog.- Parameters:
level
- The current state of an change as it relates to sandbox or production status
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-