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 booleanbooleanorg.modelmapper.ModelMapperfromMe()Class<?>getColor()The jpa primary key.getName()com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTrackingRetrieve the tracking information from the entityinthashCode()booleanvoidsetApplication(String application) voidvoidsetContextId(String contextId) The jpa primary key.voidsetDescription(String description) voidvoidsetTemporarySandbox(boolean isTemporarySandbox) voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) Retrieve the tracking information from the entityorg.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStatesMethods 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:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplayin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getContextId
The jpa primary key.- Specified by:
getContextIdin 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:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- Tracking information
-
setContextId
The jpa primary key.- Specified by:
setContextIdin 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:
setTrackingin 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()
-