Class Sandbox
java.lang.Object
com.broadleafcommerce.sandbox.domain.Sandbox
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class Sandbox
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
TODO what __is__ a sandbox Business domain representing a configured sandbox. Sandboxable
entities (see
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.- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The ID of the owning application.getColor()
The color used to mark the sandbox in the admin user interface.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.A short description of the purpose of the sandbox.getId()
The context id, which is a separate identifier from the database primary key.getName()
Name of this sandbox such as "Jon's sandbox" or "CMS Team 1's sandbox".The ID of the owning tenant.int
hashCode()
boolean
Whether or not the sandbox should be automatically removed by the system when all associatedChangeSummary
instances are reverted or deployed.void
setApplication
(String application) The ID of the owning application.void
The color used to mark the sandbox in the admin user interface.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDescription
(String description) A short description of the purpose of the sandbox.void
The context id, which is a separate identifier from the database primary key.void
Name of this sandbox such as "Jon's sandbox" or "CMS Team 1's sandbox".void
setTemporarySandbox
(boolean isTemporarySandbox) Whether or not the sandbox should be automatically removed by the system when all associatedChangeSummary
instances are reverted or deployed.void
The ID of the owning tenant.toString()
-
Constructor Details
-
Sandbox
public Sandbox()
-
-
Method Details
-
getId
The context id, which is a separate identifier from the database primary key. This may be auto generated, or may be explicitly provided upon entity creation.- Returns:
- Separate identifier from the database primary key
-
getName
Name of this sandbox such as "Jon's sandbox" or "CMS Team 1's sandbox".- Returns:
- the name of this sandbox
-
getColor
The color used to mark the sandbox in the admin user interface. Should be a hexidecimal representation. For example, #FFFFFF.- Returns:
- The color used to mark the sandbox in the admin user interface
-
getDescription
A short description of the purpose of the sandbox.- Returns:
- A short description of the purpose of the sandbox.
-
getApplication
The ID of the owning application.- Returns:
- The ID of the owning application
-
getTenant
The ID of the owning tenant.- Returns:
- The ID of the owning tenant
-
isTemporarySandbox
public boolean isTemporarySandbox()Whether or not the sandbox should be automatically removed by the system when all associatedChangeSummary
instances are reverted or deployed.- Returns:
- Whether or not the sandbox should be automatically removed
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context id, which is a separate identifier from the database primary key. This may be auto generated, or may be explicitly provided upon entity creation.- Parameters:
id
- Separate identifier from the database primary key
-
setName
Name of this sandbox such as "Jon's sandbox" or "CMS Team 1's sandbox".- Parameters:
name
- Name of this sandbox
-
setColor
The color used to mark the sandbox in the admin user interface. Should be a hexidecimal representation. For example, #FFFFFF.- Parameters:
color
- The color used to mark the sandbox in the admin user interface
-
setDescription
A short description of the purpose of the sandbox.- Parameters:
description
- A short description of the purpose of the sandbox.
-
setApplication
The ID of the owning application.- Parameters:
application
- The ID of the owning application
-
setTenant
The ID of the owning tenant.- Parameters:
tenant
- The ID of the owning tenant
-
setTemporarySandbox
public void setTemporarySandbox(boolean isTemporarySandbox) Whether or not the sandbox should be automatically removed by the system when all associatedChangeSummary
instances are reverted or deployed.- Parameters:
isTemporarySandbox
- Whether or not the sandbox should be automatically removed
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-