Class JpaSandbox
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,Serializable
TrackableExtension
) declare a reference to this Sandbox in Tracking.getSandbox()
.
Entities created in a sandbox are driven by ContextRequest.getSandboxId()
, which is
generally set by the admin application. Any Tracking.getSandbox()
should map to one of
these sandboxes.
This repository domain type specifically maps to the Jpa repository domain.
This entity itself is application discriminated. As a result, ContextRequest
during CRUD
for this entity is required to have a valid ContextRequest.getApplicationId()
value in
order to discriminate during reads and keep the application discriminator value
(Tracking.getApplication()
) up-to-date during updates or creates.
As a Trackable, this entity is also aware of archival state. If archived
(Tracking.getArchived()
), a Sandbox entity will not be returned by fetch queries.
As a Trackable, this entity is aware of change audit information and will keep track of changes
made during creation or updates in the Tracking.getChangeDetails()
field. ChangeDetails
are not permanent on this entity and will be moved to a permanent audit store on an async
interval.
- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
getColor()
The jpa primary key.getName()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
Retrieve the tracking information from the entityint
hashCode()
boolean
void
setApplication
(String application) void
void
setContextId
(String contextId) The jpa primary key.void
setDescription
(String description) void
void
setTemporarySandbox
(boolean isTemporarySandbox) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entityorg.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaSandbox
public JpaSandbox()
-
-
Method Details
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getContextId
The jpa primary key.- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- The jpa primary key
-
getName
- See Also:
-
getColor
- See Also:
-
getDescription
- See Also:
-
getApplication
- See Also:
-
isTemporarySandbox
public boolean isTemporarySandbox() -
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()Retrieve the tracking information from the entity- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- Tracking information
-
setContextId
The jpa primary key.- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Parameters:
_id
- The jpa primary key
-
setName
- See Also:
-
setColor
- See Also:
-
setDescription
- See Also:
-
setApplication
- See Also:
-
setTemporarySandbox
public void setTemporarySandbox(boolean isTemporarySandbox) -
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entity- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
- Parameters:
tracking
- Tracking information
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-