org.broadleafcommerce.openadmin.server.domain
Class SandBoxImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.domain.SandBoxImpl
- All Implemented Interfaces:
- java.io.Serializable, SandBox
@Entity
public class SandBoxImpl
- extends java.lang.Object
- implements SandBox
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.Long id
name
protected java.lang.String name
author
protected java.lang.Long author
sandBoxItems
protected java.util.List<SandBoxItem> sandBoxItems
SandBoxImpl
public SandBoxImpl()
getId
public java.lang.Long getId()
- Specified by:
getId in interface SandBox
setId
public void setId(java.lang.Long id)
- Specified by:
setId in interface SandBox
getName
public java.lang.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 "user_", "approve_", or "deploy_".
- Specified by:
getName in interface SandBox
- Returns:
- String sandbox name
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface SandBox
getSandBoxItems
public java.util.List<SandBoxItem> getSandBoxItems()
- Specified by:
getSandBoxItems in interface SandBox
setSandBoxItems
public void setSandBoxItems(java.util.List<SandBoxItem> sandBoxItems)
- Specified by:
setSandBoxItems in interface SandBox
getAuthor
public java.lang.Long getAuthor()
- Specified by:
getAuthor in interface SandBox
setAuthor
public void setAuthor(java.lang.Long author)
- Specified by:
setAuthor in interface SandBox
getAllowedRoles
public java.util.Set<AdminRole> getAllowedRoles()
- Description copied from interface:
SandBox
- Supports who can access this sandbox.
Sandboxes can be accessed by convention.
For example:
Sandboxes with the "user_" prefix can only be modified by the corresponding user.
Sandboxes with the "approve_" prefix can only be viewed/modified by users with the
CONTENT_APPROVER role.
the sandbox.
Sandboxes with the "deploy_" prefix can only be viewed/deployed by users with the
CONTENT_DEPLOYER role.
- Specified by:
getAllowedRoles in interface SandBox
- Returns:
- Set Set of admin roles that can edit this sandbox.
setAllowedRoles
public void setAllowedRoles(java.util.Set<AdminRole> allowedRoles)
- Specified by:
setAllowedRoles in interface SandBox
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2011. All Rights Reserved.