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 booleanbooleanThe 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.ContextStateA subset ofTrackinginformation 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.inthashCode()booleanWhether or not the sandbox should be automatically removed by the system when all associatedChangeSummaryinstances are reverted or deployed.voidsetApplication(String application) The ID of the owning application.voidThe color used to mark the sandbox in the admin user interface.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetDescription(String description) A short description of the purpose of the sandbox.voidThe context id, which is a separate identifier from the database primary key.voidName of this sandbox such as "Jon's sandbox" or "CMS Team 1's sandbox".voidsetTemporarySandbox(boolean isTemporarySandbox) Whether or not the sandbox should be automatically removed by the system when all associatedChangeSummaryinstances are reverted or deployed.voidThe 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 associatedChangeSummaryinstances 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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 associatedChangeSummaryinstances 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-