Class ContentZoneDaoImpl
java.lang.Object
com.broadleafcommerce.advancedcms.dao.ContentZoneDaoImpl
- All Implemented Interfaces:
ContentZoneDao
@Repository("blContentZoneDao")
public class ContentZoneDaoImpl
extends Object
implements ContentZoneDao
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected org.broadleafcommerce.common.sandbox.SandBoxHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAllContentZonesUsingDefinition(ContentZoneDefinition contentZoneDefinition) readContentZoneByName(String name) Finds aContentZoneby its name.saveContentZone(ContentZone contentZone) Persists aContentZoneand returns the persisted version.saveContentZoneDefinition(ContentZoneDefinition contentZoneDefinition) Persists aContentZoneDefinitionand returns the persisted version.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
sandBoxHelper
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
-
-
Constructor Details
-
ContentZoneDaoImpl
public ContentZoneDaoImpl()
-
-
Method Details
-
readAllContentZones
- Specified by:
readAllContentZonesin interfaceContentZoneDao- Returns:
- a list of all
ContentZonez
-
readAllContentZoneDefinitions
- Specified by:
readAllContentZoneDefinitionsin interfaceContentZoneDao- Returns:
- a list of all
ContentZoneDefinitions
-
readContentZoneDefinitionsAllowingWidget
- Specified by:
readContentZoneDefinitionsAllowingWidgetin interfaceContentZoneDao- Returns:
- a list of
ContentZoneDefinitions that allow the given Widget
-
readAllContentZoneDefinitionXrefs
- Specified by:
readAllContentZoneDefinitionXrefsin interfaceContentZoneDao- Returns:
- a list of all
ContentZoneDefinitionXrefs
-
readContentZoneByName
Description copied from interface:ContentZoneDaoFinds aContentZoneby its name.- Specified by:
readContentZoneByNamein interfaceContentZoneDao- Returns:
- the
ContentZone
-
readAllContentZonesUsingDefinition
public List<ContentZone> readAllContentZonesUsingDefinition(ContentZoneDefinition contentZoneDefinition) - Specified by:
readAllContentZonesUsingDefinitionin interfaceContentZoneDao- Returns:
- a list of
ContentZones that are using the given ContentZoneDefinition
-
readContentZoneById
- Specified by:
readContentZoneByIdin interfaceContentZoneDao- Returns:
- the
ContentZonematching the given id
-
readContentZoneDefinitionById
- Specified by:
readContentZoneDefinitionByIdin interfaceContentZoneDao- Returns:
- the
ContentZoneDefinitionmatching the given id
-
saveContentZone
Description copied from interface:ContentZoneDaoPersists aContentZoneand returns the persisted version.- Specified by:
saveContentZonein interfaceContentZoneDao- Returns:
- the persisted
ContentZone
-
saveContentZoneDefinition
Description copied from interface:ContentZoneDaoPersists aContentZoneDefinitionand returns the persisted version.- Specified by:
saveContentZoneDefinitionin interfaceContentZoneDao- Returns:
- the persisted
ContentZoneDefinition
-