org.broadleafcommerce.common.sandbox.domain
Class SandBoxImpl

java.lang.Object
  extended by org.broadleafcommerce.common.sandbox.domain.SandBoxImpl
All Implemented Interfaces:
Serializable, AdminMainEntity, SandBox

@Entity
public class SandBoxImpl
extends Object
implements SandBox, AdminMainEntity

See Also:
Serialized Form

Field Summary
protected  Long author
           
protected  List<SandBox> childSandBoxes
           
protected  String color
           
protected  Date goLiveDate
           
protected  Long id
           
protected  String name
           
protected  SandBox parentSandBox
           
protected  String sandboxType
           
 
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
 
Constructor Summary
SandBoxImpl()
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getAuthor()
           
 List<SandBox> getChildSandBoxes()
           
 String getColor()
           
 Date getGoLiveDate()
           
 Long getId()
           
 String getMainEntityName()
           
 String getName()
          The name of the sandbox.
 SandBox getParentSandBox()
           
 List<Long> getSandBoxIdsForUpwardHierarchy(boolean includeInherited)
           
 List<Long> getSandBoxIdsForUpwardHierarchy(boolean includeInherited, boolean includeCurrent)
           
 SandBoxType getSandBoxType()
           
 int hashCode()
           
 void setAuthor(Long author)
           
 void setChildSandBoxes(List<SandBox> childSandBoxes)
           
 void setColor(String color)
           
 void setGoLiveDate(Date goLiveDate)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setParentSandBox(SandBox parentSandBox)
           
 void setSandBoxType(SandBoxType sandboxType)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name

author

protected Long author

sandboxType

protected String sandboxType

parentSandBox

protected SandBox parentSandBox

childSandBoxes

protected List<SandBox> childSandBoxes

color

protected String color

goLiveDate

protected Date goLiveDate
Constructor Detail

SandBoxImpl

public SandBoxImpl()
Method Detail

getId

public Long getId()
Specified by:
getId in interface SandBox

setId

public void setId(Long id)
Specified by:
setId in interface SandBox

getName

public String getName()
Description copied from interface: SandBox
The name of the sandbox. Certain sandbox names are reserved in the system. User created sandboxes cannot start with "", "approve_", or "deploy_".

Specified by:
getName in interface SandBox
Returns:
String sandbox name

setName

public void setName(String name)
Specified by:
setName in interface SandBox

getSandBoxType

public SandBoxType getSandBoxType()
Specified by:
getSandBoxType in interface SandBox

setSandBoxType

public void setSandBoxType(SandBoxType sandboxType)
Specified by:
setSandBoxType in interface SandBox

getAuthor

public Long getAuthor()
Specified by:
getAuthor in interface SandBox

setAuthor

public void setAuthor(Long author)
Specified by:
setAuthor in interface SandBox

getParentSandBox

public SandBox getParentSandBox()
Specified by:
getParentSandBox in interface SandBox

setParentSandBox

public void setParentSandBox(SandBox parentSandBox)
Specified by:
setParentSandBox in interface SandBox

getColor

public String getColor()
Specified by:
getColor in interface SandBox

setColor

public void setColor(String color)
Specified by:
setColor in interface SandBox

getGoLiveDate

public Date getGoLiveDate()
Specified by:
getGoLiveDate in interface SandBox

setGoLiveDate

public void setGoLiveDate(Date goLiveDate)
Specified by:
setGoLiveDate in interface SandBox

getChildSandBoxes

public List<SandBox> getChildSandBoxes()
Specified by:
getChildSandBoxes in interface SandBox

setChildSandBoxes

public void setChildSandBoxes(List<SandBox> childSandBoxes)
Specified by:
setChildSandBoxes in interface SandBox

getSandBoxIdsForUpwardHierarchy

public List<Long> getSandBoxIdsForUpwardHierarchy(boolean includeInherited)
Specified by:
getSandBoxIdsForUpwardHierarchy in interface SandBox

getSandBoxIdsForUpwardHierarchy

public List<Long> getSandBoxIdsForUpwardHierarchy(boolean includeInherited,
                                                  boolean includeCurrent)
Specified by:
getSandBoxIdsForUpwardHierarchy in interface SandBox

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getMainEntityName

public String getMainEntityName()
Specified by:
getMainEntityName in interface AdminMainEntity
Returns:
the display name of this entity for the admin screen


Copyright © 2013. All Rights Reserved.