Class EntityInformationDto
java.lang.Object
org.broadleafcommerce.common.entity.dto.EntityInformationDto
This class holds information about an entity.
It is populated by a call to EntityInformationService
. The out-of-box implementation
is a placeholder service.
The enterprise-workflow and multi-tenant modules add functionality to properly populate the dto.
- Author:
- bpolster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor entities that implementDirectCopyTransformTypes.MULTITENANT_CATALOG
, returns the id of the catalog with which the entity is associated.Returns the site id of the site that manages the catalog id (getCatalogId()
), if applicableRetrieve whether or not the relationship to the owned catalog is active for this siteReturn the site that owns this record.For entities that implementProfileEntity
, returns the value of the profile with which the entity is associated.boolean
Returns true if this dto represents a catalog entityboolean
Returns true if this dto represents a profile entityvoid
setCatalogId
(Long catalogId) Sets the catalogId.void
setCatalogOwner
(Long catalogOwner) Set the site id of the site that manages the catalog id, if applicablevoid
setOwnerToCatalogRelationshipActive
(Boolean ownerToCatalogRelationshipActive) Set whether or not the relationship to the owned catalog is active for this sitevoid
setOwningSiteId
(Long owningSiteId) Sets the siteId that owns this record.void
setProfileId
(Long profileId) Sets the profileId.
-
Constructor Details
-
EntityInformationDto
public EntityInformationDto()
-
-
Method Details
-
getProfileId
For entities that implementProfileEntity
, returns the value of the profile with which the entity is associated. Otherwise, returns null.- Returns:
- the profileId
-
setProfileId
Sets the profileId. Typically called byEntityInformationService
when creating this dto.- Parameters:
profileId
- the profileId to set- See Also:
-
getCatalogId
For entities that implementDirectCopyTransformTypes.MULTITENANT_CATALOG
, returns the id of the catalog with which the entity is associated. Otherwise, returns null.- Returns:
- the catalogId
-
setCatalogId
Sets the catalogId. Typically called byEntityInformationService
when creating this dto.- Parameters:
catalogId
- the catalogId to set
-
getOwningSiteId
Return the site that owns this record. If not in a MultiTenant scenario or if the entity is not setup for MultiTenant, this method will return null.- Returns:
- the siteId
-
setOwningSiteId
Sets the siteId that owns this record.- Parameters:
owningSiteId
- the siteId to set
-
isProfileEntity
public boolean isProfileEntity()Returns true if this dto represents a profile entity- Returns:
-
isCatalogEntity
public boolean isCatalogEntity()Returns true if this dto represents a catalog entity- Returns:
-
getCatalogOwner
Returns the site id of the site that manages the catalog id (getCatalogId()
), if applicable- Returns:
-
setCatalogOwner
Set the site id of the site that manages the catalog id, if applicable- Parameters:
catalogOwner
-
-
getOwnerToCatalogRelationshipActive
Retrieve whether or not the relationship to the owned catalog is active for this site- Returns:
-
setOwnerToCatalogRelationshipActive
Set whether or not the relationship to the owned catalog is active for this site- Parameters:
ownerToCatalogRelationshipActive
-
-